From: Dave B. <bla...@us...> - 2013-11-08 15:42:46
|
Update of /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/cimxml/sax/node In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv4919/src/org/sblim/cimclient/internal/cimxml/sax/node Modified Files: Tag: Experimental MethodNode.java Log Message: 2703 MethodNode should not require TYPE attribute Index: MethodNode.java =================================================================== RCS file: /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/cimxml/sax/node/MethodNode.java,v retrieving revision 1.1.2.12 retrieving revision 1.1.2.13 diff -u -d -r1.1.2.12 -r1.1.2.13 --- MethodNode.java 30 Jan 2013 14:57:10 -0000 1.1.2.12 +++ MethodNode.java 8 Nov 2013 15:42:44 -0000 1.1.2.13 @@ -23,6 +23,7 @@ * 2763216 2009-04-14 blaschke-oss Code cleanup: visible spelling/grammar errors * 2797550 2009-06-01 raman_arora JSR48 compliance - add Java Generics * 3602604 2013-01-29 blaschke-oss Clean up SAXException messages + * 2703 2013-11-08 blaschke-oss MethodNode should not require TYPE attribute */ package org.sblim.cimclient.internal.cimxml.sax.node; @@ -88,7 +89,7 @@ this.iName = getCIMName(pAttribs); - this.iType = getCIMType(pAttribs, false); + this.iType = getCIMType(pAttribs, true); if (this.iType != null && this.iType.isArray()) throw new SAXException( "METHOD node's TYPE cannot be an array!"); this.iClassOrigin = getClassOrigin(pAttribs); @@ -124,7 +125,7 @@ @Override public void testCompletness() throws SAXException { this.iType = this.iEmbObjHandler.getType(); - if (this.iType.isArray()) throw new SAXException( + if (this.iType != null && this.iType.isArray()) throw new SAXException( "METHOD node's TYPE attribute cannot be an array!"); } |