OpenJDK: latest version 14 -> 15
This commit is contained in:
parent
1e5bde247a
commit
c361b2af8b
1 changed files with 4 additions and 4 deletions
|
|
@ -1,12 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
class AdoptOpenJDK14 extends PatchBase {
|
class AdoptOpenJDK15 extends PatchBase {
|
||||||
function __construct() {
|
function __construct() {
|
||||||
parent::__construct('AdoptOpenJDK', 'OpenJDK', 'https://adoptopenjdk.net/releases.html?variant=openjdk14&jvmVariant=hotspot');
|
parent::__construct('AdoptOpenJDK', 'OpenJDK', 'https://adoptopenjdk.net/releases.html?variant=openjdk15&jvmVariant=hotspot');
|
||||||
$this->patch->setBranch('JRE 14');
|
$this->patch->setBranch('JRE 15');
|
||||||
}
|
}
|
||||||
function check() : bool {
|
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 $this->parse_json('openjdk_version');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue