Print

Print


Commit in GeomConverter/src/org/lcsim/detector on MAIN
INamed.java-91.1 -> 1.2
Named.java+2-251.1 -> 1.2
+2-34
2 modified files
JM: Make Named immutable (suggestion of Tony).

GeomConverter/src/org/lcsim/detector
INamed.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- INamed.java	2 Mar 2007 02:28:23 -0000	1.1
+++ INamed.java	10 Jul 2007 19:49:39 -0000	1.2
@@ -10,13 +10,4 @@
 public interface INamed 
 {
 	public String getName();
-	public void setName(String name) throws ImmutableNameException;
-	public boolean isNameChangeable();
-	public final class ImmutableNameException extends Exception
-	{
-		public ImmutableNameException(String name)
-		{
-			super("The name of <" + name + "> is not immutable once set.");
-		}
-	}
 }
\ No newline at end of file

GeomConverter/src/org/lcsim/detector
Named.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- Named.java	2 Mar 2007 02:28:23 -0000	1.1
+++ Named.java	10 Jul 2007 19:49:39 -0000	1.2
@@ -11,37 +11,14 @@
 implements INamed
 {
 	private String name;
-	private boolean isNameChangeable=true;
 	
 	public Named(String name)
 	{
 		this.name = name;
 	}
-	
-	public Named(String name, boolean isNameChangeable)
-	{
-		this.name = name;
-		this.isNameChangeable = isNameChangeable;
-	}
-	
+		
 	public String getName()
 	{
 		return name;
-	}
-	
-	public void setName(String name) throws ImmutableNameException
-	{
-		if ( isNameChangeable )
-		{
-			this.name = name;
-		}
-		else {
-			throw new ImmutableNameException(name);
-		}
-	}
-		
-	public boolean isNameChangeable()
-	{
-		return isNameChangeable;
-	}
+	}	
 }
\ No newline at end of file
CVSspam 0.2.8