lib/liberty_buildpack/jre/openj9.rb
def detect
      if !@jvm_type.nil? && 'openj9'.casecmp(@jvm_type) == 0
        release = find_openjdk(@configuration)
        id(release['release_name'])
      end
    end
# 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 +openj9-<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? && 'openj9'.casecmp(@jvm_type) == 0
        release = find_openjdk(@configuration)
        id(release['release_name'])
      end
    end
def detect if ! @jvm_type . nil? && 'openj9' . casecmp ( @jvm_type ) == 0 release = find_openjdk ( @configuration ) id ( release [ 'release_name' ] ) end end
Detects which version of Java this application should use.
Detects which version of Java this application should use .
None
String, nil