Skip to content

Commit

Permalink
add javadoc:
Browse files Browse the repository at this point in the history
  • Loading branch information
nimakarimipour committed Oct 3, 2024
1 parent 093f590 commit 2028025
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
import edu.ucr.cs.riple.core.module.ModuleConfiguration;
import edu.ucr.cs.riple.core.module.ModuleInfo;
import edu.ucr.cs.riple.core.registries.index.Error;
import edu.ucr.cs.riple.core.registries.index.Fix;
import edu.ucr.cs.riple.core.registries.region.Region;
import java.util.Set;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,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 resolvingFixes Resolving fixes that can fix the error if all applied to source code.
* @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 2028025

Please sign in to comment.