Skip to content

Commit

Permalink
field def added method isUnused
Browse files Browse the repository at this point in the history
  • Loading branch information
sonalgoyal committed Mar 9, 2024
1 parent 3e37b6d commit ee6027e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Expand Up @@ -10,6 +10,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
Expand Down Expand Up @@ -121,9 +122,9 @@ public void setFieldName(String fieldName) {
this.fieldName = fieldName;
}

@JsonIgnore
public boolean isDontUse() {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'isDontUse'");
return (matchType != null && matchType.contains(MatchType.DONT_USE));
}

@Override
Expand Down
Expand Up @@ -25,7 +25,7 @@ protected List<String> getColList(List<? extends FieldDefinition> fieldDefs, boo
List<FieldDefinition> namedList = new ArrayList<FieldDefinition>();

for (FieldDefinition fieldDef : fieldDefs) {
if (showConcise && fieldDef.matchType.contains(MatchType.DONT_USE)) {
if (showConcise && fieldDef.isDontUse()) {
continue;
}
namedList.add(fieldDef);
Expand Down

0 comments on commit ee6027e

Please sign in to comment.