Skip to content

Commit

Permalink
Remove hardcoded reference to Java 11
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
joewiz committed Apr 29, 2021
1 parent 227445e commit 658352a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/dsl/caveats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def eval_caveats(&block)
#{@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
Expand Down

0 comments on commit 658352a

Please sign in to comment.