[ductilej] push by samskivert - Let's restrict our somewhat dubious use of ordinal() to only one metho... on 2010-07-10 18:39 GMT

1 view
Skip to first unread message

duct...@googlecode.com

unread,
Jul 10, 2010, 2:42:14 PM7/10/10
to ductil...@googlegroups.com
Revision: b543d53b15
Author: Michael Bayne <m...@samskivert.com>
Date: Sat Jul 10 11:38:58 2010
Log: Let's restrict our somewhat dubious use of ordinal() to only one
method.
http://code.google.com/p/ductilej/source/detail?r=b543d53b15

Modified:
/src/org/ductilej/runtime/RT.java

=======================================
--- /src/org/ductilej/runtime/RT.java Sat Jul 10 11:36:48 2010
+++ /src/org/ductilej/runtime/RT.java Sat Jul 10 11:38:58 2010
@@ -1250,7 +1250,7 @@
}

public Match lesser (Match other) {
- return ordinal() < other.ordinal() ? this : other;
+ return isCloser(other) ? other : this;
}
};

Reply all
Reply to author
Forward
0 new messages