Skip to content

Commit 25e7dd0

Browse files
committed
Add Version.isUnknownVersion()
1 parent 59a5631 commit 25e7dd0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/fasterxml/jackson/core/Version.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ public Version(int major, int minor, int patchLevel, String snapshotInfo,
6565
public static Version unknownVersion() { return UNKNOWN_VERSION; }
6666

6767
public boolean isUknownVersion() { return (this == UNKNOWN_VERSION); }
68+
69+
// Added in patch 2.5.6 (added for good in 2.7)
70+
public boolean isUnknownVersion() { return (this == UNKNOWN_VERSION); }
71+
6872
public boolean isSnapshot() { return (_snapshotInfo != null && _snapshotInfo.length() > 0); }
6973

7074
public int getMajorVersion() { return _majorVersion; }

0 commit comments

Comments
 (0)