OpenJDK: latest version 14 -> 15

This commit is contained in:
Steffen Lange 2020-10-07 20:48:11 +02:00
parent 1e5bde247a
commit c361b2af8b

View file

@ -1,12 +1,12 @@
<?php
class AdoptOpenJDK14 extends PatchBase {
class AdoptOpenJDK15 extends PatchBase {
function __construct() {
parent::__construct('AdoptOpenJDK', 'OpenJDK', 'https://adoptopenjdk.net/releases.html?variant=openjdk14&amp;jvmVariant=hotspot');
$this->patch->setBranch('JRE 14');
parent::__construct('AdoptOpenJDK', 'OpenJDK', 'https://adoptopenjdk.net/releases.html?variant=openjdk15&amp;jvmVariant=hotspot');
$this->patch->setBranch('JRE 15');
}
function check() : bool {
if ($this->fetch('https://api.adoptopenjdk.net/v2/info/releases/openjdk14?release=latest&openjdk_impl=hotspot&type=jre&os=windows&arch=x64', true))
if ($this->fetch('https://api.adoptopenjdk.net/v2/info/releases/openjdk15?release=latest&openjdk_impl=hotspot&type=jre&os=windows&arch=x64', true))
return $this->parse_json('openjdk_version');
return false;
}