Buggy code:
public class FBUtilities { private static Logger logger_ = LoggerFactory . getLogger ( FBUtilities . class ) ; public static final BigInteger TWO = new BigInteger ( "2" ) ; private static volatile InetAddress localInetAddress_ ; private static volatile InetAddress broadcastInetAddress_ ; private static final ThreadLocal < MessageDigest > localMD5Digest = new ThreadLocal < MessageDigest > ( ) { @ Override protected MessageDigest initialValue ( ) { } @ Override public MessageDigest get ( ) { } } ; private static final ThreadLocal < Random > localRandom = new ThreadLocal < Random > ( ) { @ Override protected Random initialValue ( ) { } } ; public static final int MAX_UNSIGNED_SHORT = 65535 ; public static MessageDigest threadLocalMD5Digest ( ) { } public static MessageDigest newMessageDigest ( String algorithm ) { } public static Random threadLocalRandom ( ) { } public static double parseDoubleOrPercent ( String value ) { } public static InetAddress getLocalAddress ( ) { } public static InetAddress getBroadcastAddress ( ) { } public static long absoluteFromFraction ( double fractOrAbs , long total ) { } public static Pair < BigInteger , Boolean > midpoint ( BigInteger left , BigInteger right , int sigbits ) { } public static void copyIntoBytes ( byte [ ] bytes , int offset , int i ) { } public static byte [ ] toByteArray ( int i ) { } public static void copyIntoBytes ( byte [ ] bytes , int offset , long l ) { } public static byte [ ] toByteArray ( long l ) { } public static int byteArrayToInt ( byte [ ] b ) { } public static int compareUnsigned ( byte [ ] bytes1 , byte [ ] bytes2 , int offset1 , int offset2 , int len1 , int len2 ) { } public static byte [ ] xor ( byte [ ] left , byte [ ] right ) { } public static BigInteger hashToBigInteger ( ByteBuffer data ) { } public static byte [ ] hash ( ByteBuffer ... data ) { } public static void renameWithConfirm ( String tmpFilename , String filename ) throws IOException { } public static void atomicSetMax ( AtomicInteger atomic , int i ) { } public static void atomicSetMax ( AtomicLong atomic , long i ) { } public static void serialize ( TSerializer serializer , TBase struct , DataOutput out ) throws IOException { } public static void deserialize ( TDeserializer deserializer , TBase struct , DataInput in ) throws IOException { } public static void sortSampledKeys ( List < DecoratedKey > keys , Range < Token > range ) { if ( ( range . left . compareTo ( range . right ) ) >= 0 ) { final Token right = range . right ; Comparator < DecoratedKey > comparator = new Comparator < DecoratedKey > ( ) { public int compare ( DecoratedKey o1 , DecoratedKey o2 ) { if ( ( ( ( right . compareTo ( o1 . token ) ) < 0 ) && ( ( right . compareTo ( o2 . token ) ) < 0 ) ) || ( ( ( right . compareTo ( o1 . token ) ) > 0 ) && ( ( right . compareTo ( o2 . token ) ) > 0 ) ) ) { return o1 . compareTo ( o2 ) ; } <START_BUG> return - ( o1 . compareTo ( o2 ) ) ; <END_BUG> } } ; Collections . sort ( keys , comparator ) ; } else { Collections . sort ( keys ) ; } } public static int encodedUTF8Length ( String st ) { } public static String resourceToFile ( String filename ) throws ConfigurationException { } public static String getReleaseVersionString ( ) { } public static long timestampMicros ( ) { } public static void waitOnFutures ( Iterable < Future < ? > > futures ) { } public static void waitOnFutures ( List < IAsyncResult > results , long ms ) throws TimeoutException { } public static void waitOnFutures ( List < CreationTimeAwareFuture < ? > > hintFutures , long timeout , TimeUnit timeUnit ) throws TimeoutException { } public static IPartitioner newPartitioner ( String partitionerClassName ) throws ConfigurationException { } public static < T > Class < T > classForName ( String classname , String readable ) throws ConfigurationException { } public static < T > T construct ( String classname , String readable ) throws ConfigurationException { } public static < T extends Comparable > SortedSet < T > singleton ( T column ) { } public static String toString ( Map < ? , ? > map ) { } public static Field getProtectedField ( Class klass , String fieldName ) { } public static IRowCacheProvider newCacheProvider ( String cache_provider ) throws ConfigurationException { } public static < T > CloseableIterator < T > closeableIterator ( Iterator < T > iterator ) { } private static final class WrappedCloseableIterator < T > extends AbstractIterator < T > implements CloseableIterator < T > { private final Iterator < T > source ; public WrappedCloseableIterator ( Iterator < T > source ) { } protected T computeNext ( ) { } public void close ( ) { } } public static < T > byte [ ] serialize ( T object , IVersionedSerializer < T > serializer , int version ) throws IOException { } public static RuntimeException unchecked ( Exception e ) { } }

Fix:
return o2 . compareTo ( o1 ) ;