peterreilly 2004/12/06 10:12:59 Modified: src/main/org/apache/tools/ant/taskdefs/cvslib CvsVersion.java Log: checkstyle changes Obtained from: Kevin Jackson Revision Changes Path 1.8 +9 -9 ant/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsVersion.java Index: CvsVersion.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsVersion.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- CvsVersion.java 9 Mar 2004 16:48:14 -0000 1.7 +++ CvsVersion.java 6 Dec 2004 18:12:59 -0000 1.8 @@ -45,22 +45,23 @@ private String serverVersion; private String clientVersionProperty; private String serverVersionProperty; + /** - * get the CVS client version + * Get the CVS client version * @return CVS client version */ public String getClientVersion() { return clientVersion; } /** - * get the CVS server version + * Get the CVS server version * @return CVS server version */ public String getServerVersion() { return serverVersion; } /** - * set a property where to store the CVS client version + * Set a property where to store the CVS client version * @param clientVersionProperty property for CVS client version */ public void setClientVersionProperty(String clientVersionProperty) { @@ -68,26 +69,25 @@ } /** - * set a property where to store the CVS server version + * Set a property where to store the CVS server version * @param serverVersionProperty property for CVS server version */ public void setServerVersionProperty(String serverVersionProperty) { this.serverVersionProperty = serverVersionProperty; } /** - * find out if the server version supports log with S option + * Find out if the server version supports log with S option * @return boolean indicating if the server version supports log with S option */ public boolean supportsCvsLogWithSOption() { if (serverVersion == null) { return false; } - StringTokenizer mySt = new StringTokenizer(serverVersion, "."); - long versionNumber; + StringTokenizer tokenizer = new StringTokenizer(serverVersion, "."); long counter = MULTIPLY * MULTIPLY; long version = 0; - while (mySt.hasMoreTokens()) { - String s = mySt.nextToken(); + while (tokenizer.hasMoreTokens()) { + String s = tokenizer.nextToken(); int i = 0; for (i = 0; i < s.length(); i++) { if (!Character.isDigit(s.charAt(i))) {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]