gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r790787 - in /gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy: Main.java Registry.java resources/GumpArtifact.java
Date Fri, 03 Jul 2009 04:49:11 GMT
Author: bodewig
Date: Fri Jul  3 04:49:10 2009
New Revision: 790787

URL: http://svn.apache.org/viewvc?rev=790787&view=rev
Log:
whitespace

Modified:
    gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java
    gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Registry.java
    gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/resources/GumpArtifact.java

Modified: gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java
URL: http://svn.apache.org/viewvc/gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java?rev=790787&r1=790786&r2=790787&view=diff
==============================================================================
--- gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java (original)
+++ gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java Fri Jul  3 04:49:10
2009
@@ -89,7 +89,7 @@
      */
     public static Component getRepositoryComponent() {
         final Component component = new Component();
-        
+
         Application repoApp = new Application(component.getContext()
                                               .createChildContext()) {
 

Modified: gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Registry.java
URL: http://svn.apache.org/viewvc/gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Registry.java?rev=790787&r1=790786&r2=790787&view=diff
==============================================================================
--- gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Registry.java (original)
+++ gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Registry.java Fri Jul  3 04:49:10
2009
@@ -36,40 +36,40 @@
     public static void addArtifact(String group, String artifactId,
                                    String artifactType,
                                    String fileName) {
-	knownArtifacts.put(new Key(group, artifactId, artifactType), fileName);
+        knownArtifacts.put(new Key(group, artifactId, artifactType), fileName);
     }
 
     public static String getArtifactPath(String groupId, String artifactId,
                                          String artifactType) {
-	return knownArtifacts.get(new Key(groupId, artifactId, artifactType));
+        return knownArtifacts.get(new Key(groupId, artifactId, artifactType));
     }
 
     private static class Key {
-	private final String groupId;
-	private final String artifactId;
+        private final String groupId;
+        private final String artifactId;
         private final String type;
 
-	Key(String groupId, String artifactId, String type) {
-	    this.groupId = groupId;
-	    this.artifactId = artifactId;
+        Key(String groupId, String artifactId, String type) {
+            this.groupId = groupId;
+            this.artifactId = artifactId;
             this.type = type;
-	}
+        }
 
-	@Override
-	public boolean equals(Object o) {
-	    if (o == null || !(o instanceof Key)) {
-		return false;
-	    }
-	    Key other = (Key) o;
-	    return groupId.equals(other.groupId)
-		&& artifactId.equals(other.artifactId)
+        @Override
+        public boolean equals(Object o) {
+            if (o == null || !(o instanceof Key)) {
+                return false;
+            }
+            Key other = (Key) o;
+            return groupId.equals(other.groupId)
+                && artifactId.equals(other.artifactId)
                 && type.equals(other.type);
-	}
+        }
 
-	@Override
-	public int hashCode() {
-	    return type.hashCode() + 
+        @Override
+        public int hashCode() {
+            return type.hashCode() + 
                 13 * (groupId.hashCode() + 7 * artifactId.hashCode());
-	}
+        }
     }
 }
\ No newline at end of file

Modified: gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/resources/GumpArtifact.java
URL: http://svn.apache.org/viewvc/gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/resources/GumpArtifact.java?rev=790787&r1=790786&r2=790787&view=diff
==============================================================================
--- gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/resources/GumpArtifact.java (original)
+++ gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/resources/GumpArtifact.java Fri
Jul  3 04:49:10 2009
@@ -79,7 +79,7 @@
      * The artifacts served so far.
      */
     static final LogEntry[] getServedArtifacts() {
-	return served.toArray(new LogEntry[0]);
+        return served.toArray(new LogEntry[0]);
     }
 
     private void log(String start) {
@@ -91,7 +91,7 @@
                          .get(Constants.ARTIFACT_ID)
                          + "'");
     }
-    
+
 
     protected final String getGroupId() {
         return getGroupId(getRequest());



Mime
View raw message