felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r1172747 - /felix/trunk/utils/src/main/java/org/apache/felix/utils/manifest/Parser.java
Date Mon, 19 Sep 2011 19:00:36 GMT
Author: rickhall
Date: Mon Sep 19 19:00:35 2011
New Revision: 1172747

URL: http://svn.apache.org/viewvc?rev=1172747&view=rev
Log:
Apply patch FELIX-3119 to skip whitespace in manifest parser.

Modified:
    felix/trunk/utils/src/main/java/org/apache/felix/utils/manifest/Parser.java

Modified: felix/trunk/utils/src/main/java/org/apache/felix/utils/manifest/Parser.java
URL: http://svn.apache.org/viewvc/felix/trunk/utils/src/main/java/org/apache/felix/utils/manifest/Parser.java?rev=1172747&r1=1172746&r2=1172747&view=diff
==============================================================================
--- felix/trunk/utils/src/main/java/org/apache/felix/utils/manifest/Parser.java (original)
+++ felix/trunk/utils/src/main/java/org/apache/felix/utils/manifest/Parser.java Mon Sep 19
19:00:35 2011
@@ -23,10 +23,8 @@ import java.util.List;
 
 public final class Parser
 {
-
     private Parser() { }
 
-
     public static Clause[] parseHeader(String header) throws IllegalArgumentException
     {
         Clause[] clauses = null;
@@ -201,12 +199,12 @@ public final class Parser
             }
         }
 
-        if (sb.length() > 0)
+        String s = sb.toString().trim();
+        if (s.length() > 0)
         {
-            list.add(sb.toString().trim());
+            list.add(s);
         }
 
         return (String[]) list.toArray(new String[list.size()]);
     }
-
-}
+}
\ No newline at end of file



Mime
View raw message