Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
nimakarimipour committed Oct 3, 2024
2 parents 150cc19 + c493546 commit 979329a
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,19 @@ public void preprocess(AnnotationInjector injector) {
injector.injectAnnotations(initializers);
}

/**
* Creates a {@link NullAwayError} instance using the provided arguments. It also removes
* annotation change requests that are on an element with explict nonnull annotation.
*
* @param errorType Error Type from NullAway.
* @param errorMessage Error Message from NullAway.
* @param region Region where the error is reported.
* @param offset Offset of program point in the source file where the error is reported.
* @param annotations Annotations that should be added source file to resolve the error.
* @param module Module where this error is reported.
* @return Creates and returns the corresponding {@link NullAwayError} instance using the provided
* information.
*/
private NullAwayError createError(
String errorType,
String errorMessage,
Expand Down

0 comments on commit 979329a

Please sign in to comment.