Remove hardcoded reference to Java 11

Java 11 is no longer the current stable build, so a dependency on “11” should not be treated as a dependency on the latest Java.
This commit is contained in:
Joe Wicentowski 2021-04-29 19:00:40 -04:00
parent 227445ece9
commit 658352ac1f

View File

@ -114,7 +114,7 @@ module Cask
#{@cask} requires Java. You can install the latest version with:
brew install --cask adoptopenjdk
EOS
elsif java_version.include?("11") || java_version.include?("+")
elsif java_version.include?("+")
<<~EOS
#{@cask} requires Java #{java_version}. You can install the latest version with:
brew install --cask adoptopenjdk