lib/liberty_buildpack/jre/openjdk.rb
# Detects which version of Java this application should use.  *NOTE:* This method will only return a value
# if the jvm_type is set to openjdk.
#
# @return [String, nil] returns +ibmjdk-<version>+.
Detects which version of Java this application should use.  *NOTE:* This method will only return a value
if the jvm_type is set to openjdk.
Detects which version of Java this application should use . * NOTE : * This method will only return a value if the jvm_type is set to openjdk .
def detect
      if !@jvm_type.nil? && 'openjdk'.casecmp(@jvm_type) == 0
        @version = OpenJdk.find_openjdk(@configuration)[0]
        id(@version)
      end
    end
def detect if ! @jvm_type . nil? && 'openjdk' . casecmp ( @jvm_type ) == 0 @version = OpenJdk . find_openjdk ( @configuration ) [ 0 ] id ( @version ) end end
Detects which version of Java this application should use.
Detects which version of Java this application should use .
None
String, nil