• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zalando / problem / #2092

pending completion
#2092

push

web-flow
Bump jacoco-maven-plugin from 0.8.7 to 0.8.8 (#386)

Bumps [jacoco-maven-plugin](https://github.com/jacoco/jacoco) from 0.8.7 to 0.8.8.
- [Release notes](https://github.com/jacoco/jacoco/releases)
- [Commits](https://github.com/jacoco/jacoco/compare/v0.8.7...v0.8.8)

---
updated-dependencies:
- dependency-name: org.jacoco:jacoco-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

375 of 375 relevant lines covered (100.0%)

1.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/jackson-datatype-problem/src/main/java/org/zalando/problem/jackson/StatusTypeDeserializer.java
1
package org.zalando.problem.jackson;
2

3
import com.fasterxml.jackson.core.JsonParser;
4
import com.fasterxml.jackson.databind.DeserializationContext;
5
import com.fasterxml.jackson.databind.JsonDeserializer;
6
import org.checkerframework.checker.nullness.qual.Nullable;
7
import org.zalando.problem.StatusType;
8

9
import java.io.IOException;
10
import java.util.Map;
11

12
final class StatusTypeDeserializer extends JsonDeserializer<StatusType> {
13

14
    private final Map<Integer, StatusType> index;
15

16
    StatusTypeDeserializer(final Map<Integer, StatusType> index) {
1✔
17
        this.index = index;
1✔
18
    }
1✔
19

20
    @Override
21
    public StatusType deserialize(final JsonParser json, final DeserializationContext context) throws IOException {
22
        final int statusCode = json.getIntValue();
1✔
23
        @Nullable final StatusType status = index.get(statusCode);
1✔
24
        return status == null ? new UnknownStatus(statusCode) : status;
1✔
25
    }
26

27
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc