InterfaceTemplate will fail to instantiate with a NPE if a null
type is ever passed in. Fix documentation and remove dead code.
Change-Id: Ief395cbf0d4d417e8041de39feee1e50d09157e0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
fd4efcfa21a9fcd2123bcef95cfeebdbe7f2785a)
* Creates the instance of this class which is used for generating the interface file source
* code from <code>genType</code>.
*
- * @throws IllegalArgumentException if <code>genType</code> equals <code>null</code>
+ * @throws NullPointerException if <code>genType</code> is <code>null</code>
*/
new(GeneratedType genType) {
super(genType)
- if (genType === null) {
- throw new IllegalArgumentException("Generated type reference cannot be NULL!")
- }
-
consts = genType.constantDefinitions
methods = genType.methodDefinitions
enums = genType.enumerations