commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject svn commit: r240402 - /jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrTokenizer.java
Date Sat, 27 Aug 2005 10:34:17 GMT
Author: scolebourne
Date: Sat Aug 27 03:34:09 2005
New Revision: 240402

URL: http://svn.apache.org/viewcvs?rev=240402&view=rev
Log:
Remove extraneous this object references

Modified:
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrTokenizer.java

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrTokenizer.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrTokenizer.java?rev=240402&r1=240401&r2=240402&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrTokenizer.java
(original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrTokenizer.java
Sat Aug 27 03:34:09 2005
@@ -601,7 +601,7 @@
      */
     private void tokenize() {
         if (tokens == null) {
-            this.tokens = readTokens();
+            tokens = readTokens();
         }
     }
 
@@ -643,10 +643,10 @@
      */
     private void addToken(List list, String tok) {
         if (tok == null || tok.length() == 0) {
-            if (this.isIgnoreEmptyTokens()) {
+            if (isIgnoreEmptyTokens()) {
                 return;
             }
-            if (this.isEmptyTokenAsNull()) {
+            if (isEmptyTokenAsNull()) {
                 tok = null;
             }
         }
@@ -669,11 +669,11 @@
         // field delimiter or the quote character
         while (start < len) {
             int removeLen = Math.max(
-                    this.getIgnoredMatcher().isMatch(chars, start, start, len),
-                    this.getTrimmerMatcher().isMatch(chars, start, start, len));
+                    getIgnoredMatcher().isMatch(chars, start, start, len),
+                    getTrimmerMatcher().isMatch(chars, start, start, len));
             if (removeLen == 0 ||
-                this.getDelimiterMatcher().isMatch(chars, start, start, len) > 0 ||
-                this.getQuoteMatcher().isMatch(chars, start, start, len) > 0) {
+                getDelimiterMatcher().isMatch(chars, start, start, len) > 0 ||
+                getQuoteMatcher().isMatch(chars, start, start, len) > 0) {
                 break;
             }
             start += removeLen;
@@ -686,14 +686,14 @@
         }
         
         // handle empty token
-        int delimLen = this.getDelimiterMatcher().isMatch(chars, start, start, len);
+        int delimLen = getDelimiterMatcher().isMatch(chars, start, start, len);
         if (delimLen > 0) {
             addToken(tokens, "");
             return start + delimLen;
         }
         
         // handle found token
-        int quoteLen = this.getQuoteMatcher().isMatch(chars, start, start, len);
+        int quoteLen = getQuoteMatcher().isMatch(chars, start, start, len);
         if (quoteLen > 0) {
             return readWithQuotes(chars, start + quoteLen, len, workArea, tokens, start,
quoteLen);
         }
@@ -756,7 +756,7 @@
                 // Not in quoting mode
                 
                 // check for delimiter, and thus end of token
-                int delimLen = this.getDelimiterMatcher().isMatch(chars, pos, start, len);
+                int delimLen = getDelimiterMatcher().isMatch(chars, pos, start, len);
                 if (delimLen > 0) {
                     // return condition when end of token found
                     addToken(tokens, workArea.substring(0, trimStart));
@@ -773,7 +773,7 @@
                 }
                 
                 // check for ignored (outside quotes), and ignore
-                int ignoredLen = this.getIgnoredMatcher().isMatch(chars, pos, start, len);
+                int ignoredLen = getIgnoredMatcher().isMatch(chars, pos, start, len);
                 if (ignoredLen > 0) {
                     pos += ignoredLen;
                     continue;
@@ -782,7 +782,7 @@
                 // check for trimmed character
                 // don't yet know if its at the end, so copy to workArea
                 // use trimStart to keep track of trim at the end
-                int trimmedLen = this.getTrimmerMatcher().isMatch(chars, pos, start, len);
+                int trimmedLen = getTrimmerMatcher().isMatch(chars, pos, start, len);
                 if (trimmedLen > 0) {
                     workArea.append(chars, pos, trimmedLen);
                     pos += trimmedLen;



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message