Skip to content

Commit 3c3a3c4

Browse files
committed
Style fixes
1 parent 755a2d7 commit 3c3a3c4

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/ReplaySupport.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -54,7 +54,7 @@
5454
import com.oracle.svm.core.util.json.JsonWriter;
5555
import com.oracle.svm.util.ClassUtil;
5656

57-
class ReplaySupport {
57+
final class ReplaySupport {
5858

5959
static final String REPLAY_OPTION = "--replay";
6060

@@ -276,12 +276,12 @@ Path substituteModulePath(Path origPath) {
276276
static final class ReplayPathSubstitutionError extends Error {
277277
public final Path origPath;
278278

279-
public ReplayPathSubstitutionError(String message, Path origPath) {
279+
ReplayPathSubstitutionError(String message, Path origPath) {
280280
super(message);
281281
this.origPath = origPath;
282282
}
283283

284-
public ReplayPathSubstitutionError(String message, Path origPath, Throwable cause) {
284+
ReplayPathSubstitutionError(String message, Path origPath, Throwable cause) {
285285
super(message, cause);
286286
this.origPath = origPath;
287287
}
@@ -453,7 +453,7 @@ private static void printBuildArg(String entry, JsonWriter w) throws IOException
453453
w.quote(entry);
454454
}
455455

456-
private static class PathMapParser extends ConfigurationParser {
456+
private static final class PathMapParser extends ConfigurationParser {
457457

458458
private final Map<Path, Path> pathMap;
459459

@@ -479,7 +479,7 @@ public void parseAndRegister(Object json, URI origin) throws IOException {
479479
}
480480
}
481481

482-
private static class BuildArgsParser extends ConfigurationParser {
482+
private static final class BuildArgsParser extends ConfigurationParser {
483483

484484
private final List<String> args;
485485

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
import com.oracle.svm.core.util.ClasspathUtils;
6060
import com.oracle.svm.core.util.UserError;
6161
import com.oracle.svm.core.util.VMError;
62-
6362
import com.oracle.svm.util.ClassUtil;
63+
6464
import jdk.internal.module.Modules;
6565

6666
public class ClassLoaderSupportImpl extends ClassLoaderSupport {
@@ -111,7 +111,7 @@ public void collectResources(ResourceCollector resourceCollector) {
111111
for (Path classpathFile : classLoaderSupport.classpath()) {
112112
try {
113113
if (Files.isDirectory(classpathFile)) {
114-
scanDirectory(classpathFile, resourceCollector, classLoaderSupport);
114+
scanDirectory(classpathFile, resourceCollector);
115115
} else if (ClasspathUtils.isJar(classpathFile)) {
116116
scanJar(classpathFile, resourceCollector);
117117
}
@@ -143,7 +143,7 @@ private static void collectResourceFromModule(ResourceCollector resourceCollecto
143143
}
144144
}
145145

146-
private static void scanDirectory(Path root, ResourceCollector collector, NativeImageClassLoaderSupport support) throws IOException {
146+
private static void scanDirectory(Path root, ResourceCollector collector) throws IOException {
147147
Map<String, List<String>> matchedDirectoryResources = new HashMap<>();
148148
Set<String> allEntries = new HashSet<>();
149149

substratevm/src/com.oracle.svm.util/src/com/oracle/svm/util/ClassUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public final class ClassUtil {
3535
public static final Path CLASS_MODULE_PATH_EXCLUDE_DIRECTORIES_ROOT = Paths.get("/");
3636
public static final Set<Path> CLASS_MODULE_PATH_EXCLUDE_DIRECTORIES = getClassModulePathExcludeDirectories();
3737

38-
static private Set<Path> getClassModulePathExcludeDirectories() {
38+
private static Set<Path> getClassModulePathExcludeDirectories() {
3939
return Stream.of("dev", "sys", "proc", "etc", "var", "tmp", "boot", "lost+found")
4040
.map(CLASS_MODULE_PATH_EXCLUDE_DIRECTORIES_ROOT::resolve).collect(Collectors.toUnmodifiableSet());
4141
}

0 commit comments

Comments
 (0)