Support code for providing automated corrections for defects we find.
Interface Summary Interface Description FixRepresents a source code transformation, usually used to fix a bug detected by error-prone.
Class Summary Class Description AdjustedPositionDescribes a tree position with adjustments to the start and end indices. AppliedFixRepresents the corrected source which we think was intended, by applying a Fix. AppliedFix.Applier BranchedSuggestedFixesHelper class for accumulating a branching tree of alternative fixes designed to help build as set of potential fixes with different options in them. BranchedSuggestedFixes.BuilderBuilder class for BranchedSuggestedFixes IndexedPositionDescribes a position that only has a start and end index. ReplacementA replaced section of a source file. ReplacementsA collection of
Replacements to be made to a source file.
SuggestedFixesFactories for constructing
Enum Summary Enum Description Replacements.CoalescePolicyA policy for handling overlapping insertions. SuggestedFixes.AdditionPositionInstructs
SuggestedFixes.addMembers(ClassTree, VisitorState, AdditionPosition, String, String...)whether to add the new member(s) at the beginning of the class, or at the end.