static void checkValid ( Path path , ConfigValueType referenceType , AbstractConfigValue value , List < ConfigException . ValidationProblem > accumulator ) { if ( haveCompatibleTypes ( referenceType , value ) ) { if ( referenceType == ConfigValueType . LIST && value instanceof SimpleConfigObject ) { // attempt conversion of indexed object to list AbstractConfigValue listValue = DefaultTransformer . transform ( value , ConfigValueType . LIST ) ; if ( ! ( listValue instanceof SimpleConfigList ) ) addWrongType ( accumulator , referenceType , value , path ) ; } } else { addWrongType ( accumulator , referenceType , value , path ) ; } }
Used by the JavaBean - based validator