a612236eb0599f2fe2b0c201be8447c5990ec12e
Files Diff
- Added: 1
- Removed: 0
- Renamed: 0
- Modified: 2
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Move Method | 2 | ||
Move Method private buildValidReplacements(potentialReplacements Multimap<Integer,JCVariableDecl>, replacementFunction Function<JCVariableDecl,Fix>) : List<Fix> from class com.google.errorprone.bugpatterns.ModifyingCollectionWithItself to private buildValidReplacements(potentialReplacements Multimap<Integer,JCVariableDecl>, replacementFunction Function<JCVariableDecl,Fix>) : ImmutableList<Fix> from class com.google.errorprone.bugpatterns.ReplacementVariableFinder | From | To | |
Move Method private simpleNameOfIdentifierOrMemberAccess(tree ExpressionTree) : String from class com.google.errorprone.bugpatterns.ModifyingCollectionWithItself to private simpleNameOfIdentifierOrMemberAccess(tree ExpressionTree) : String from class com.google.errorprone.bugpatterns.ReplacementVariableFinder | From | To | |
Rename Variable | 1 | ||
Rename Variable rhsName : String to exploratoryFieldFixes : ImmutableList<Fix> in method public describeForAssignment(assignmentTree AssignmentTree, state VisitorState) : Description in class com.google.errorprone.bugpatterns.SelfAssignment | From | To | |
Change Return Type | 2 | ||
Change Return Type List<Fix> to ImmutableList<Fix> in method private buildValidReplacements(potentialReplacements Multimap<Integer,JCVariableDecl>, replacementFunction Function<JCVariableDecl,Fix>) : ImmutableList<Fix> in class com.google.errorprone.bugpatterns.ReplacementVariableFinder | From | To | |
Change Return Type List<Fix> to ImmutableList<Fix> in method private literalReplacement(methodInvocationTree MethodInvocationTree, state VisitorState, lhs ExpressionTree) : ImmutableList<Fix> in class com.google.errorprone.bugpatterns.ModifyingCollectionWithItself | From | To | |
Extract Class | 1 | ||
Extract Class com.google.errorprone.bugpatterns.ReplacementVariableFinder from class com.google.errorprone.bugpatterns.ModifyingCollectionWithItself | From | To | |
Change Variable Type | 1 | ||
Change Variable Type rhsName : String to exploratoryFieldFixes : ImmutableList<Fix> in method public describeForAssignment(assignmentTree AssignmentTree, state VisitorState) : Description in class com.google.errorprone.bugpatterns.SelfAssignment | From | To |