Is the Google Annotations Gallery useful in production code?
Posted
by cafe
on Stack Overflow
See other posts from Stack Overflow
or by cafe
Published on 2010-04-01T09:14:59Z
Indexed on
2010/04/01
9:23 UTC
Read the original article
Hit count: 172
I could actually see a use for the Google Annotations Gallery in real code:
Stumble across code that somehow works beyond all reason? Life's short. Mark it with @Magic and move on:
@Magic
public static int negate(int n) {
return new Byte((byte) 0xFF).hashCode()
/ (int) (short) '\uFFFF' * ~0
* Character.digit ('0', 0) * n
* (Integer.MAX_VALUE * 2 + 1)
/ (Byte.MIN_VALUE >> 7) * (~1 | 1);
}
This is a serious question. Could this be used in an actual code review?
© Stack Overflow or respective owner