From e3265b731f33600384877ae5b4efdd010f0dce0a Mon Sep 17 00:00:00 2001 From: Pjiesco Date: Fri, 6 Oct 2023 15:36:28 +0200 Subject: [PATCH] fix: use java 8 --- .../touchportal/annotations/processor/SettingProcessor.java | 2 +- .../touchportal/annotations/processor/utils/SpecUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AnnotationsProcessor/src/main/java/com/christophecvb/touchportal/annotations/processor/SettingProcessor.java b/AnnotationsProcessor/src/main/java/com/christophecvb/touchportal/annotations/processor/SettingProcessor.java index 1cbb81a..ee3fe66 100644 --- a/AnnotationsProcessor/src/main/java/com/christophecvb/touchportal/annotations/processor/SettingProcessor.java +++ b/AnnotationsProcessor/src/main/java/com/christophecvb/touchportal/annotations/processor/SettingProcessor.java @@ -35,7 +35,7 @@ public static Pair process(TouchPortalPluginAnnota jsonSetting.addProperty(SettingHelper.DEFAULT, setting.defaultValue()); jsonSetting.addProperty(SettingHelper.IS_READ_ONLY, setting.isReadOnly()); - if (!setting.tooltip().body().isBlank()) { + if (!setting.tooltip().body().isEmpty()) { JsonObject tooltip = new JsonObject(); tooltip.addProperty(SettingHelper.Tooltip.TITLE, setting.tooltip().title()); diff --git a/AnnotationsProcessor/src/main/java/com/christophecvb/touchportal/annotations/processor/utils/SpecUtils.java b/AnnotationsProcessor/src/main/java/com/christophecvb/touchportal/annotations/processor/utils/SpecUtils.java index 5f3ef7e..d3ec4c1 100644 --- a/AnnotationsProcessor/src/main/java/com/christophecvb/touchportal/annotations/processor/utils/SpecUtils.java +++ b/AnnotationsProcessor/src/main/java/com/christophecvb/touchportal/annotations/processor/utils/SpecUtils.java @@ -197,7 +197,7 @@ public static TypeSpec.Builder createSettingTypeSpecBuilder(Element settingEleme stateTypeSpecBuilder.addField(SpecUtils.getStaticFinalDoubleFieldSpec("max_value", setting.maxValue())); } - if (!setting.tooltip().body().isBlank()) { + if (!setting.tooltip().body().isEmpty()) { stateTypeSpecBuilder.addType(createSettingTooltipTypeSpecBuilder(setting.tooltip()).build()); }