Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 107583 Details for
Bug 236193
DiagnoseParser has unreachable code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
bug236193_001.txt (text/plain), 1.84 KB, created by
David Audel
on 2008-07-16 05:45:35 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
David Audel
Created:
2008-07-16 05:45:35 EDT
Size:
1.84 KB
patch
obsolete
>### 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.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 236193
: 107583