[jboss-cvs] JBossCache/src/org/jboss/cache ...
Manik Surtani
msurtani at jboss.com
Tue Oct 31 19:55:30 EST 2006
User: msurtani
Date: 06/10/31 19:55:30
Modified: src/org/jboss/cache Tag: Branch_JBossCache_1_4_0
Version.java
Log:
Updated versioning info to reflect 1.4.1
Revision Changes Path
No revision
No revision
1.18.2.4 +146 -136 JBossCache/src/org/jboss/cache/Version.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Version.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/Version.java,v
retrieving revision 1.18.2.3
retrieving revision 1.18.2.4
diff -u -b -r1.18.2.3 -r1.18.2.4
--- Version.java 9 Aug 2006 12:59:09 -0000 1.18.2.3
+++ Version.java 1 Nov 2006 00:55:30 -0000 1.18.2.4
@@ -6,12 +6,13 @@
* Contains version information about this release of TreeCache.
*
* @author Bela Ban
- * @version $Id: Version.java,v 1.18.2.3 2006/08/09 12:59:09 msurtani Exp $
+ * @version $Id: Version.java,v 1.18.2.4 2006/11/01 00:55:30 msurtani Exp $
*/
-public class Version {
- public static final String version="1.4.0.SP1";
- public static byte[] version_id={'0', '1', '4', '0', 'S', 'P', '1'};
- public static final String cvs="$Id: Version.java,v 1.18.2.3 2006/08/09 12:59:09 msurtani Exp $";
+public class Version
+{
+ public static final String version = "1.4.1.BETA";
+ public static byte[] version_id = {'0', '1', '4', '1', 'B'};
+ public static final String cvs = "$Id: Version.java,v 1.18.2.4 2006/11/01 00:55:30 msurtani Exp $";
private static final int MAJOR_SHIFT = 11;
private static final int MINOR_SHIFT = 6;
@@ -19,13 +20,14 @@
private static final int MINOR_MASK = 0x0007c0;
private static final int PATCH_MASK = 0x00003f;
- private static final short SHORT_1_2_3 = encodeVersion(1,2,3);
- private static final short SHORT_1_2_4_SP2 = encodeVersion(1,2,4);
+ private static final short SHORT_1_2_3 = encodeVersion(1, 2, 3);
+ private static final short SHORT_1_2_4_SP2 = encodeVersion(1, 2, 4);
/**
* Prints version information.
*/
- public static void main(String[] args) {
+ public static void main(String[] args)
+ {
System.out.println("\nVersion: \t" + version);
System.out.println("CVS: \t" + cvs);
System.out.println("History: \t(see docs/Changelog.txt for details)\n");
@@ -34,44 +36,52 @@
/**
* Returns version information as a string.
*/
- public static String printVersion() {
+ public static String printVersion()
+ {
return "JBossCache " + version + "[ " + cvs + "]";
}
- public static String printVersionId(byte[] v, int len) {
- StringBuffer sb=new StringBuffer();
- if(v != null) {
- if(len <= 0)
- len=v.length;
- for(int i=0; i < len; i++)
- sb.append((char)v[i]);
+ public static String printVersionId(byte[] v, int len)
+ {
+ StringBuffer sb = new StringBuffer();
+ if (v != null)
+ {
+ if (len <= 0)
+ len = v.length;
+ for (int i = 0; i < len; i++)
+ sb.append((char) v[i]);
}
return sb.toString();
}
- public static String printVersionId(byte[] v) {
- StringBuffer sb=new StringBuffer();
- if(v != null) {
- for(int i=0; i < v.length; i++)
- sb.append((char)v[i]);
+ public static String printVersionId(byte[] v)
+ {
+ StringBuffer sb = new StringBuffer();
+ if (v != null)
+ {
+ for (int i = 0; i < v.length; i++)
+ sb.append((char) v[i]);
}
return sb.toString();
}
- public static boolean compareTo(byte[] v) {
- if(v == null)
+ public static boolean compareTo(byte[] v)
+ {
+ if (v == null)
return false;
- if(v.length < version_id.length)
+ if (v.length < version_id.length)
return false;
- for(int i=0; i < version_id.length; i++) {
- if(version_id[i] != v[i])
+ for (int i = 0; i < version_id.length; i++)
+ {
+ if (version_id[i] != v[i])
return false;
}
return true;
}
- public static int getLength() {
+ public static int getLength()
+ {
return version_id.length;
}
@@ -136,7 +146,7 @@
int major = (version & MAJOR_MASK) >> MAJOR_SHIFT;
int minor = (version & MINOR_MASK) >> MINOR_SHIFT;
int patch = (version & PATCH_MASK);
- String versionString = major +"."+minor+"."+patch;
+ String versionString = major + "." + minor + "." + patch;
return versionString;
}
More information about the jboss-cvs-commits
mailing list