Remove obsolete AttributeMethods.hasOnlyValueAttribute() method

See gh-29685
This commit is contained in:
Sam Brannen
2022-12-13 15:52:01 +01:00
parent 433b1c480c
commit e7bcb48e57
2 changed files with 1 additions and 30 deletions

View File

@@ -86,17 +86,6 @@ final class AttributeMethods {
}
/**
* Determine if this instance only contains a single attribute named
* {@code value}.
* @return {@code true} if there is only a value attribute
*/
boolean hasOnlyValueAttribute() {
return (this.attributeMethods.length == 1 &&
MergedAnnotation.VALUE.equals(this.attributeMethods[0].getName()));
}
/**
* Determine if values from the given annotation can be safely accessed without
* causing any {@link TypeNotPresentException TypeNotPresentExceptions}.