private void checkRecursiveConfigs ( Set < Class > resolvedConfigs , Class < ? > configClass ) { if ( resolvedConfigs . contains ( configClass ) ) { throw new PropertyLoaderException ( String . format ( "Recursive configuration <%s>" , configClass ) ) ; } }
Throws an exception if already meet the config .