diff --git a/README.md b/README.md
index 9ee848d5..0b8ae3b1 100644
--- a/README.md
+++ b/README.md
@@ -29,17 +29,14 @@ The source code for all examples can be found in the directory [src/main/java/la
* Appendix D: Lambdas and JVM bytecode
We will update the repository as we update the book. Stay tuned!
-### Make sure to have JDK8 installed
-The latest binary can be found here: http://www.oracle.com/technetwork/java/javase/overview/java8-2100321.html
+### Make sure to have JDK 11+ installed
+The latest binary can be found here: https://adoptium.net/temurin/releases/?version=11
$ java -version
-java version "1.8.0_05"
-Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
-Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
-
-
-You can download a preview version here: https://jdk8.java.net/
+openjdk version "11.0.x"
+OpenJDK Runtime Environment (build 11.0.x+x)
+OpenJDK 64-Bit Server VM (build 11.0.x+x, mixed mode)
### Compile/Run the examples
Using maven:
diff --git a/pom.xml b/pom.xml
index 10e5035e..cb7eacf5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,18 +10,19 @@
UTF-8
+ 11org.openjdk.jmhjmh-core
- 1.17.4
+ 1.37org.openjdk.jmhjmh-generator-annprocess
- 1.17.4
+ 1.37junit
@@ -35,10 +36,9 @@
org.apache.maven.pluginsmaven-compiler-plugin
- 3.1
+ 3.11.0
- 1.9
- 1.9
+ 11
diff --git a/src/main/java/lambdasinaction/chap11/Util.java b/src/main/java/lambdasinaction/chap11/Util.java
index a72c4d33..0fce0140 100644
--- a/src/main/java/lambdasinaction/chap11/Util.java
+++ b/src/main/java/lambdasinaction/chap11/Util.java
@@ -25,7 +25,7 @@ public static void delay() {
public static double format(double number) {
synchronized (formatter) {
- return new Double(formatter.format(number));
+ return Double.parseDouble(formatter.format(number));
}
}