This commit is contained in:
Stephane Nicoll
2019-12-26 10:42:40 +01:00
parent 1e38dd5531
commit 2c1e81adf0
24 changed files with 65 additions and 78 deletions

View File

@@ -74,7 +74,7 @@ public abstract class ExecutableArchiveLauncher extends Launcher {
}
private Iterator<Archive> applyClassPathArchivePostProcessing(Iterator<Archive> archives) throws Exception {
List<Archive> list = new ArrayList<Archive>();
List<Archive> list = new ArrayList<>();
while (archives.hasNext()) {
list.add(archives.next());
}

View File

@@ -167,7 +167,7 @@ public class PropertiesLauncher extends Launcher {
}
}
private void initializeProperties() throws Exception, IOException {
private void initializeProperties() throws Exception {
List<String> configs = new ArrayList<>();
if (getProperty(CONFIG_LOCATION) != null) {
configs.add(getProperty(CONFIG_LOCATION));
@@ -195,7 +195,7 @@ public class PropertiesLauncher extends Launcher {
}
}
private void loadResource(InputStream resource) throws IOException, Exception {
private void loadResource(InputStream resource) throws Exception {
this.properties.load(resource);
for (Object key : Collections.list(this.properties.propertyNames())) {
String text = this.properties.getProperty((String) key);
@@ -591,7 +591,7 @@ public class PropertiesLauncher extends Launcher {
}
private List<Archive> asList(Iterator<Archive> iterator) {
List<Archive> list = new ArrayList<Archive>();
List<Archive> list = new ArrayList<>();
while (iterator.hasNext()) {
list.add(iterator.next());
}