cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r591807 - /incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandLineParser.java
Date Sun, 04 Nov 2007 17:31:33 GMT
Author: ema
Date: Sun Nov  4 09:31:32 2007
New Revision: 591807

URL: http://svn.apache.org/viewvc?rev=591807&view=rev
Log:
Fixed another typo.

Modified:
    incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandLineParser.java

Modified: incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandLineParser.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandLineParser.java?rev=591807&r1=591806&r2=591807&view=diff
==============================================================================
--- incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandLineParser.java
(original)
+++ incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandLineParser.java
Sun Nov  4 09:31:32 2007
@@ -212,33 +212,33 @@
         StringTokenizer st1 = new StringTokenizer(usage, lineSeparator);
         int i = 0;
         int length = st1.countTokens();
-        String[] orignalStrs = new String[length];
+        String[] originalStrs = new String[length];
         while (st1.hasMoreTokens()) {
             String str = st1.nextToken();
-            orignalStrs[i] = str;
+            originalStrs[i] = str;
             i++;
         }
         StringBuffer strbuffer = new StringBuffer();
         for (int j = 0; j < length - 1; j = j + 2) {
-            int optionLen = orignalStrs[j].length();
+            int optionLen = originalStrs[j].length();
             addWhiteNamespace(strbuffer, beforeOptSpan);
             if (optionLen <= optSpan) {
                 // && beforeOptSpan + optionLen + optSpan + desLen <= totalLen
-
                 // 1) {
 
-                strbuffer.append(orignalStrs[j]);
-                addWhiteNamespace(strbuffer, optSpan - orignalStrs[j].length());
+                strbuffer.append(originalStrs[j]);
+                addWhiteNamespace(strbuffer, optSpan - originalStrs[j].length());
                 strbuffer.append(" ");
-                if (orignalStrs[j + 1].length() > totalLen - beforeDesSpan) {
-                    String tmp = orignalStrs[j + 1].substring(0, totalLen - beforeDesSpan);
+                if (originalStrs[j + 1].length() > totalLen - beforeDesSpan) {
+                    String tmp = originalStrs[j + 1].substring(0, totalLen - beforeDesSpan);
                     strbuffer.append(tmp);
-                    orignalStrs[j + 1] = orignalStrs[j + 1].substring(totalLen - beforeDesSpan,

-                                                                      orignalStrs[j + 1].length());
+                    originalStrs[j + 1] = originalStrs[j + 1].substring(totalLen - beforeDesSpan,

+                                                                        originalStrs[j +
1].length());
                     strbuffer.append(lineSeparator);
                 } else {
-                    strbuffer.append(orignalStrs[j + 1]);
+                    strbuffer.append(originalStrs[j + 1]);
                     strbuffer.append(lineSeparator);
-                    orignalStrs[j + 1] = "";
+                    originalStrs[j + 1] = "";
                 }
                 
                 // strbuffer.append(orginalStrs[j + 1]);
@@ -246,10 +246,10 @@
                 // strbuffer.append(lineSeparator);
             } else {
                 // addWhiteNamespace(strbuffer, beforeOptSpan);
-                strbuffer.append(orignalStrs[j]);
+                strbuffer.append(originalStrs[j]);
                 strbuffer.append(lineSeparator);
             }
-            String tmpStr = orignalStrs[j + 1];
+            String tmpStr = originalStrs[j + 1];
             
             for (i = 0; i < tmpStr.length(); i = i + (totalLen - beforeDesSpan)) {
                 if (i + totalLen - beforeDesSpan < tmpStr.length()) {



Mime
View raw message