Class PMDVersion

java.lang.Object
net.sourceforge.pmd.PMDVersion

public final class PMDVersion extends Object
Stores the current PMD version and provides utility methods around it.
  • Field Details

    • VERSION

      public static final String VERSION
      Constant that contains always the current version of PMD.
  • Method Details

    • getNextMajorRelease

      public static 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
    • getFullVersionName

      public static String getFullVersionName()