Parece que alguém se interessou em fazer o Java ficar mais rápido:
http://javolution.org/
O dia-a-dia de um programador nerd assumido. Linux user #364547.
dict mail ou quot msft.
ABCDE)ABCDE por %s (o resultado será: http://en.wikipedia.org/wiki/Special:Search?search=%s).wpwp abc, por exemplo, na barra de endereços!/boot/install/;
/boot/install;
title Fedora Core Upgrade
root (hd0, 0)
kernel /boot/install/vmlinuz
initrd /boot/install/initrd.img
public String getCurrentMethodName() {
return new Exception().getStackTrace()[1].getMethodName();
}
getStackTrace(). Antes disso, é necessário fazer um parse na saída do printStackTrace():
public String getCurrentMethodName() {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PrintWriter pw = new PrintWriter(baos);
new Exception().printStackTrace(pw);
pw.flush();
String stackTrace = baos.toString();
pw.close();
StringTokenizer tok = new StringTokenizer(stackTrace, "\n");
String l = tok.nextToken(); // 'java.lang.Throwable'
l = tok.nextToken(); // 'at ...getCurrentMethodName'
l = tok.nextToken(); // 'at ...<caller to getCurrentRoutine>'
// Parse line 3
tok = new StringTokenizer(l.trim(), " <(");
String t = tok.nextToken(); // 'at'
t = tok.nextToken(); // '...<caller to getCurrentRoutine>'
return t;
}