Skip to content

Commit 9185afd

Browse files
committed
Style fixes
1 parent 22ae164 commit 9185afd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/NativeImageClassLoaderSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
import java.util.stream.Stream;
8383
import java.util.zip.ZipFile;
8484

85-
import jdk.internal.module.Resources;
8685
import org.graalvm.collections.EconomicMap;
8786
import org.graalvm.collections.EconomicSet;
8887
import org.graalvm.collections.MapCursor;
@@ -117,6 +116,7 @@
117116
import jdk.graal.compiler.options.OptionKey;
118117
import jdk.graal.compiler.options.OptionValues;
119118
import jdk.internal.module.Modules;
119+
import jdk.internal.module.Resources;
120120

121121
public final class NativeImageClassLoaderSupport {
122122

@@ -350,7 +350,7 @@ public void initializePathDigests(Path digestIgnoreRelativePath) {
350350
pathDigests = new PathDigests(filterIgnoredPathEntries(imagecp, digestIgnorePaths), filterIgnoredPathEntries(imagemp, digestIgnorePaths));
351351
}
352352

353-
private List<Path> filterIgnoredPathEntries(List<Path> pathEntries, List<Path> digestIgnorePaths) {
353+
private static List<Path> filterIgnoredPathEntries(List<Path> pathEntries, List<Path> digestIgnorePaths) {
354354
return pathEntries.stream().filter(pathEntry -> {
355355
for (Path p : digestIgnorePaths) {
356356
if (p.startsWith(pathEntry)) {

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/imagelayer/LoadLayerArchiveSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public LoadLayerArchiveSupport(String layerName, Path layerFile, Path tempDir, A
6767
layerProperties.loadAndVerify(current);
6868
}
6969

70-
private <T> List<T> loadBuildEntries(Path path, Function<String, T> stringParser, String buildEntryTypeDescription) {
70+
private static <T> List<T> loadBuildEntries(Path path, Function<String, T> stringParser, String buildEntryTypeDescription) {
7171
try (Stream<String> lines = Files.lines(path)) {
7272
return lines.map(stringParser).toList();
7373
} catch (IOException e) {

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/imagelayer/WriteLayerArchiveSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected void validateLayerFile() {
7777
}
7878
}
7979

80-
private <T> void writeBuildEntries(Path path, List<T> buildEntries, String buildEntryTypeDescription) {
80+
private static <T> void writeBuildEntries(Path path, List<T> buildEntries, String buildEntryTypeDescription) {
8181
try {
8282
Files.write(path, buildEntries.stream().map(T::toString).toList());
8383
} catch (IOException e) {

0 commit comments

Comments
 (0)