Skip to content

Commit 256cb06

Browse files
committed
Remove ambigious method definitions
1 parent 4e14cfd commit 256cb06

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

build-tools/src/main/java/org/elasticsearch/gradle/test/SystemPropertyCommandLineArgumentProvider.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
public class SystemPropertyCommandLineArgumentProvider implements CommandLineArgumentProvider {
2121
private final Map<String, Object> systemProperties = new LinkedHashMap<>();
2222

23-
public void systemProperty(String key, Provider<Object> value) {
24-
systemProperties.put(key, (Supplier<String>) () -> String.valueOf(value.get()));
25-
}
26-
2723
public void systemProperty(String key, Supplier<String> value) {
2824
systemProperties.put(key, value);
2925
}

modules/reindex/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ if (OS.current() == OS.WINDOWS) {
168168

169169
tasks.named("javaRestTest").configure {
170170
dependsOn fixture
171-
systemProperty "tests.fromOld", "true"
172-
/* Use a closure on the string to delay evaluation until right before we
173-
* run the integration tests so that we can be sure that the file is
174-
* ready. */
175-
nonInputProperties.systemProperty "es${version}.port", fixture.map(f->f.addressAndPort)
171+
systemProperty "tests.fromOld", "true"
172+
/* Use a closure on the string to delay evaluation until right before we
173+
* run the integration tests so that we can be sure that the file is
174+
* ready. */
175+
nonInputProperties.systemProperty "es${version}.port", fixture.map(f->f.addressAndPort)
176176
}
177177
}
178178
}

0 commit comments

Comments
 (0)