Package net.sourceforge.pmd
Class PMDVersion
- java.lang.Object
-
- net.sourceforge.pmd.PMDVersion
-
public final class PMDVersion extends java.lang.ObjectStores the current PMD version and provides utility methods around it.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVERSIONConstant that contains always the current version of PMD.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetNextMajorRelease()Retrieves the next major release to be expected.static booleanisSnapshot()Checks if the current version is a snapshot.static booleanisUnknown()Checks if the current version is unknown.
-
-
-
Method Detail
-
getNextMajorRelease
public static java.lang.String getNextMajorRelease()
Retrieves the next major release to be expected. Useful when logging deprecation messages to indicate when support will be removed.- Returns:
- The next major release to be expected.
-
isUnknown
public static boolean isUnknown()
Checks if the current version is unknown.- Returns:
- True if an unknown version, false otherwise
-
isSnapshot
public static boolean isSnapshot()
Checks if the current version is a snapshot.- Returns:
- True if a snapshot release, false otherwise
-
-