5b194260a7958a23f21210fdf841216dc6f761be
Files Diff
- Added: 1
- Removed: 1
- Renamed: 0
- Modified: 10
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 3 | ||
Rename Method public endVisit(node MethodInvocation) : void renamed to public visit(node MethodInvocation) : boolean in class com.google.devtools.j2objc.translate.NilCheckResolver | From | To | |
Rename Method private makeArrayIterationBlock(expression Expression, expressionType ITypeBinding, loopVariable IVariableBinding, loopBody Statement) : Block renamed to private handleArrayIteration(node EnhancedForStatement) : void in class com.google.devtools.j2objc.translate.EnhancedForRewriter | From | To | |
Rename Method private popScope() : void renamed to private popLastScope() : void in class com.google.devtools.j2objc.translate.NilCheckResolver | From | To | |
Move Method | 2 | ||
Move Method private getLoopBody(s Statement) : Statement from class com.google.devtools.j2objc.translate.Rewriter to private getLoopBody(s Statement) : Statement from class com.google.devtools.j2objc.translate.LabelRewriter | From | To | |
Move Method public endVisit(node LabeledStatement) : void from class com.google.devtools.j2objc.translate.Rewriter to public endVisit(node LabeledStatement) : void from class com.google.devtools.j2objc.translate.LabelRewriter | From | To | |
Rename Variable | 1 | ||
Rename Variable newSafeVarsTrue : Set<IVariableBinding> to newSafeVars : Set<IVariableBinding> in method private handleConditionalOperator(node InfixExpression, logicalAnd boolean) : boolean in class com.google.devtools.j2objc.translate.NilCheckResolver | From | To | |
Change Return Type | 2 | ||
Change Return Type void to boolean in method public visit(node MethodInvocation) : boolean in class com.google.devtools.j2objc.translate.NilCheckResolver | From | To | |
Change Return Type Block to void in method private handleArrayIteration(node EnhancedForStatement) : void in class com.google.devtools.j2objc.translate.EnhancedForRewriter | From | To | |
Extract Variable | 4 | ||
Extract Variable expr : Expression in method public visit(node WhileStatement) : boolean from class com.google.devtools.j2objc.translate.NilCheckResolver | From | To | |
Extract Variable operand : Expression in method private handleConditionalOperator(node InfixExpression, logicalAnd boolean) : boolean from class com.google.devtools.j2objc.translate.NilCheckResolver | From | To | |
Extract Variable var : IVariableBinding in method public endVisit(node Assignment) : void from class com.google.devtools.j2objc.translate.NilCheckResolver | From | To | |
Extract Variable expr : Expression in method public visit(node DoStatement) : boolean from class com.google.devtools.j2objc.translate.NilCheckResolver | From | To | |
Extract Method | 3 | ||
Extract Method private getSafeVarsTrue(expr Expression) : Set<IVariableBinding> extracted from private handleConditional(expr Expression, thenNode TreeNode, elseNode TreeNode) : boolean in class com.google.devtools.j2objc.translate.NilCheckResolver | From | To | |
Extract Method private setConditionalSafeVars(node Expression, newSafeVarsTrue Set<IVariableBinding>, newSafeVarsFalse Set<IVariableBinding>) : void extracted from private handleConditionalOperator(node InfixExpression, logicalAnd boolean) : boolean in class com.google.devtools.j2objc.translate.NilCheckResolver | From | To | |
Extract Method private getSafeVarsFalse(expr Expression) : Set<IVariableBinding> extracted from private handleConditional(expr Expression, thenNode TreeNode, elseNode TreeNode) : boolean in class com.google.devtools.j2objc.translate.NilCheckResolver | From | To |