diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index d64cd49..e644113 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/installAndRun.sh b/installAndRun.sh index a9f3e3b..eae3e6f 100755 --- a/installAndRun.sh +++ b/installAndRun.sh @@ -26,7 +26,7 @@ if [[ justRun -eq 1 && shouldRunInDocker -eq 1 ]]; then justRun=0 fi -gradleVersion="8.6" +gradleVersion="8.7" if [[ justRun -eq 0 ]]; then diff --git a/src/main/java/eu/openaire/urls_controller/util/FileUtils.java b/src/main/java/eu/openaire/urls_controller/util/FileUtils.java index ec8de7b..20b3f5a 100644 --- a/src/main/java/eu/openaire/urls_controller/util/FileUtils.java +++ b/src/main/java/eu/openaire/urls_controller/util/FileUtils.java @@ -110,10 +110,7 @@ public class FileUtils { int numFilesFoundFromPreviousAssignmentsBatches = 0; int numFullTextsWithProblematicLocations = 0; - HashMultimap allFileNamesWithPayloads = HashMultimap.create((sizeOfUrlReports / 5), 3); // Holds multiple values for any key, if a fileName(key) has many IDs(values) associated with it. - HashMultimap hashesWithPayloads = getHashesWithPayloads(urlReports, sizeOfUrlReports); // Holds multiple payloads for the same fileHash. - Set fileHashes = hashesWithPayloads.keySet(); int fileHashesSetSize = fileHashes.size(); // Get the size of the keysSet, instead of the whole multimap. if ( fileHashesSetSize == 0 ) { @@ -122,6 +119,7 @@ public class FileUtils { } HashMap hashLocationMap = getHashLocationMap(fileHashes, fileHashesSetSize, assignmentsBatchCounter, "assignments"); + HashMultimap allFileNamesWithPayloads = HashMultimap.create((sizeOfUrlReports / 5), 3); // Holds multiple values for any key, if a fileName(key) has many IDs(values) associated with it. for ( String fileHash : fileHashes ) { diff --git a/src/main/java/eu/openaire/urls_controller/util/GenericUtils.java b/src/main/java/eu/openaire/urls_controller/util/GenericUtils.java index cea2f3d..4bc98fd 100644 --- a/src/main/java/eu/openaire/urls_controller/util/GenericUtils.java +++ b/src/main/java/eu/openaire/urls_controller/util/GenericUtils.java @@ -44,9 +44,10 @@ public class GenericUtils { public static String getSelectiveStackTrace(Throwable thr, String initialMessage, int numOfLines) { StackTraceElement[] stels = thr.getStackTrace(); - StringBuilder sb = new StringBuilder(numOfLines *100); + StringBuilder sb = new StringBuilder(numOfLines *100); // This StringBuilder is thread-safe as a local-variable. if ( initialMessage != null ) - sb.append(initialMessage).append(GenericUtils.endOfLine).append("Stacktrace:").append(GenericUtils.endOfLine); // This StringBuilder is thread-safe as a local-variable. + sb.append(initialMessage).append(GenericUtils.endOfLine); + sb.append("Stacktrace:").append(GenericUtils.endOfLine); for ( int i = 0; (i < stels.length) && (i <= numOfLines); ++i ) { sb.append(stels[i]); if (i < numOfLines) sb.append(GenericUtils.endOfLine);