Skip to content

Commit

Permalink
GeoJSON output updates to specification - Checkstyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
josegar74 committed Oct 16, 2024
1 parent 6265e62 commit 082798a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ public Record convert(IndexRecord record) {
.build();

if (StringUtils.isNotEmpty(contact.getRole())) {
org.fao.geonet.index.model.geojson.Role.RoleBuilder roleBuilder = Role.builder().name(contact.getRole());
org.fao.geonet.index.model.geojson.Role.RoleBuilder roleBuilder = Role.builder()
.name(contact.getRole());

geojsonContact.setRoles(List.of(roleBuilder.build()));
}
Expand All @@ -143,7 +144,7 @@ public Record convert(IndexRecord record) {
geojsonContact.setOrganization(contact.getOrganisation().get("default"));
}
} else if (StringUtils.isNotEmpty((contact.getOrganisation().get("default")))) {
geojsonContact.setName(contact.getOrganisation().get("default"));
geojsonContact.setName(contact.getOrganisation().get("default"));
}

recordContacts.add(geojsonContact);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.List;

@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.List;

@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
Expand Down

0 comments on commit 082798a

Please sign in to comment.