iiop-openjdk/src/main/java/org/wildfly/iiop/openjdk/rmi/ir/InterfaceRepository.java
private void addTypeCode(Class cls, TypeCode typeCode)
            throws IRConstructionException {
        if (cls == null)
            throw IIOPLogger.ROOT_LOGGER.invalidNullClass();

        TypeCode tc = (TypeCode) typeCodeMap.get(cls);

        if (tc != null)
            throw IIOPLogger.ROOT_LOGGER.duplicateTypeCodeForClass(cls.getName());

        typeCodeMap.put(cls, typeCode);
    }
private void addTypeCode(Class cls, TypeCode typeCode)
            throws IRConstructionException {
        if (cls == null)
            throw IIOPLogger.ROOT_LOGGER.invalidNullClass();

        TypeCode tc = (TypeCode) typeCodeMap.get(cls);

        if (tc != null)
            throw IIOPLogger.ROOT_LOGGER.duplicateTypeCodeForClass(cls.getName());

        typeCodeMap.put(cls, typeCode);
    }
private void addTypeCode ( Class cls , TypeCode typeCode ) throws IRConstructionException { if ( cls == null ) throw IIOPLogger . ROOT_LOGGER . invalidNullClass ( ) ; TypeCode tc = ( TypeCode ) typeCodeMap . get ( cls ) ; if ( tc != null ) throw IIOPLogger . ROOT_LOGGER . duplicateTypeCodeForClass ( cls . getName ( ) ) ; typeCodeMap . put ( cls , typeCode ) ; }
Add a new IDL TypeCode for a mapped class.

@param cls      The Java class denoting the java type.
@param typeCode The IDL type code of the mapped java class.
Add a new IDL TypeCode for a mapped class .