Type inference. Use autoboxing for int
This commit is contained in:
@@ -1332,7 +1332,7 @@ public class Application
|
||||
// is reported by posting runnable actions to the actions queue which is processed by the
|
||||
// main (UI) thread
|
||||
ExecutorService exec = Executors.newFixedThreadPool(SysProps.threadPoolSize());
|
||||
final BlockingQueue<Runnable> actions = new LinkedBlockingQueue<Runnable>();
|
||||
final BlockingQueue<Runnable> actions = new LinkedBlockingQueue<>();
|
||||
final int[] completed = new int[1];
|
||||
|
||||
long start = System.currentTimeMillis();
|
||||
|
||||
@@ -40,7 +40,7 @@ public class PathBuilder
|
||||
*/
|
||||
public static ClassPath buildDefaultClassPath (Application app)
|
||||
{
|
||||
LinkedHashSet<File> classPathEntries = new LinkedHashSet<File>();
|
||||
LinkedHashSet<File> classPathEntries = new LinkedHashSet<>();
|
||||
for (Resource resource : app.getActiveCodeResources()) {
|
||||
classPathEntries.add(resource.getFinalTarget());
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ public class ClassPathTest
|
||||
_firstJar = _folder.newFile("a.jar");
|
||||
_secondJar = _folder.newFile("b.jar");
|
||||
|
||||
LinkedHashSet<File> classPathEntries = new LinkedHashSet<File>();
|
||||
LinkedHashSet<File> classPathEntries = new LinkedHashSet<>();
|
||||
classPathEntries.add(_firstJar);
|
||||
classPathEntries.add(_secondJar);
|
||||
_classPath = new ClassPath(classPathEntries);
|
||||
|
||||
Reference in New Issue
Block a user