java/ch/wlkl/wsm/WSM.java
package ch.wlkl.wsm;
import static ch.wlkl.env.Env.a2r;
import static ch.wlkl.env.Env.env;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.List;
public class WSMremove {
/*
public static boolean printStackTrace = false;
private WSM() {
}
public static String throwsMsgRemoved(String s, Throwable t) {
return a2r(s, t); /*
if (printStackTrace) {
System.out.println(s + " *** printing stacktrace");
t.printStackTrace(); // stacktraces or causes are printed
// recursively except for the common
// beginning
}
StringBuilder txt = new StringBuilder();
while (t != null) {
txt.append(", cause: ").append(t);
t = t.getCause();
}
return "throws: " + txt.substring(9);
}
public static void errRemoved(String s, Throwable t) {
String msg = throwsMsg("error: " + s, t);
System.out.println("error: " + s + ", " + msg);
throw new Error(s, t);
}
public static <T, V extends T> List<T> addAll(List<T> lst, V... eles) {
return addAll(lst, 0, eles);
}
public static <T, V extends T> List<T> addAll(List<T> lst, int i, V... eles) {
for ( ; i < eles.length; i++) {
lst.add(eles[i]);
}
return lst;
}
*/
}