Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit cf9d01f

Browse files
committed
refactoring: replace function calls with existing variable calls
1 parent 71f9802 commit cf9d01f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/universalJavaApplicationStub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ else
593593

594594
# then additionally check the Oracle JRE plugin whether it's a higher/newer compatible version
595595
if [ -x "${oracle_jre_plugin}" ] ; then
596-
this_java_ver=$(get_comparable_java_version $(get_java_version_from_cmd "${oracle_jre_plugin}"))
596+
this_java_ver=$(get_comparable_java_version ${oracle_jre_version})
597597
# use this compatible version only if the above returned empty or if the version number is higher
598598
if [ -z "${JAVACMD}" ] || [ ${this_java_ver} -ge ${JAVACMD_version} ] ; then
599599
JAVACMD="${oracle_jre_plugin}"
@@ -603,7 +603,7 @@ else
603603

604604
# then additionally check the Apple JRE plugin whether it's a higher/newer compatible version
605605
if [ -x "${apple_jre_plugin}" ] ; then
606-
this_java_ver=$(get_comparable_java_version $(get_java_version_from_cmd "${apple_jre_plugin}"))
606+
this_java_ver=$(get_comparable_java_version ${apple_jre_version})
607607
# use this compatible version only if the above returned empty or if the version number is higher
608608
if [ -z "${JAVACMD}" ] || [ ${this_java_ver} -ge ${JAVACMD_version} ] ; then
609609
JAVACMD="${apple_jre_plugin}"

0 commit comments

Comments
 (0)