Skip to content

Commit

Permalink
Fix trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeysemenyukoracle committed Oct 16, 2024
1 parent 217e0ef commit 1634c50
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ final public T clearArguments() {
args.clear();
return (T) this;
}

final public T addArgument(String v) {
args.add(v);
return (T) this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public Path outputDir() {
var path = getArgumentValue("--dest", () -> Path.of("."), Path::of);
return Optional.ofNullable(executeInDirectory).map(base -> {
return base.resolve(path);
}).orElse(path);
}).orElse(path);
}

public Path inputDir() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ public PackageTest setExpectedExitCode(int v) {
expectedJPackageExitCode = v;
return this;
}

public PackageTest ignoreBundleOutputDir() {
return ignoreBundleOutputDir(true);
}

public PackageTest ignoreBundleOutputDir(boolean v) {
ignoreBundleOutputDir = v;
return this;
Expand Down
4 changes: 2 additions & 2 deletions test/jdk/tools/jpackage/share/InOutPathTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ private static Envelope wrap(ThrowingConsumer<JPackageCommand> v, String label)
private static void runTest(boolean appImage,
ThrowingConsumer<JPackageCommand> configure) throws Throwable {
ThrowingConsumer<JPackageCommand> configureWrapper = cmd -> {
// Make sure the input directory is empty in every test run.
// This is needed because jpackage output directories in this test
// Make sure the input directory is empty in every test run.
// This is needed because jpackage output directories in this test
// are subdirectories of the input directory.
cmd.setInputToEmptyDirectory();
configure.accept(cmd);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public void testNoOutputDir(boolean appImage) throws Throwable {
initializer.accept(cmdNoOutputDir);
cmdNoOutputDir.executeAndAssertHelloAppImageCreated();
} else {
// Save time by packing non-functional runtime.
// Save time by packing non-functional runtime.
// Build the runtime in app image only. This is sufficient coverage.
cmd.setFakeRuntime();
new PackageTest()
Expand Down

0 comments on commit 1634c50

Please sign in to comment.