Skip to content

Commit

Permalink
fix: review of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
angelo.andreussi committed Oct 9, 2024
1 parent 90e1eb7 commit 681252d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public boolean configure(final FeatureContext context) {

@Provider
public static class CustomMoxyJsonProvider extends org.glassfish.jersey.moxy.json.internal.ConfigurableMoxyJsonProvider {

Check warning on line 75 in rest-api/web/src/main/java/org/eclipse/kapua/app/api/web/MoxyJsonFeatureCustomJsonProvider.java

View check run for this annotation

Codecov / codecov/patch

rest-api/web/src/main/java/org/eclipse/kapua/app/api/web/MoxyJsonFeatureCustomJsonProvider.java#L75

Added line #L75 was not covered by tests
//A custom moxyJsonProvider that sets the unmarshaller validationEventHandler to the default one. This one return false (and hence, jaxb then stops execution and propagate exception to the stack) when error or fatal error is found (when exception has been thrown from one of our custom xmlAdapters for example)
//A custom moxyJsonProvider that sets the unmarshaller validationEventHandler to the default one. This one allows to propagate exceptions to the stack when an error is found (for example, when an exception has been thrown from one of our custom "xmlAdapters")
@Override
protected void preReadFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, Unmarshaller unmarshaller) throws JAXBException {
super.preReadFrom(type, genericType, annotations, mediaType, httpHeaders, unmarshaller);
Expand Down

0 comments on commit 681252d

Please sign in to comment.