@@ -138,7 +138,7 @@ public String getName() {
138138
139139 public String getDisplayName () {
140140 if ((Type .ICON_COLUMNS .contains (typeProperty .getValue ()) && qualifierProperty .getValue ().isBlank ())
141- || typeProperty .getValue () == Type .INDEX ) {
141+ || ( typeProperty .getValue () == Type .INDEX ) ) {
142142 return typeProperty .getValue ().getDisplayName ();
143143 } else {
144144 return FieldsUtil .getNameWithType (FieldFactory .parseField (qualifierProperty .getValue ()));
@@ -165,23 +165,25 @@ public ObjectProperty<TableColumn.SortType> sortTypeProperty() {
165165 return sortTypeProperty ;
166166 }
167167
168+ @ Override
168169 public boolean equals (Object o ) {
169170 if (this == o ) {
170171 return true ;
171172 }
172173
173- if (o == null || getClass () != o .getClass ()) {
174+ if (( o == null ) || ( getClass () != o .getClass () )) {
174175 return false ;
175176 }
176177
177178 MainTableColumnModel that = (MainTableColumnModel ) o ;
178179
179- if (typeProperty != that .typeProperty ) {
180+ if (typeProperty . getValue () != that .typeProperty . getValue () ) {
180181 return false ;
181182 }
182- return Objects .equals (qualifierProperty , that .qualifierProperty );
183+ return Objects .equals (qualifierProperty . getValue () , that .qualifierProperty . getValue () );
183184 }
184185
186+ @ Override
185187 public int hashCode () {
186188 return Objects .hash (typeProperty .getValue (), qualifierProperty .getValue ());
187189 }
@@ -199,9 +201,9 @@ public static MainTableColumnModel parse(String rawColumnName) {
199201 Type type = Type .fromString (splittedName [0 ]);
200202 String qualifier = "" ;
201203
202- if (type == Type .NORMALFIELD
203- || type == Type .SPECIALFIELD
204- || type == Type .EXTRAFILE ) {
204+ if (( type == Type .NORMALFIELD )
205+ || ( type == Type .SPECIALFIELD )
206+ || ( type == Type .EXTRAFILE ) ) {
205207 if (splittedName .length == 1 ) {
206208 qualifier = splittedName [0 ]; // By default the rawColumnName is parsed as NORMALFIELD
207209 } else {
0 commit comments