Package edu.umd.cs.findbugs
Class Version
- java.lang.Object
-
- edu.umd.cs.findbugs.Version
-
public class Version extends java.lang.ObjectVersion number and release date information.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOMPUTED_RELEASERelease version string.static java.lang.StringCORE_PLUGIN_RELEASE_DATEstatic java.lang.StringDATEstatic java.lang.StringDOWNLOADS_WEBSITEDownloads website.static java.lang.StringGIT_REVISIONstatic booleanIS_DEVELOPMENTDevelopment version or release candidate?static intMAJORMajor version number.static intMINORMinor version number.static intPATCHLEVELPatch level.static intPREVIEWPreview release number.static java.lang.StringRELEASERelease version string.static java.lang.StringRELEASE_BASEstatic intRELEASE_CANDIDATERelease candidate number.static java.lang.StringSUPPORT_EMAILSupport email.static java.lang.StringWEBSITEFindBugs website.
-
Constructor Summary
Constructors Constructor Description Version()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetApplicationName()static java.lang.StringgetApplicationVersion()static java.util.DategetReleaseDate()static java.lang.StringgetReleaseWithDateIfDev()static voidmain(java.lang.String[] argv)static voidprintVersion(boolean justPrintConfiguration)static voidregisterApplication(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
-
-