Skip to content

Commit

Permalink
other(element-template-generator): add ignore to varible names
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-vandaele committed Feb 26, 2025
1 parent 478e8f5 commit 4bf7e7b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ public void process(
builder.optional(FieldProcessor.isOptional(field));

switch (builder) {
case DropdownProperty.DropdownPropertyBuilder $ -> {}
case NumberProperty.NumberPropertyBuilder $ -> {
case DropdownProperty.DropdownPropertyBuilder ignored -> {}

Check notice

Code scanning / CodeQL

Unread local variable Note

Variable 'DropdownPropertyBuilder ignored' is never read.
case NumberProperty.NumberPropertyBuilder ignored -> {

Check notice

Code scanning / CodeQL

Unread local variable Note

Variable 'NumberPropertyBuilder ignored' is never read.
if (annotation.feel() == Property.FeelMode.disabled) {
throw new IllegalStateException("`disabled` is not a valid feel property for Number");
} else if (annotation.feel() == Property.FeelMode.system_default) {
Expand All @@ -135,7 +135,7 @@ public void process(
builder.feel(annotation.feel());
}
}
case BooleanProperty.BooleanPropertyBuilder $ -> builder.feel(Property.FeelMode.staticFeel);
case BooleanProperty.BooleanPropertyBuilder ignored -> builder.feel(Property.FeelMode.staticFeel);

Check notice

Code scanning / CodeQL

Unread local variable Note

Variable 'BooleanPropertyBuilder ignored' is never read.
default -> {
if (annotation.feel() == Property.FeelMode.system_default) {
builder.feel(determineDefaultFeelModeBasedOnContext(context));
Expand Down

0 comments on commit 4bf7e7b

Please sign in to comment.