-
Notifications
You must be signed in to change notification settings - Fork 744
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I believe we meant to do this after removing MinimalFix, then forgot. PiperOrigin-RevId: 565481056
- Loading branch information
1 parent
5c391b4
commit 02c0c29
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
|
||
package com.google.errorprone.fixes; | ||
|
||
import com.google.errorprone.annotations.RestrictedInheritance; | ||
import com.sun.tools.javac.tree.EndPosTable; | ||
import com.sun.tools.javac.tree.JCTree.JCCompilationUnit; | ||
import java.util.Collection; | ||
|
@@ -26,6 +27,11 @@ | |
* | ||
* @author [email protected] (Eddie Aftandilian) | ||
*/ | ||
@RestrictedInheritance( | ||
explanation = "This should only be subclassed within ErrorProne.", | ||
allowedOnPath = | ||
".*/third_party/java_src/error_prone/project/check_api/src/main/java/com/google/errorprone/fixes/.*" | ||
+ "|.*third_party/java_src/error_prone/project/check_api/src/main/java/com/google/errorprone/_javac/check_api/libcheck_api-class_sources/com/google/errorprone/fixes/.*") | ||
public interface Fix { | ||
|
||
String toString(JCCompilationUnit compilationUnit); | ||
|
@@ -36,9 +42,7 @@ public interface Fix { | |
* | ||
* <p>Empty string generates the default description. | ||
*/ | ||
default String getShortDescription() { | ||
return ""; | ||
} | ||
String getShortDescription(); | ||
|
||
Set<Replacement> getReplacements(EndPosTable endPositions); | ||
|
||
|