|
From: Dave B. <bla...@us...> - 2012-04-16 12:44:41
|
Update of /cvsroot/sblim/jsr48-client/src/javax/cim
In directory vz-cvs-3.sog:/tmp/cvs-serv26248/src/javax/cim
Modified Files:
CIMDataType.java
Log Message:
3513349 - TCK: CIMDataType must not accept null string
Index: CIMDataType.java
===================================================================
RCS file: /cvsroot/sblim/jsr48-client/src/javax/cim/CIMDataType.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- CIMDataType.java 13 Apr 2012 13:58:28 -0000 1.15
+++ CIMDataType.java 16 Apr 2012 12:44:39 -0000 1.16
@@ -22,6 +22,7 @@
* 2935258 2010-01-22 blaschke-oss Sync up javax.cim.* javadoc with JSR48 1.0.0
* 3004779 2010-06-16 blaschke-oss TCK: CIMDataType not throwing IllegalArgumentException
* 3513353 2012-03-30 blaschke-oss TCK: CIMDataType arrays must have length >= 1
+ * 3513349 2012-03-31 blaschke-oss TCK: CIMDataType must not accept null string
*/
package javax.cim;
@@ -548,6 +549,7 @@
* The CIM class reference name.
*/
public CIMDataType(String pClassName) {
+ if (pClassName == null) throw new IllegalArgumentException("Class name must not be null!");
setType(REFERENCE);
this.iRefClassName = pClassName;
}
@@ -562,6 +564,7 @@
* The size of the array. 0 indicates the array is unbounded.
*/
public CIMDataType(String pClassName, int pSize) {
+ if (pClassName == null) throw new IllegalArgumentException("Class name must not be null!");
if (pSize < 0) throw new IllegalArgumentException(
"Maximum number of elements cannot be negative integer!");
setType(REFERENCE, pSize);
|