You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by az...@apache.org on 2009/07/19 16:06:21 UTC

svn commit: r795544 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/CommandLineOption.java

Author: azeez
Date: Sun Jul 19 14:06:21 2009
New Revision: 795544

URL: http://svn.apache.org/viewvc?rev=795544&view=rev
Log:
Need to trim strings

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/CommandLineOption.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/CommandLineOption.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/CommandLineOption.java?rev=795544&r1=795543&r2=795544&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/CommandLineOption.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/CommandLineOption.java Sun Jul 19 14:06:21 2009
@@ -30,6 +30,9 @@
         setOptionType(type);
         ArrayList arrayList = new ArrayList(values.length);
         for (int i = 0; i < values.length; i++) {
+            if (values[i] != null) {
+                values[i] = values[i].trim();
+            }
             arrayList.add(values[i]);
         }
         this.optionValues = arrayList;