Java Code Examples for com.fasterxml.jackson.core.util.VersionUtil#mavenVersionFor()

The following examples show how to use com.fasterxml.jackson.core.util.VersionUtil#mavenVersionFor() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConstraintViolationProblemModule.java    From problem-spring-web with MIT License 4 votes vote down vote up
@Override
@SuppressWarnings("deprecation")
public Version version() {
    return VersionUtil.mavenVersionFor(ConstraintViolationProblemModule.class.getClassLoader(),
            "org.zalando", "problem-violations");
}
 
Example 2
Source File: MoneyModule.java    From jackson-datatype-money with MIT License 4 votes vote down vote up
@Override
@SuppressWarnings("deprecation")
public Version version() {
    final ClassLoader loader = MoneyModule.class.getClassLoader();
    return VersionUtil.mavenVersionFor(loader, "org.zalando", "jackson-datatype-money");
}
 
Example 3
Source File: ProblemModule.java    From problem with MIT License 4 votes vote down vote up
@SuppressWarnings("deprecation")
@Override
public Version version() {
    return VersionUtil.mavenVersionFor(ProblemModule.class.getClassLoader(),
            "org.zalando", "jackson-datatype-problem");
}