forked from phoedos/pmd
Do not warn for List being deprecated by default
This commit is contained in:
@ -106,16 +106,11 @@ public final class Attribute {
|
||||
return null;
|
||||
} else {
|
||||
DeprecatedAttribute annot = method.getAnnotation(DeprecatedAttribute.class);
|
||||
String result = annot != null
|
||||
return annot != null
|
||||
? annot.replaceWith()
|
||||
: method.isAnnotationPresent(Deprecated.class)
|
||||
? DeprecatedAttribute.NO_REPLACEMENT
|
||||
: null;
|
||||
if (result == null && List.class.isAssignableFrom(method.getReturnType())) {
|
||||
// Lists are generally deprecated, see #2451
|
||||
result = DeprecatedAttribute.NO_REPLACEMENT;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user