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
|
// is reported by posting runnable actions to the actions queue which is processed by the
|
||||||
// main (UI) thread
|
// main (UI) thread
|
||||||
ExecutorService exec = Executors.newFixedThreadPool(SysProps.threadPoolSize());
|
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];
|
final int[] completed = new int[1];
|
||||||
|
|
||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ public class PathBuilder
|
|||||||
*/
|
*/
|
||||||
public static ClassPath buildDefaultClassPath (Application app)
|
public static ClassPath buildDefaultClassPath (Application app)
|
||||||
{
|
{
|
||||||
LinkedHashSet<File> classPathEntries = new LinkedHashSet<File>();
|
LinkedHashSet<File> classPathEntries = new LinkedHashSet<>();
|
||||||
for (Resource resource : app.getActiveCodeResources()) {
|
for (Resource resource : app.getActiveCodeResources()) {
|
||||||
classPathEntries.add(resource.getFinalTarget());
|
classPathEntries.add(resource.getFinalTarget());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ public class ClassPathTest
|
|||||||
_firstJar = _folder.newFile("a.jar");
|
_firstJar = _folder.newFile("a.jar");
|
||||||
_secondJar = _folder.newFile("b.jar");
|
_secondJar = _folder.newFile("b.jar");
|
||||||
|
|
||||||
LinkedHashSet<File> classPathEntries = new LinkedHashSet<File>();
|
LinkedHashSet<File> classPathEntries = new LinkedHashSet<>();
|
||||||
classPathEntries.add(_firstJar);
|
classPathEntries.add(_firstJar);
|
||||||
classPathEntries.add(_secondJar);
|
classPathEntries.add(_secondJar);
|
||||||
_classPath = new ClassPath(classPathEntries);
|
_classPath = new ClassPath(classPathEntries);
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ public final class ProxyUtil {
|
|||||||
log.info("Using no proxy");
|
log.info("Using no proxy");
|
||||||
app.conn = new Connector();
|
app.conn = new Connector();
|
||||||
} else {
|
} else {
|
||||||
int pp = StringUtil.isBlank(port) ? 80 : Integer.valueOf(port);
|
int pp = StringUtil.isBlank(port) ? 80 : Integer.parseInt(port);
|
||||||
log.info("Using proxy", "host", host, "port", pp, "haveCreds", haveCreds);
|
log.info("Using proxy", "host", host, "port", pp, "haveCreds", haveCreds);
|
||||||
app.conn = new Connector(new Proxy(Proxy.Type.HTTP, new InetSocketAddress(host, pp)));
|
app.conn = new Connector(new Proxy(Proxy.Type.HTTP, new InetSocketAddress(host, pp)));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user