--- a/langtools/src/share/classes/com/sun/tools/javac/file/Locations.java Wed Dec 18 19:22:58 2013 +0000
+++ b/langtools/src/share/classes/com/sun/tools/javac/file/Locations.java Wed Dec 18 16:05:18 2013 -0500
@@ -144,7 +144,7 @@
* @return The elements of the path
*/
private static Iterable<File> getPathEntries(String path, File emptyPathDefault) {
- ListBuffer<File> entries = new ListBuffer<File>();
+ ListBuffer<File> entries = new ListBuffer<>();
int start = 0;
while (start <= path.length()) {
int sep = path.indexOf(File.pathSeparatorChar, start);
@@ -167,7 +167,7 @@
private static final long serialVersionUID = 0;
private boolean expandJarClassPaths = false;
- private Set<File> canonicalValues = new HashSet<File>();
+ private Set<File> canonicalValues = new HashSet<>();
public Path expandJarClassPaths(boolean x) {
expandJarClassPaths = x;
@@ -510,7 +510,7 @@
*/
private class BootClassPathLocationHandler extends LocationHandler {
private Collection<File> searchPath;
- final Map<Option, String> optionValues = new EnumMap<Option,String>(Option.class);
+ final Map<Option, String> optionValues = new EnumMap<>(Option.class);
/**
* rt.jar as found on the default bootclasspath.
@@ -648,8 +648,8 @@
Map<Option, LocationHandler> handlersForOption;
void initHandlers() {
- handlersForLocation = new HashMap<Location, LocationHandler>();
- handlersForOption = new EnumMap<Option, LocationHandler>(Option.class);
+ handlersForLocation = new HashMap<>();
+ handlersForOption = new EnumMap<>(Option.class);
LocationHandler[] handlers = {
new BootClassPathLocationHandler(),