Make fields final
Closes gh-33537
This commit is contained in:
@@ -71,7 +71,7 @@ public class ImagePackager extends Packager {
|
||||
*/
|
||||
private static class DelegatingJarWriter extends AbstractJarWriter {
|
||||
|
||||
private BiConsumer<ZipEntry, EntryWriter> exporter;
|
||||
private final BiConsumer<ZipEntry, EntryWriter> exporter;
|
||||
|
||||
DelegatingJarWriter(BiConsumer<ZipEntry, EntryWriter> exporter) {
|
||||
this.exporter = exporter;
|
||||
|
||||
@@ -31,7 +31,7 @@ import org.springframework.util.StringUtils;
|
||||
*/
|
||||
public class JavaExecutable {
|
||||
|
||||
private File file;
|
||||
private final File file;
|
||||
|
||||
public JavaExecutable() {
|
||||
String javaHome = System.getProperty("java.home");
|
||||
|
||||
@@ -37,7 +37,7 @@ public class RunProcess {
|
||||
|
||||
private static final long JUST_ENDED_LIMIT = 500;
|
||||
|
||||
private File workingDirectory;
|
||||
private final File workingDirectory;
|
||||
|
||||
private final String[] command;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user