You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@apache.org on 2002/06/13 07:39:14 UTC
cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/model Target.java
donaldp 2002/06/12 22:39:14
Modified: container/src/java/org/apache/myrmidon/interfaces/model
Target.java
Log:
Make sure model is not null and is read-only
Revision Changes Path
1.12 +8 -1 jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/model/Target.java
Index: Target.java
===================================================================
RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/model/Target.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- Target.java 13 Jun 2002 02:59:25 -0000 1.11
+++ Target.java 13 Jun 2002 05:39:14 -0000 1.12
@@ -35,7 +35,14 @@
final ModelElement model )
{
super( name, description );
+
+ if( null == model )
+ {
+ throw new NullPointerException( "model" );
+ }
+
m_model = model;
+ model.makeReadOnly();
}
/**
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>