Skip to content

Commit

Permalink
fix: use java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Pjiesco committed Oct 6, 2023
1 parent 06065cc commit e3265b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static Pair<JsonObject, TypeSpec.Builder> 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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit e3265b7

Please sign in to comment.