Type inference. Use autoboxing for int

This commit is contained in:
Anosh D. Ullenius
2022-06-17 20:33:00 +02:00
parent 258d85b934
commit 03ed2f52d1
4 changed files with 4 additions and 4 deletions
@@ -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);