incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickcha...@apache.org
Subject svn commit: rev 6939 - incubator/depot/trunk/ruper/src/java/core/org/apache/ruper/resource
Date Mon, 01 Mar 2004 02:31:30 GMT
Author: nickchalko
Date: Sun Feb 29 18:31:30 2004
New Revision: 6939

Modified:
   incubator/depot/trunk/ruper/src/java/core/org/apache/ruper/resource/ResourceGroup.java
Log:
Throw NPE in constructor.
Fixed author tag.

Modified: incubator/depot/trunk/ruper/src/java/core/org/apache/ruper/resource/ResourceGroup.java
==============================================================================
--- incubator/depot/trunk/ruper/src/java/core/org/apache/ruper/resource/ResourceGroup.java
(original)
+++ incubator/depot/trunk/ruper/src/java/core/org/apache/ruper/resource/ResourceGroup.java
Sun Feb 29 18:31:30 2004
@@ -13,34 +13,36 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  */
-
 package org.apache.ruper.resource;
-
 /**
- * @author arb_jack
+ * @author <a href="http://incubator.apache.org/depot">The Apache Incubator Depot Project</a>
  */
 public class ResourceGroup {
 	public String m_group = null;
-
-	public ResourceGroup(String group) {
+public ResourceGroup(String group) {
+		if(group == null){throw new NullPointerException("group must be set");}
 		m_group = group;
-	}
-
-	/* (non-Javadoc)
-	 * @see java.lang.Object#equals(java.lang.Object)
-	 */
+	}	
+	
+	/*
+		  * (non-Javadoc)
+		  * 
+		  * @see java.lang.Object#equals(java.lang.Object)
+		  */
 	public boolean equals(Object otherGroup) {
 		return m_group.equals(((ResourceGroup) otherGroup).m_group);
 	}
-
-	/* (non-Javadoc)
+	/*
+	 * (non-Javadoc)
+	 * 
 	 * @see java.lang.Object#hashCode()
 	 */
 	public int hashCode() {
 		return m_group.hashCode();
 	}
-
-	/* (non-Javadoc)
+	/*
+	 * (non-Javadoc)
+	 * 
 	 * @see java.lang.Object#toString()
 	 */
 	public String toString() {
@@ -52,11 +54,9 @@
 	public String getGroup() {
 		return m_group;
 	}
-
 	public static ResourceGroup getTestGroup() {
 		return getTestGroup("test");
 	}
-
 	public static ResourceGroup getTestGroup(String name) {
 		return new ResourceGroup(name);
 	}

Mime
View raw message