From 4121921aca35245aeff86cf5f6950c473107d984 Mon Sep 17 00:00:00 2001 From: yushijinhun Date: Wed, 3 Oct 2018 19:20:47 +0800 Subject: [PATCH] Fix compile errors --- HMCL/build.gradle | 3 ++- .../org/jackhuang/hmcl/util/javafx/ExtendedProperties.java | 2 +- build.gradle | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HMCL/build.gradle b/HMCL/build.gradle index 337b3880e..2023e67e6 100644 --- a/HMCL/build.gradle +++ b/HMCL/build.gradle @@ -1,5 +1,6 @@ plugins { - id 'com.github.johnrengelman.shadow' version '2.0.4' + id 'com.github.johnrengelman.shadow' version '4.0.0' + id 'application' } import java.nio.file.FileSystems diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/javafx/ExtendedProperties.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/util/javafx/ExtendedProperties.java index 6f0e06641..143cc29e1 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/javafx/ExtendedProperties.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/util/javafx/ExtendedProperties.java @@ -130,7 +130,7 @@ public final class ExtendedProperties { return (ObjectProperty) checkbox.getProperties().computeIfAbsent( PROP_PREFIX + ".checkbox.reservedSelected", any -> new MappedProperty<>(checkbox, "ext.reservedSelected", - checkbox.selectedProperty(), it -> !it, it -> !it)); + checkbox.selectedProperty(), it -> !(boolean) it, it -> !(boolean) it)); } // ==== diff --git a/build.gradle b/build.gradle index bc362b04a..b83739842 100644 --- a/build.gradle +++ b/build.gradle @@ -32,7 +32,6 @@ buildscript { subprojects { apply plugin: 'java' apply plugin: 'idea' - apply plugin: 'application' repositories { mavenCentral()