Skip to content

Commit

Permalink
fix(lint): apply spotless (#11050)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored Jul 31, 2024
1 parent a3c7ede commit 27e1130
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import javax.annotation.Nullable;
import lombok.extern.slf4j.Slf4j;


@Slf4j
public class InputFieldsMapper {

Expand Down Expand Up @@ -40,9 +39,14 @@ public com.linkedin.datahub.graphql.generated.InputFields apply(
if (field.hasSchemaFieldUrn()) {
fieldResult.setSchemaFieldUrn(field.getSchemaFieldUrn().toString());
try {
parentUrn = Urn.createFromString(field.getSchemaFieldUrn().getEntityKey().get(0));
parentUrn =
Urn.createFromString(field.getSchemaFieldUrn().getEntityKey().get(0));
} catch (URISyntaxException e) {
log.error("Field urn resolution: failed to extract parentUrn successfully from {}. Falling back to {}", field.getSchemaFieldUrn(), entityUrn, e);
log.error(
"Field urn resolution: failed to extract parentUrn successfully from {}. Falling back to {}",
field.getSchemaFieldUrn(),
entityUrn,
e);
}
}
if (field.hasSchemaField()) {
Expand Down

0 comments on commit 27e1130

Please sign in to comment.