Proposed refactoring: introduce JLS7 language features to core libs
sreich at mac.com
Wed Apr 25 12:07:49 PDT 2012
is there any interest to accept change sets based on OpenJDK 7 that update the java classes in jdk/src/share/classes to use
* string switch statements as opposed to nested if statements when comparing strings with string literals
* type inference by removing duplicative type information in the constructor when using generics
* indexOf(int) when indexOf(String) is used with a String literal that contains only one character, and similar small-scale improvements?
The proposed change sets would pass all jtreg tests. If there is interest, what would be next steps?
More information about the core-libs-dev