Package edu.umd.cs.findbugs
Class Version
- java.lang.Object
-
- edu.umd.cs.findbugs.Version
-
public class Version extends java.lang.Object
Version number and release date information.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMPUTED_RELEASE
Release version string.static java.lang.String
CORE_PLUGIN_RELEASE_DATE
static java.lang.String
DATE
static java.lang.String
DOWNLOADS_WEBSITE
Downloads website.static java.lang.String
GIT_REVISION
static boolean
IS_DEVELOPMENT
Development version or release candidate?static int
MAJOR
Major version number.static int
MINOR
Minor version number.static int
PATCHLEVEL
Patch level.static int
PREVIEW
Preview release number.static java.lang.String
RELEASE
Release version string.static java.lang.String
RELEASE_BASE
static int
RELEASE_CANDIDATE
Release candidate number.static java.lang.String
SUPPORT_EMAIL
Support email.static java.lang.String
WEBSITE
FindBugs website.
-
Constructor Summary
Constructors Constructor Description Version()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getApplicationName()
static java.lang.String
getApplicationVersion()
static java.util.Date
getReleaseDate()
static java.lang.String
getReleaseWithDateIfDev()
static void
main(java.lang.String[] argv)
static void
printVersion(boolean justPrintConfiguration)
static void
registerApplication(java.lang.String name, java.lang.String version)
-
-
-
Field Detail
-
MAJOR
public static final int MAJOR
Major version number.- See Also:
- Constant Field Values
-
MINOR
public static final int MINOR
Minor version number.- See Also:
- Constant Field Values
-
PATCHLEVEL
public static final int PATCHLEVEL
Patch level.- See Also:
- Constant Field Values
-
IS_DEVELOPMENT
public static final boolean IS_DEVELOPMENT
Development version or release candidate?- See Also:
- Constant Field Values
-
RELEASE_CANDIDATE
public static final int RELEASE_CANDIDATE
Release candidate number. "0" indicates that the version is not a release candidate.- See Also:
- Constant Field Values
-
GIT_REVISION
public static final java.lang.String GIT_REVISION
-
DATE
public static final java.lang.String DATE
-
CORE_PLUGIN_RELEASE_DATE
public static final java.lang.String CORE_PLUGIN_RELEASE_DATE
-
PREVIEW
public static final int PREVIEW
Preview release number. "0" indicates that the version is not a preview release.- See Also:
- Constant Field Values
-
RELEASE_BASE
public static final java.lang.String RELEASE_BASE
- See Also:
- Constant Field Values
-
COMPUTED_RELEASE
public static final java.lang.String COMPUTED_RELEASE
Release version string.
-
RELEASE
public static final java.lang.String RELEASE
Release version string.
-
WEBSITE
public static final java.lang.String WEBSITE
FindBugs website.- See Also:
- Constant Field Values
-
DOWNLOADS_WEBSITE
public static final java.lang.String DOWNLOADS_WEBSITE
Downloads website.- See Also:
- Constant Field Values
-
SUPPORT_EMAIL
public static final java.lang.String SUPPORT_EMAIL
Support email.- See Also:
- Constant Field Values
-
-
Method Detail
-
registerApplication
public static void registerApplication(java.lang.String name, java.lang.String version)
-
getApplicationName
@CheckForNull public static java.lang.String getApplicationName()
-
getApplicationVersion
@CheckForNull public static java.lang.String getApplicationVersion()
-
main
public static void main(java.lang.String[] argv) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
getReleaseWithDateIfDev
public static java.lang.String getReleaseWithDateIfDev()
-
getReleaseDate
@CheckForNull public static java.util.Date getReleaseDate()
-
printVersion
public static void printVersion(boolean justPrintConfiguration) throws java.lang.InterruptedException
- Parameters:
justPrintConfiguration
-- Throws:
java.lang.InterruptedException
-
-