Hello
NB already used jvm11 for compiling.
Its a good idea to use the same bytecode/api version.

Reasons:

   1. Detaching from old deprecated API:
      - https://docs.oracle.com/javase/9/docs/api/deprecated-list.html
      - https://docs.oracle.com/javase/10/docs/api/deprecated-list.html
      -
      https://docs.oracle.com/en/java/javase/11/docs/api/deprecated-list.htm
      <https://docs.oracle.com/en/java/javase/11/docs/api/deprecated-list.html>
   2. Ability to use new api, such as:


   - 9: Factory Methods for Immutable List, Set, Map and Map.Entry:
   List.of("one","two","three");
   - 9: Diamond Operator for Anonymous Inner Class
   - 9: Optionals improved: or(), ifPresentOrElse(), stream()
   - 10: List, Map & Set Interfaces are added with a static
   copyOf(Collection) method. It returns an unmodifiable List, Map or Set
   containing the entries provided.
   - 10: Collectors class gets various methods for collecting unmodifiable
   collections (Set, List, Map):
   stream().collect(Collectors.toUnmodifiableList())
   - 11: Java String Methods: isBlank(), lines()
   - 11: Reading/Writing Strings to and from the Files:
   Files.readString(path)

I suggest changing the version.

Reply via email to