connector/src/main/java/org/jboss/as/connector/util/Injection.java
private boolean argumentMatches(String classType, String propertyType) {
        return (classType.equals(propertyType))
                || (classType.equals("java.lang.Byte") && propertyType.equals("byte"))
                || (classType.equals("java.lang.Short") && propertyType.equals("short"))
                || (classType.equals("java.lang.Integer") && propertyType.equals("int"))
                || (classType.equals("java.lang.Long") && propertyType.equals("long"))
                || (classType.equals("java.lang.Float") && propertyType.equals("float"))
                || (classType.equals("java.lang.Double") && propertyType.equals("double"))
                || (classType.equals("java.lang.Boolean") && propertyType.equals("boolean"))
                || (classType.equals("java.lang.Character") && propertyType.equals("char"));
    }
private boolean argumentMatches(String classType, String propertyType) {
        return (classType.equals(propertyType))
                || (classType.equals("java.lang.Byte") && propertyType.equals("byte"))
                || (classType.equals("java.lang.Short") && propertyType.equals("short"))
                || (classType.equals("java.lang.Integer") && propertyType.equals("int"))
                || (classType.equals("java.lang.Long") && propertyType.equals("long"))
                || (classType.equals("java.lang.Float") && propertyType.equals("float"))
                || (classType.equals("java.lang.Double") && propertyType.equals("double"))
                || (classType.equals("java.lang.Boolean") && propertyType.equals("boolean"))
                || (classType.equals("java.lang.Character") && propertyType.equals("char"));
    }
private boolean argumentMatches ( String classType , String propertyType ) { return ( classType . equals ( propertyType ) ) || ( classType . equals ( "java.lang.Byte" ) && propertyType . equals ( "byte" ) ) || ( classType . equals ( "java.lang.Short" ) && propertyType . equals ( "short" ) ) || ( classType . equals ( "java.lang.Integer" ) && propertyType . equals ( "int" ) ) || ( classType . equals ( "java.lang.Long" ) && propertyType . equals ( "long" ) ) || ( classType . equals ( "java.lang.Float" ) && propertyType . equals ( "float" ) ) || ( classType . equals ( "java.lang.Double" ) && propertyType . equals ( "double" ) ) || ( classType . equals ( "java.lang.Boolean" ) && propertyType . equals ( "boolean" ) ) || ( classType . equals ( "java.lang.Character" ) && propertyType . equals ( "char" ) ) ; }
Compare the type of a class with the actual value

@param classType    The class type
@param propertyType The property type
@return True if they match, or if there is a primitive mapping
Compare the type of a class with the actual value