Update latest JRE from 15 to 16

This commit is contained in:
Steffen Lange 2021-04-12 10:20:34 +02:00
parent 4ec6069cbd
commit b2ae61dffd

View file

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