Skip to content

Commit

Permalink
Use @noreference tag to declare it's not intended to be referenced by…
Browse files Browse the repository at this point in the history
… clients
  • Loading branch information
testforstephen committed Jun 5, 2024
1 parent 4fb50b3 commit 85ff9c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public String[] getAnnotationProcessorPaths(IJavaProject project, boolean isTest
List<String> processorPaths = new ArrayList<>();
FactoryPath factoryPath = FactoryPathUtil.getFactoryPath(project);
if (factoryPath == null) {
return super.getAnnotationProcessorPaths(project, isTest);
return null;
}

factoryPath.getEnabledContainers().keySet().forEach(container -> {
Expand All @@ -233,7 +233,7 @@ public String[] getAnnotationProcessorPaths(IJavaProject project, boolean isTest
return processorPaths.toArray(new String[processorPaths.size()]);
}

return super.getAnnotationProcessorPaths(project, isTest);
return null;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,31 +153,29 @@ public void processAnnotations(BuildContext[] files) {
}

/**
* Provisional API for experimental support for an alternative compiler
* and can be removed without notice.
*
* Returns where to find annotation processors. If this is not specified,
* then the class path is searched for processors.
* Requests the participant to supply the locations where to find annotation
* processors. If this is not specified, then the class path is searched for
* processors.
*
* @param project the project to participate in
* @param isTest whether the annotation processor path is for test code
* @return the annotation processor paths
* @since 3.38
* @noreference Provisional API for experimental support for an alternative compiler. This method is not intended to be referenced by clients.
*/
public String[] getAnnotationProcessorPaths(IJavaProject project, boolean isTest) {
return null;
}

/**
* Provisional API for experimental support for an alternative compiler,
* and can be removed without notice.
*
* Returns the locations to place the generated source files.
* Requests the participant to supply the locations to place the generated
* source files.
*
* @param project the project to participate in
* @param isTest whether the generated source paths are for test code
* @return the locations to place the generated source files
* @since 3.38
* @noreference Provisional API for experimental support for an alternative compiler. This method is not intended to be referenced by clients.
*/
public String[] getGeneratedSourcePaths(IJavaProject project, boolean isTest) {
return null;
Expand Down

0 comments on commit 85ff9c3

Please sign in to comment.