File tree Expand file tree Collapse file tree
byte-buddy-dep/src/main/java/net/bytebuddy/utility Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 */
1616package net .bytebuddy .utility ;
1717
18+ import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
1819import net .bytebuddy .ClassFileVersion ;
1920import net .bytebuddy .build .AccessControllerPlugin ;
2021import net .bytebuddy .description .enumeration .EnumerationDescription ;
@@ -1000,6 +1001,7 @@ public static MethodType ofSetter(Field field) {
10001001 * @param fieldDescription The field to extract a setter type for.
10011002 * @return The type of a setter for the given field.
10021003 */
1004+ @ SuppressFBWarnings (value = "NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" , justification = "Assuming declaring type for type member." )
10031005 public static MethodType ofSetter (FieldDescription fieldDescription ) {
10041006 return new MethodType (TypeDescription .ForLoadedType .of (void .class ), fieldDescription .isStatic ()
10051007 ? Collections .singletonList (fieldDescription .getType ().asErasure ())
@@ -1022,6 +1024,7 @@ public static MethodType ofGetter(Field field) {
10221024 * @param fieldDescription The field to extract a getter type for.
10231025 * @return The type of a getter for the given field.
10241026 */
1027+ @ SuppressFBWarnings (value = "NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" , justification = "Assuming declaring type for type member." )
10251028 public static MethodType ofGetter (FieldDescription fieldDescription ) {
10261029 return new MethodType (fieldDescription .getType ().asErasure (), fieldDescription .isStatic ()
10271030 ? Collections .<TypeDescription >emptyList ()
You can’t perform that action at this time.
0 commit comments