Revision: 14648
http://gate.svn.sourceforge.net/gate/?rev=14648&view=rev
Author: markagreenwood
Date: 2011-12-03 16:57:10 +0000 (Sat, 03 Dec 2011)
Log Message:
-----------
use a better logical test (two or's are better than one)
Modified Paths:
--------------
gate/trunk/src/gate/util/VersionComparator.java
Modified: gate/trunk/src/gate/util/VersionComparator.java
===================================================================
--- gate/trunk/src/gate/util/VersionComparator.java 2011-12-03 15:41:48 UTC
(rev 14647)
+++ gate/trunk/src/gate/util/VersionComparator.java 2011-12-03 16:57:10 UTC
(rev 14648)
@@ -49,7 +49,7 @@
Matcher m1 = VERSION_PATTERN.matcher(v1);
Matcher m2 = VERSION_PATTERN.matcher(v2);
- if(!m1.find() | !m2.find()) {
+ if(!m1.find() || !m2.find()) {
// these don't represent versions so sort as strings
return v1.compareTo(v2);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs