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

zalando / jackson-datatype-money / #2246

pending completion
#2246

push

web-flow
Bump maven-compiler-plugin from 3.10.1 to 3.11.0 (#437)

Bumps [maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin) from 3.10.1 to 3.11.0.
- [Release notes](https://github.com/apache/maven-compiler-plugin/releases)
- [Commits](https://github.com/apache/maven-compiler-plugin/compare/maven-compiler-plugin-3.10.1...maven-compiler-plugin-3.11.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-compiler-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

142 of 142 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
/src/main/java/org/zalando/jackson/datatype/money/CurrencyUnitDeserializer.java
1
package org.zalando.jackson.datatype.money;
2

3
import com.fasterxml.jackson.core.JsonParser;
4
import com.fasterxml.jackson.databind.DeserializationContext;
5
import com.fasterxml.jackson.databind.JsonDeserializer;
6
import com.fasterxml.jackson.databind.jsontype.TypeDeserializer;
7
import org.apiguardian.api.API;
8

9
import javax.money.CurrencyUnit;
10
import javax.money.Monetary;
11
import java.io.IOException;
12

13
import static org.apiguardian.api.API.Status.MAINTAINED;
14

15
@API(status = MAINTAINED)
16
public final class CurrencyUnitDeserializer extends JsonDeserializer<CurrencyUnit> {
1✔
17

18
    @Override
19
    public Object deserializeWithType(final JsonParser parser, final DeserializationContext context,
20
            final TypeDeserializer deserializer) throws IOException {
21

22
        // effectively assuming no type information at all
23
        return deserialize(parser, context);
1✔
24
    }
25

26
    @Override
27
    public CurrencyUnit deserialize(final JsonParser parser, final DeserializationContext context) throws IOException {
28
        final String currencyCode = parser.getValueAsString();
1✔
29
        return Monetary.getCurrency(currencyCode);
1✔
30
    }
31

32
}
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