### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: compiler/org/eclipse/jdt/internal/compiler/parser/diagnose/DiagnoseParser.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/diagnose/DiagnoseParser.java,v retrieving revision 1.31 diff -u -r1.31 DiagnoseParser.java --- compiler/org/eclipse/jdt/internal/compiler/parser/diagnose/DiagnoseParser.java 27 Jun 2008 16:04:07 -0000 1.31 +++ compiler/org/eclipse/jdt/internal/compiler/parser/diagnose/DiagnoseParser.java 16 Jul 2008 09:37:46 -0000 @@ -884,11 +884,6 @@ repair.distance = j; repair.symbol = symbol; repair.code = INSERTION_CODE; - } else if (j == repair.distance && k == repair.misspellIndex && isBetterSymbol(symbol, repair.symbol)) { - repair.misspellIndex = k; - repair.distance = j; - repair.symbol = symbol; - repair.code = INSERTION_CODE; } symbol = this.list[symbol]; @@ -917,10 +912,6 @@ repair.misspellIndex = k; repair.symbol = symbol; repair.code = SUBSTITUTION_CODE; - } else if (j == repair.distance && k > repair.misspellIndex && isBetterSymbol(symbol, repair.symbol)) { - repair.misspellIndex = k; - repair.symbol = symbol; - repair.code = SUBSTITUTION_CODE; } i = symbol; symbol = this.list[symbol]; @@ -1243,17 +1234,6 @@ return Parser.non_terminal_index[highest_symbol]; } - private boolean isBetterSymbol(int symbol, int actualSymbol) { -// switch (actualSymbol) { -// case TokenNameinterface : -// if(symbol == TokenNameclass) { -// return true; -// } -// break; -// } - return false; - } - // // Check whether or not there is a high probability that a // given string is a misspelling of another.