Project: JDT
Bug 135612 [clean up] Add and use common operator precedence code
Reported: 2006-04-07 13:45:11 | Status: resolved fixed

I found 3 spots where JDT/UI code explicitly deals with operator precedence: - AdvancedQuickAssistProcessor.getExpressionPrecedence(Expression) - ExpressionsFix.UnnecessaryParenthesisVisitor.getExpressionPrecedence(Expression) - OperatorPrecedence.getValue(Expression) These should be unified into one.

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/InlineMethodTests.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ExpressionsFix.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/CallInliner.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/OperatorPrecedence.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/SourceAnalyzer.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java