ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xav...@apache.org
Subject svn commit: r600538 - in /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins: resolver/util/ trigger/
Date Mon, 03 Dec 2007 13:55:37 GMT
Author: xavier
Date: Mon Dec  3 05:55:36 2007
New Revision: 600538

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

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/ApacheHttpURLLister.java
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/FileURLLister.java
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/MDResolvedResource.java
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/ResolvedModuleRevisionProxy.java
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/trigger/AbstractTrigger.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/ApacheHttpURLLister.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/ApacheHttpURLLister.java?rev=600538&r1=600537&r2=600538&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/ApacheHttpURLLister.java
(original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/ApacheHttpURLLister.java
Mon Dec  3 05:55:36 2007
@@ -24,14 +24,14 @@
 import org.apache.ivy.util.url.ApacheURLLister;
 
 public class ApacheHttpURLLister implements URLLister {
-    private ApacheURLLister _lister = new ApacheURLLister();
+    private ApacheURLLister lister = new ApacheURLLister();
 
     public boolean accept(String pattern) {
         return pattern.startsWith("http");
     }
 
     public List listAll(URL url) throws IOException {
-        return _lister.listAll(url);
+        return lister.listAll(url);
     }
 
     public String toString() {

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/FileURLLister.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/FileURLLister.java?rev=600538&r1=600537&r2=600538&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/FileURLLister.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/FileURLLister.java Mon
Dec  3 05:55:36 2007
@@ -25,14 +25,14 @@
 import java.util.List;
 
 public class FileURLLister implements URLLister {
-    private File _basedir;
+    private File basedir;
 
     public FileURLLister() {
         this(null);
     }
 
     public FileURLLister(File baseDir) {
-        _basedir = baseDir;
+        this.basedir = baseDir;
     }
 
     public boolean accept(String pattern) {
@@ -41,7 +41,7 @@
 
     public List listAll(URL url) throws IOException {
         String path = url.getPath();
-        File file = _basedir == null ? new File(path) : new File(_basedir, path);
+        File file = basedir == null ? new File(path) : new File(basedir, path);
         if (file.exists() && file.isDirectory()) {
             String[] files = file.list();
             List ret = new ArrayList(files.length);

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/MDResolvedResource.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/MDResolvedResource.java?rev=600538&r1=600537&r2=600538&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/MDResolvedResource.java
(original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/MDResolvedResource.java
Mon Dec  3 05:55:36 2007
@@ -21,15 +21,15 @@
 import org.apache.ivy.plugins.repository.Resource;
 
 public class MDResolvedResource extends ResolvedResource {
-    private ResolvedModuleRevision _rmr;
+    private ResolvedModuleRevision rmr;
 
     public MDResolvedResource(Resource res, String rev, ResolvedModuleRevision rmr) {
         super(res, rev);
-        _rmr = rmr;
+        this.rmr = rmr;
     }
 
     public ResolvedModuleRevision getResolvedModuleRevision() {
-        return _rmr;
+        return rmr;
     }
 
 }

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/ResolvedModuleRevisionProxy.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/ResolvedModuleRevisionProxy.java?rev=600538&r1=600537&r2=600538&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/ResolvedModuleRevisionProxy.java
(original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/util/ResolvedModuleRevisionProxy.java
Mon Dec  3 05:55:36 2007
@@ -30,9 +30,9 @@
  * getArtifactResolver method
  */
 public final class ResolvedModuleRevisionProxy implements ResolvedModuleRevision {
-    private final ResolvedModuleRevision _mr;
+    private final ResolvedModuleRevision mr;
 
-    DependencyResolver _resolver;
+    private DependencyResolver resolver;
 
     public ResolvedModuleRevisionProxy(ResolvedModuleRevision mr, DependencyResolver artresolver)
{
         if (mr == null) {
@@ -41,36 +41,36 @@
         if (artresolver == null) {
             throw new NullPointerException("null resolver not allowed");
         }
-        _mr = mr;
-        _resolver = artresolver;
+        this.mr = mr;
+        this.resolver = artresolver;
     }
 
     public DependencyResolver getResolver() {
-        return _mr.getResolver();
+        return mr.getResolver();
     }
 
     public DependencyResolver getArtifactResolver() {
-        return _resolver;
+        return resolver;
     }
 
     public ModuleRevisionId getId() {
-        return _mr.getId();
+        return mr.getId();
     }
 
     public Date getPublicationDate() {
-        return _mr.getPublicationDate();
+        return mr.getPublicationDate();
     }
 
     public ModuleDescriptor getDescriptor() {
-        return _mr.getDescriptor();
+        return mr.getDescriptor();
     }
 
     public boolean isDownloaded() {
-        return _mr.isDownloaded();
+        return mr.isDownloaded();
     }
 
     public boolean isSearched() {
-        return _mr.isSearched();
+        return mr.isSearched();
     }
 
 }

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/trigger/AbstractTrigger.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/trigger/AbstractTrigger.java?rev=600538&r1=600537&r2=600538&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/trigger/AbstractTrigger.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/trigger/AbstractTrigger.java Mon Dec
 3 05:55:36 2007
@@ -18,9 +18,7 @@
 package org.apache.ivy.plugins.trigger;
 
 import org.apache.ivy.core.IvyContext;
-import org.apache.ivy.core.event.IvyEvent;
 import org.apache.ivy.core.event.IvyEventFilter;
-import org.apache.ivy.core.event.IvyListener;
 import org.apache.ivy.plugins.matcher.PatternMatcher;
 import org.apache.ivy.util.filter.Filter;
 



Mime
View raw message