You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by tr...@apache.org on 2004/04/28 05:09:06 UTC
cvs commit: jakarta-commons-sandbox/id/src/java/org/apache/commons/id/uuid NodeManagerImpl.java
treilly 2004/04/27 20:09:06
Modified: id/src/java/org/apache/commons/id/uuid NodeManagerImpl.java
Log:
Remove whitespace after 3,7,9
Code reduction remove inline conditional
Revision Changes Path
1.3 +7 -7 jakarta-commons-sandbox/id/src/java/org/apache/commons/id/uuid/NodeManagerImpl.java
Index: NodeManagerImpl.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/id/src/java/org/apache/commons/id/uuid/NodeManagerImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- NodeManagerImpl.java 10 Apr 2004 07:37:06 -0000 1.2
+++ NodeManagerImpl.java 28 Apr 2004 03:09:06 -0000 1.3
@@ -1,12 +1,12 @@
/*
* Copyright 2004 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -123,8 +123,8 @@
}
long max = 0;
for (int i = 0; i < allNodes.length; i++) {
- if (allNodes[i] != null) {
- max = (allNodes[i].getLastTimestamp() > max) ? allNodes[i].getLastTimestamp() : max;
+ if (allNodes[i] != null && allNodes[i].getLastTimestamp() > max) {
+ max = allNodes[i].getLastTimestamp();
}
}
return max;
@@ -157,4 +157,4 @@
nodeState.store(nodesSet);
super.finalize();
}
-}
\ No newline at end of file
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org