Skip to content

Commit

Permalink
autoformat
Browse files Browse the repository at this point in the history
  • Loading branch information
StigNorland committed Jan 8, 2025
1 parent 634b232 commit ba9d809
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@

public class LegacyMutator implements JsonNodeMutator {

@Override
public JsonNode transform(JsonNode source) {
var contributorsPreview = source.path(ENTITY_DESCRIPTION).path(CONTRIBUTORS_PREVIEW);
if (!contributorsPreview.isMissingNode()) {
var entityDescription = (ObjectNode) source.path(ENTITY_DESCRIPTION);
entityDescription.putIfAbsent(CONTRIBUTORS, contributorsPreview);
}
return source;
}

public static List<String> getExcludedFields() {
return List.of(GLOBAL_EXCLUDED_FIELDS);
}

public static List<String> getIncludedFields() {
return List.of();
}

@Override
public JsonNode transform(JsonNode source) {
var contributorsPreview = source.path(ENTITY_DESCRIPTION).path(CONTRIBUTORS_PREVIEW);
if (!contributorsPreview.isMissingNode()) {
var entityDescription = (ObjectNode) source.path(ENTITY_DESCRIPTION);
entityDescription.putIfAbsent(CONTRIBUTORS, contributorsPreview);
}
return source;
}
}

0 comments on commit ba9d809

Please sign in to comment.