ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xav...@apache.org
Subject svn commit: r600537 - /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/VfsResolver.java
Date Mon, 03 Dec 2007 13:53:06 GMT
Author: xavier
Date: Mon Dec  3 05:53:06 2007
New Revision: 600537

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

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/VfsResolver.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/VfsResolver.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/VfsResolver.java?rev=600537&r1=600536&r2=600537&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/VfsResolver.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/VfsResolver.java Mon Dec 
3 05:53:06 2007
@@ -26,9 +26,9 @@
  *
  */
 public class VfsResolver extends RepositoryResolver {
-    private static Pattern URLPattern = Pattern.compile("[a-z]*://(.+):(.+)@.*");
+    private static final Pattern URL_PATTERN = Pattern.compile("[a-z]*://(.+):(.+)@.*");
 
-    private static int PASSWORD_GROUP = 2;
+    private static final int PASSWORD_GROUP = 2;
 
     public VfsResolver() {
         setRepository(new VfsRepository());
@@ -44,7 +44,7 @@
 
     public static String prepareForDisplay(String name) {
         StringBuffer s = new StringBuffer(name);
-        Matcher m = URLPattern.matcher(s);
+        Matcher m = URL_PATTERN.matcher(s);
         if (m.matches()) {
             final String password = m.group(PASSWORD_GROUP);
             final int passwordposi = s.indexOf(password);



Mime
View raw message