@@ -260,9 +260,9 @@ private void onOperatorChanged()
260
260
261
261
// Change to a text field if the field is of type enum with condition 'contains'
262
262
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 () ))
266
266
{
267
267
this .selSearchQuery .setVisible (false );
268
268
this .txtSearchQuery .setVisible (true );
@@ -405,7 +405,7 @@ private void onAcceptFilter()
405
405
406
406
if (!this .identifier .isBlank ())
407
407
{
408
- if (this .editingBadgeId != null && !this . editingBadgeId . equals (NO_BADGE_ID_STRING ))
408
+ if (this .editingBadgeId != null && !NO_BADGE_ID_STRING . equals (this . editingBadgeId ))
409
409
{
410
410
badge .setBadgeId (this .editingBadgeId );
411
411
this .editingBadgeId = null ;
@@ -447,7 +447,7 @@ private void onAcceptFilter()
447
447
badge .setBtnEditEnabled (true );
448
448
badge .addBtnEditClickListener (event ->
449
449
{
450
- if (( this .hlFilter .getChildren ().findAny ().isEmpty () ))
450
+ if (this .hlFilter .getChildren ().findAny ().isEmpty ())
451
451
{
452
452
// Add all components to the hlFilter layout
453
453
this .onShowFilterInput ();
@@ -514,7 +514,7 @@ private void deactivateDeleteButtonFromChipComponents(
514
514
515
515
if (!this .identifier .isBlank ()
516
516
&& badge .getBadgeId () != null
517
- && !badge .getBadgeId (). equals ( NO_BADGE_ID_STRING ))
517
+ && !NO_BADGE_ID_STRING . equals ( badge .getBadgeId ()))
518
518
{
519
519
badge .setBadgeId (DELETED_INITIAL_CONDITION_STRING );
520
520
this .addQueryParameter (badge );
@@ -550,7 +550,7 @@ private void formatLocalDateChipBadgeText(final ChipBadge<FilterCondition<T, ?>>
550
550
final FilterCondition <T , ?> filterField = chipBadge .getItem ();
551
551
552
552
if (this .dateRangePickerQuery .isVisible ()
553
- && filterField .getSelectedCondition ().getDescription (). equals ( IS_BETWEEN_COMPARATOR_DESCRIPTION ))
553
+ && IS_BETWEEN_COMPARATOR_DESCRIPTION . equals ( filterField .getSelectedCondition ().getDescription ()))
554
554
{
555
555
chipBadge .setItemLabelGenerator ((ItemLabelGenerator <FilterCondition <T , ?>>)tFilterCondition ->
556
556
{
@@ -896,7 +896,7 @@ private void createConditionsFromQueryParameters()
896
896
&& i < this .queryBadgeDeletableList .size ()
897
897
&& i < this .queryBadgeEditableList .size ())
898
898
{
899
- if (!this .queryBadgeIdList .get (i ). equals ( DELETED_INITIAL_CONDITION_STRING ))
899
+ if (!DELETED_INITIAL_CONDITION_STRING . equals ( this .queryBadgeIdList .get (i )))
900
900
{
901
901
final String badgeId = this .queryBadgeIdList .get (i );
902
902
CustomizationDegree customizationDegree = CustomizationDegree .EVERYTHING ;
@@ -933,7 +933,7 @@ private void createConditionsFromQueryParameters()
933
933
{
934
934
// Check for same condition
935
935
final FilterCondition <T , ?> item = chipBadge .getItem ();
936
- if (!chipBadge .getBadgeId (). equals ( NO_BADGE_ID_STRING )
936
+ if (!NO_BADGE_ID_STRING . equals ( chipBadge .getBadgeId ())
937
937
&& this .queryInputFieldList .get (i ).equals (item .getInputValue ())
938
938
&& this .queryConditionFieldList .get (i )
939
939
.equals (item .getSelectedCondition ().getDescription ())
@@ -1216,7 +1216,13 @@ public void beforeEnter(final BeforeEnterEvent beforeEnterEvent)
1216
1216
.filter (i -> this .identifier .equals (idList .get (i )))
1217
1217
.toArray ();
1218
1218
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 ;
1220
1226
1221
1227
for (final int i : matchingIndices )
1222
1228
{
0 commit comments