Inline some variables

There is no point in `Type a = …; return a;`
This commit is contained in:
jvoisin
2019-06-08 15:47:15 +02:00
parent e0ac46cf44
commit def5f854fb
5 changed files with 6 additions and 12 deletions
@@ -79,11 +79,9 @@ public class TestCaseUtils {
"from information_schema.system_tables " +
"where table_name not like 'SYSTEM%'"
, String.class);
Map<String, Integer> nbRecords =
tableNames.stream()
.collect(Collectors.toMap(table -> table, table -> recordsInTable(table,daoHelper)));
return nbRecords;
return tableNames.stream()
.collect(Collectors.toMap(table -> table, table -> recordsInTable(table,daoHelper)));
}
/**
@@ -12,8 +12,7 @@ public class MusicFolderTestData {
private static String baseResources = "/MEDIAS/";
public static String resolveBaseMediaPath() {
String baseDir = MusicFolderTestData.class.getResource(baseResources).toString().replace("file:","");
return baseDir;
return MusicFolderTestData.class.getResource(baseResources).toString().replace("file:","");
}
public static String resolveMusicFolderPath() {