Skip to content

Commit

Permalink
cleanup: Minor clean up in Version.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev committed Jul 26, 2019
1 parent 0290356 commit ef610c4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
26 changes: 12 additions & 14 deletions src/main/java/org/jitsi/utils/version/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,15 @@ public interface Version
* implementers of the <tt>VersionService</tt> and <tt>Version</tt>
* interfaces.
*/
public static final String PNAME_APPLICATION_NAME
= "sip-communicator.application.name";
String PNAME_APPLICATION_NAME = "sip-communicator.application.name";

/**
* The name of the <tt>System</tt> property the value of which is equal to
* the value of {@link #toString()}. Expected to be set by
* implementers of the <tt>VersionService</tt> and <tt>Version</tt>
* interfaces.
*/
public static final String PNAME_APPLICATION_VERSION
= "sip-communicator.version";
String PNAME_APPLICATION_VERSION = "sip-communicator.version";

/**
* Returns the version major of the current Jitsi version. In an
Expand All @@ -51,7 +49,7 @@ public interface Version
*
* @return the version major integer.
*/
public int getVersionMajor();
int getVersionMajor();

/**
* Returns the version minor of the current Jitsi version. In an
Expand All @@ -61,7 +59,7 @@ public interface Version
*
* @return the version minor integer.
*/
public int getVersionMinor();
int getVersionMinor();

/**
* Indicates if this Jitsi version corresponds to a nightly build
Expand All @@ -70,7 +68,7 @@ public interface Version
* @return true if this is a build of a nightly repository snapshot and
* false if this is an official Jitsi release.
*/
public boolean isNightly();
boolean isNightly();

/**
* If this is a nightly build, returns the build identifies (e.g.
Expand All @@ -79,14 +77,14 @@ public interface Version
*
* @return a String containing a nightly build identifier or null if
*/
public String getNightlyBuildID();
String getNightlyBuildID();

/**
* Indicates whether this version represents a prerelease (i.e. a
* non-complete release like an alpha, beta or release candidate version).
* @return true if this version represents a prerelease and false otherwise.
*/
public boolean isPreRelease();
boolean isPreRelease();

/**
* Returns the version prerelease ID of the current Jitsi version
Expand All @@ -97,7 +95,7 @@ public interface Version
*
* @return a String containing the version prerelease ID.
*/
public String getPreReleaseID();
String getPreReleaseID();

/**
* Compares another <tt>Version</tt> object to this one and returns a
Expand All @@ -112,7 +110,7 @@ public interface Version
* represents a version that is earlier, same, or more recent than the one
* referenced by the <tt>version</tt> parameter.
*/
public int compareTo(Version version);
int compareTo(Version version);

/**
* Compares the <tt>version</tt> parameter to this version and returns true
Expand All @@ -124,7 +122,7 @@ public interface Version
* @return true if and only the version param references the same
* Jitsi version as this Version instance and false otherwise.
*/
public boolean equals(Object version);
boolean equals(Object version);

/**
* Returns the name of the application that we're currently running. Default
Expand All @@ -133,7 +131,7 @@ public interface Version
* @return the name of the application that we're currently running. Default
* MUST be Jitsi.
*/
public String getApplicationName();
String getApplicationName();

/**
* Returns a String representation of this Version instance. If you'd just
Expand All @@ -144,5 +142,5 @@ public interface Version
* @return a major.minor[.build] String containing the complete
* Jitsi version.
*/
public String toString();
String toString();
}
4 changes: 2 additions & 2 deletions src/main/java/org/jitsi/utils/version/VersionService.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public interface VersionService
* @return a <tt>Version</tt> object containing version details of the SIP
* Communicator version that we're currently running.
*/
public Version getCurrentVersion();
Version getCurrentVersion();

/**
* Returns a Version instance corresponding to the <tt>version</tt> string.
Expand All @@ -42,5 +42,5 @@ public interface VersionService
* @return the <tt>Version</tt> object corresponding to the <tt>version</tt>
* string.
*/
public Version parseVersionString(String version);
Version parseVersionString(String version);
}

0 comments on commit ef610c4

Please sign in to comment.