From 493661af544f4db9b039b74e13d157eda1076a46 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Mon, 6 Dec 2004 18:12:59 +0000 Subject: [PATCH] checkstyle changes Obtained from: Kevin Jackson git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277129 13f79535-47bb-0310-9956-ffa450edef68 --- .../tools/ant/taskdefs/cvslib/CvsVersion.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsVersion.java b/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsVersion.java index 68ac90ffb..513140f0e 100644 --- a/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsVersion.java +++ b/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsVersion.java @@ -45,22 +45,23 @@ public class CvsVersion extends AbstractCvsTask { 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 @@ public class CvsVersion extends AbstractCvsTask { } /** - * 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))) {