@@ -260,9 +260,9 @@ private void onOperatorChanged()
260260
261261 // Change to a text field if the field is of type enum with condition 'contains'
262262 if (isSelSearchQueryVisible
263- && this . selOperations . getValue ()
264- . getDescription ()
265- . equals ( ContainsComparator . CONTAINS_COMPARATOR_DESCRIPTION ))
263+ && ContainsComparator . CONTAINS_COMPARATOR_DESCRIPTION . equals (
264+ this . selOperations . getValue ()
265+ . getDescription () ))
266266 {
267267 this .selSearchQuery .setVisible (false );
268268 this .txtSearchQuery .setVisible (true );
@@ -405,7 +405,7 @@ private void onAcceptFilter()
405405
406406 if (!this .identifier .isBlank ())
407407 {
408- if (this .editingBadgeId != null && !this . editingBadgeId . equals (NO_BADGE_ID_STRING ))
408+ if (this .editingBadgeId != null && !NO_BADGE_ID_STRING . equals (this . editingBadgeId ))
409409 {
410410 badge .setBadgeId (this .editingBadgeId );
411411 this .editingBadgeId = null ;
@@ -447,7 +447,7 @@ private void onAcceptFilter()
447447 badge .setBtnEditEnabled (true );
448448 badge .addBtnEditClickListener (event ->
449449 {
450- if (( this .hlFilter .getChildren ().findAny ().isEmpty () ))
450+ if (this .hlFilter .getChildren ().findAny ().isEmpty ())
451451 {
452452 // Add all components to the hlFilter layout
453453 this .onShowFilterInput ();
@@ -514,7 +514,7 @@ private void deactivateDeleteButtonFromChipComponents(
514514
515515 if (!this .identifier .isBlank ()
516516 && badge .getBadgeId () != null
517- && !badge .getBadgeId (). equals ( NO_BADGE_ID_STRING ))
517+ && !NO_BADGE_ID_STRING . equals ( badge .getBadgeId ()))
518518 {
519519 badge .setBadgeId (DELETED_INITIAL_CONDITION_STRING );
520520 this .addQueryParameter (badge );
@@ -550,7 +550,7 @@ private void formatLocalDateChipBadgeText(final ChipBadge<FilterCondition<T, ?>>
550550 final FilterCondition <T , ?> filterField = chipBadge .getItem ();
551551
552552 if (this .dateRangePickerQuery .isVisible ()
553- && filterField .getSelectedCondition ().getDescription (). equals ( IS_BETWEEN_COMPARATOR_DESCRIPTION ))
553+ && IS_BETWEEN_COMPARATOR_DESCRIPTION . equals ( filterField .getSelectedCondition ().getDescription ()))
554554 {
555555 chipBadge .setItemLabelGenerator ((ItemLabelGenerator <FilterCondition <T , ?>>)tFilterCondition ->
556556 {
@@ -896,7 +896,7 @@ private void createConditionsFromQueryParameters()
896896 && i < this .queryBadgeDeletableList .size ()
897897 && i < this .queryBadgeEditableList .size ())
898898 {
899- if (!this .queryBadgeIdList .get (i ). equals ( DELETED_INITIAL_CONDITION_STRING ))
899+ if (!DELETED_INITIAL_CONDITION_STRING . equals ( this .queryBadgeIdList .get (i )))
900900 {
901901 final String badgeId = this .queryBadgeIdList .get (i );
902902 CustomizationDegree customizationDegree = CustomizationDegree .EVERYTHING ;
@@ -933,7 +933,7 @@ private void createConditionsFromQueryParameters()
933933 {
934934 // Check for same condition
935935 final FilterCondition <T , ?> item = chipBadge .getItem ();
936- if (!chipBadge .getBadgeId (). equals ( NO_BADGE_ID_STRING )
936+ if (!NO_BADGE_ID_STRING . equals ( chipBadge .getBadgeId ())
937937 && this .queryInputFieldList .get (i ).equals (item .getInputValue ())
938938 && this .queryConditionFieldList .get (i )
939939 .equals (item .getSelectedCondition ().getDescription ())
@@ -1216,7 +1216,13 @@ public void beforeEnter(final BeforeEnterEvent beforeEnterEvent)
12161216 .filter (i -> this .identifier .equals (idList .get (i )))
12171217 .toArray ();
12181218
1219- String componentId , field , condition , input , badgeId , editable , deletable ;
1219+ String componentId ;
1220+ String field ;
1221+ String condition ;
1222+ String input ;
1223+ String badgeId ;
1224+ String editable ;
1225+ String deletable ;
12201226
12211227 for (final int i : matchingIndices )
12221228 {
0 commit comments