@@ -125,7 +125,7 @@ public void validate(Object object, String context, ValidatorContext validatorCo
125
125
* @param context context
126
126
* @return a validator key which is the class name plus context.
127
127
*/
128
- protected String buildValidatorKey (Class clazz , String context ) {
128
+ protected String buildValidatorKey (Class <?> clazz , String context ) {
129
129
return clazz .getName () + "/" + context ;
130
130
}
131
131
@@ -137,7 +137,7 @@ protected Validator getValidatorFromValidatorConfig(ValidatorConfig config, Valu
137
137
}
138
138
139
139
@ Override
140
- public synchronized List <Validator > getValidators (Class clazz , String context , String method ) {
140
+ public synchronized List <Validator > getValidators (Class <?> clazz , String context , String method ) {
141
141
String validatorKey = buildValidatorKey (clazz , context );
142
142
143
143
if (!validatorCache .containsKey (validatorKey )) {
@@ -158,7 +158,7 @@ public synchronized List<Validator> getValidators(Class clazz, String context, S
158
158
}
159
159
160
160
@ Override
161
- public synchronized List <Validator > getValidators (Class clazz , String context ) {
161
+ public synchronized List <Validator > getValidators (Class <?> clazz , String context ) {
162
162
return getValidators (clazz , context , null );
163
163
}
164
164
@@ -277,7 +277,7 @@ public void validate(Object object, String context, ValidatorContext validatorCo
277
277
* @param checked the set of previously checked class-contexts, null if none have been checked
278
278
* @return a list of validator configs for the given class and context.
279
279
*/
280
- protected List <ValidatorConfig > buildValidatorConfigs (Class clazz , String context , boolean checkFile , Set <String > checked ) {
280
+ protected List <ValidatorConfig > buildValidatorConfigs (Class <?> clazz , String context , boolean checkFile , Set <String > checked ) {
281
281
List <ValidatorConfig > validatorConfigs = new ArrayList <>();
282
282
283
283
if (checked == null ) {
@@ -287,7 +287,7 @@ protected List<ValidatorConfig> buildValidatorConfigs(Class clazz, String contex
287
287
}
288
288
289
289
if (clazz .isInterface ()) {
290
- for (Class anInterface : clazz .getInterfaces ()) {
290
+ for (Class <?> anInterface : clazz .getInterfaces ()) {
291
291
validatorConfigs .addAll (buildValidatorConfigs (anInterface , context , checkFile , checked ));
292
292
}
293
293
} else {
@@ -297,7 +297,7 @@ protected List<ValidatorConfig> buildValidatorConfigs(Class clazz, String contex
297
297
}
298
298
299
299
// look for validators for implemented interfaces
300
- for (Class anInterface1 : clazz .getInterfaces ()) {
300
+ for (Class <?> anInterface1 : clazz .getInterfaces ()) {
301
301
if (checked .contains (anInterface1 .getName ())) {
302
302
continue ;
303
303
}
@@ -317,17 +317,17 @@ protected List<ValidatorConfig> buildValidatorConfigs(Class clazz, String contex
317
317
return validatorConfigs ;
318
318
}
319
319
320
- protected List <ValidatorConfig > buildAliasValidatorConfigs (Class aClass , String context , boolean checkFile ) {
320
+ protected List <ValidatorConfig > buildAliasValidatorConfigs (Class <?> aClass , String context , boolean checkFile ) {
321
321
String fileName = aClass .getName ().replace ('.' , '/' ) + "-" + context + VALIDATION_CONFIG_SUFFIX ;
322
322
return loadFile (fileName , aClass , checkFile );
323
323
}
324
324
325
- protected List <ValidatorConfig > buildClassValidatorConfigs (Class aClass , boolean checkFile ) {
325
+ protected List <ValidatorConfig > buildClassValidatorConfigs (Class <?> aClass , boolean checkFile ) {
326
326
String fileName = aClass .getName ().replace ('.' , '/' ) + VALIDATION_CONFIG_SUFFIX ;
327
327
return loadFile (fileName , aClass , checkFile );
328
328
}
329
329
330
- protected List <ValidatorConfig > loadFile (String fileName , Class clazz , boolean checkFile ) {
330
+ protected List <ValidatorConfig > loadFile (String fileName , Class <?> clazz , boolean checkFile ) {
331
331
List <ValidatorConfig > retList = Collections .emptyList ();
332
332
333
333
URL fileUrl = ClassLoaderUtil .getResource (fileName , clazz );
0 commit comments