Java Code Examples for com.fasterxml.jackson.core.util.VersionUtil#parseVersion()
The following examples show how to use
com.fasterxml.jackson.core.util.VersionUtil#parseVersion() .
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: SqlgStartupManager.java From sqlg with MIT License | 5 votes |
private void updateTopology(String oldVersion) { Version v = Version.unknownVersion(); if (oldVersion != null) { v = VersionUtil.parseVersion(oldVersion, null, null); } if (v.isUnknownVersion() || v.compareTo(new Version(1, 5, 0, null, null, null)) < 0) { if (this.sqlDialect.supportsDeferrableForeignKey()) { upgradeForeignKeysToDeferrable(); } } if (v.isUnknownVersion() || v.compareTo(new Version(2, 0, 0, null, null, null)) < 0) { addPartitionSupportToSqlgSchema(); } }
Example 2
Source File: KebabCaseEnforcingAnnotationInspector.java From conjure with Apache License 2.0 | 4 votes |
@Override public Version version() { return VersionUtil.parseVersion("0.0.1", "foo", "bar"); }
Example 3
Source File: LazyJsonModule.java From emodb with Apache License 2.0 | 4 votes |
@Override public Version version() { return VersionUtil.parseVersion("1.0", "com.bazaarvoice.emodb.common.json", "lazy-json"); }
Example 4
Source File: RabbitMQServerVersion.java From james-project with Apache License 2.0 | 4 votes |
public static RabbitMQServerVersion of(String input) { return new RabbitMQServerVersion(VersionUtil.parseVersion(input, "rabbitmq", "version")); }