Revert dependency on javafx.util.Pair introduced in 2aab2dee
Created by: davido
javafx.util.Pair
is not packaged on OpenJDK
for all distros, most notably not on OpenSUSE: [1]. So, after the 2aab2dee I'm not able to build Buck master any more:
$ java -version
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (IcedTea 3.3.0) (suse-21.4-x86_64)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
$ ant
compile:
[javac] Compiling 1914 source files to /home/davido/projects/davido_buck/build/classes
[javac] [compiled 379918 lines in 12167 ms: 31225.2 lines/s]
[javac] [3532 .class files generated]
[javac] ----------
[javac] 1. ERROR in /home/davido/projects/davido_buck/src/com/facebook/buck/android/DefaultAndroidDirectoryResolver.java (at line 41)
[javac] import javafx.util.Pair;
[javac] ^^^^^^
[javac] The import javafx cannot be resolved
[javac] ----------
[javac] 2. ERROR in /home/davido/projects/davido_buck/src/com/facebook/buck/android/DefaultAndroidDirectoryResolver.java (at line 329)
[javac] List<Pair<Path, Optional<String>>> availableNdks = repositoryContents.stream()
[javac] ^^^^
[javac] Pair cannot be resolved to a type
[javac] ----------
[javac] 3. ERROR in /home/davido/projects/davido_buck/src/com/facebook/buck/android/DefaultAndroidDirectoryResolver.java (at line 332)
[javac] .map(p -> new Pair<>(p, findNdkVersion(p)))
[javac] ^^^^
[javac] Pair cannot be resolved to a type
[...]
Please revert.