Author: xavier
Date: Wed Nov 28 13:43:18 2007
New Revision: 599156

URL: http://svn.apache.org/viewvc?rev=599156&view=rev
Log:
fix style

Modified:
    
incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/ResolverHelper.java

Modified: 
incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/ResolverHelper.java
URL: 
http://svn.apache.org/viewvc/incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/ResolverHelper.java?rev=599156&r1=599155&r2=599156&view=diff
==============================================================================
--- 
incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/ResolverHelper.java
 (original)
+++ 
incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/ResolverHelper.java
 Wed Nov 28 13:43:18 2007
@@ -34,7 +34,10 @@
 import org.apache.ivy.plugins.repository.Resource;
 import org.apache.ivy.util.Message;
 
-public class ResolverHelper {
+public final class ResolverHelper {
+    private ResolverHelper() {
+    }
+    
     // lists all the values a token can take in a pattern, as listed by a 
given url lister
     public static String[] listTokenValues(Repository rep, String pattern, 
String token) {
         String fileSep = rep.getFileSeparator();
@@ -87,7 +90,8 @@
                     return null;
                 }
             } catch (IOException e) {
-                Message.verbose("problem while listing resources in " + root + 
" with " + rep + ":");
+                Message.verbose(
+                    "problem while listing resources in " + root + " with " + 
rep + ":");
                 Message.verbose("  " + e.getClass().getName() + " " + 
e.getMessage());
                 return null;
             } catch (Exception e) {
@@ -160,13 +164,14 @@
                 Message.debug("\tfound resolved res: " + ret);
             }
             return (ResolvedResource[]) ret.toArray(new 
ResolvedResource[ret.size()]);
-        } else if (partiallyResolvedPattern.indexOf("[" + 
IvyPatternHelper.REVISION_KEY + "]") == -1) {
+        } else if (partiallyResolvedPattern.indexOf(
+                "[" + IvyPatternHelper.REVISION_KEY + "]") == -1) {
             // the partially resolved pattern is completely resolved, check 
the resource
             try {
                 Resource res = rep.getResource(partiallyResolvedPattern);
                 if (res.exists()) {
-                    Message
-                            .debug("\tonly one resource found without real 
listing: using and defining it as working@"
+                    Message.debug("\tonly one resource found without real 
listing: "
+                                    + "using and defining it as working@"
                                     + rep.getName() + " revision: " + 
res.getName());
                     return new ResolvedResource[] {new ResolvedResource(res, 
"working@"
                             + rep.getName())};


Reply via email to