Revision: 7781
http://bigdata.svn.sourceforge.net/bigdata/?rev=7781&view=rev
Author: thompsonbry
Date: 2014-01-13 15:36:38 +0000 (Mon, 13 Jan 2014)
Log Message:
-----------
removed java7 dependency.
Modified Paths:
--------------
branches/BIGDATA_RELEASE_1_3_0/bigdata/src/java/com/bigdata/bop/engine/BSBundle.java
Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata/src/java/com/bigdata/bop/engine/BSBundle.java
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata/src/java/com/bigdata/bop/engine/BSBundle.java 2014-01-13 14:58:53 UTC (rev 7780)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata/src/java/com/bigdata/bop/engine/BSBundle.java 2014-01-13 15:36:38 UTC (rev 7781)
@@ -102,12 +102,12 @@
*/
@Override
public int compareTo(final BSBundle o) {
-
- int ret = -Integer.compare(bopId, o.bopId);
+ int ret = (bopId < o.bopId) ? 1 : ((bopId == o.bopId) ? 0 : -1);
+
if (ret == 0) {
- ret = -Integer.compare(shardId, o.shardId);
+ ret = (shardId < o.shardId) ? 1 : ((shardId == o.shardId) ? 0 : -1);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|