XmlReaderContentHandler
@@ -391,7 +391,7 @@ public class XmlReaderContentHandler extends DefaultHandler {
* still be parsed correctly (except that metadata must be
* set before data values can be set).
*/
- private final static int INITIAL = 0;
+ private static final int INITIAL = 0;
/**
* A constant indicating the state in which this XmlReaderContentHandler
@@ -399,7 +399,7 @@ public class XmlReaderContentHandler extends DefaultHandler {
* SAX parser to be a string corresponding to one of the elements in
* properties.
*/
- private final static int PROPERTIES = 1;
+ private static final int PROPERTIES = 1;
/**
* A constant indicating the state in which this XmlReaderContentHandler
@@ -407,7 +407,7 @@ public class XmlReaderContentHandler extends DefaultHandler {
* SAX parser to be a string corresponding to one of the elements in
* colDef.
*/
- private final static int METADATA = 2;
+ private static final int METADATA = 2;
/**
* A constant indicating the state in which this XmlReaderContentHandler
@@ -415,7 +415,7 @@ public class XmlReaderContentHandler extends DefaultHandler {
* SAX parser to be a string corresponding to one of the elements in
* data.
*/
- private final static int DATA = 3;
+ private static final int DATA = 3;
private JdbcRowSetResourceBundle resBundle;
diff --git a/src/java.sql/share/classes/java/sql/DriverManager.java b/src/java.sql/share/classes/java/sql/DriverManager.java
index a19942d8619..4b38f928749 100644
--- a/src/java.sql/share/classes/java/sql/DriverManager.java
+++ b/src/java.sql/share/classes/java/sql/DriverManager.java
@@ -83,14 +83,14 @@ public class DriverManager {
// List of registered JDBC drivers
- private final static CopyOnWriteArrayListThe constant in the Java programming language, sometimes referred * to as a type code, that identifies the generic SQL type * {@code TINYINT}. */ - public final static int TINYINT = -6; + public static final int TINYINT = -6; /** *
The constant in the Java programming language, sometimes referred * to as a type code, that identifies the generic SQL type * {@code SMALLINT}. */ - public final static int SMALLINT = 5; + public static final int SMALLINT = 5; /** *
The constant in the Java programming language, sometimes referred * to as a type code, that identifies the generic SQL type * {@code INTEGER}. */ - public final static int INTEGER = 4; + public static final int INTEGER = 4; /** *
The constant in the Java programming language, sometimes referred * to as a type code, that identifies the generic SQL type * {@code BIGINT}. */ - public final static int BIGINT = -5; + public static final int BIGINT = -5; /** *
The constant in the Java programming language, sometimes referred * to as a type code, that identifies the generic SQL type * {@code FLOAT}. */ - public final static int FLOAT = 6; + public static final int FLOAT = 6; /** *
The constant in the Java programming language, sometimes referred * to as a type code, that identifies the generic SQL type * {@code REAL}. */ - public final static int REAL = 7; + public static final int REAL = 7; /** @@ -90,42 +90,42 @@ public class Types { * to as a type code, that identifies the generic SQL type * {@code DOUBLE}. */ - public final static int DOUBLE = 8; + public static final int DOUBLE = 8; /** *
The constant in the Java programming language, sometimes referred * to as a type code, that identifies the generic SQL type * {@code NUMERIC}. */ - public final static int NUMERIC = 2; + public static final int NUMERIC = 2; /** *
The constant in the Java programming language, sometimes referred * to as a type code, that identifies the generic SQL type * {@code DECIMAL}. */ - public final static int DECIMAL = 3; + public static final int DECIMAL = 3; /** *
The constant in the Java programming language, sometimes referred * to as a type code, that identifies the generic SQL type * {@code CHAR}. */ - public final static int CHAR = 1; + public static final int CHAR = 1; /** *
The constant in the Java programming language, sometimes referred * to as a type code, that identifies the generic SQL type * {@code VARCHAR}. */ - public final static int VARCHAR = 12; + public static final int VARCHAR = 12; /** *
The constant in the Java programming language, sometimes referred * to as a type code, that identifies the generic SQL type * {@code LONGVARCHAR}. */ - public final static int LONGVARCHAR = -1; + public static final int LONGVARCHAR = -1; /** @@ -133,21 +133,21 @@ public class Types { * to as a type code, that identifies the generic SQL type * {@code DATE}. */ - public final static int DATE = 91; + public static final int DATE = 91; /** *
The constant in the Java programming language, sometimes referred * to as a type code, that identifies the generic SQL type * {@code TIME}. */ - public final static int TIME = 92; + public static final int TIME = 92; /** *
The constant in the Java programming language, sometimes referred * to as a type code, that identifies the generic SQL type * {@code TIMESTAMP}. */ - public final static int TIMESTAMP = 93; + public static final int TIMESTAMP = 93; /** @@ -155,28 +155,28 @@ public class Types { * to as a type code, that identifies the generic SQL type * {@code BINARY}. */ - public final static int BINARY = -2; + public static final int BINARY = -2; /** *
The constant in the Java programming language, sometimes referred * to as a type code, that identifies the generic SQL type * {@code VARBINARY}. */ - public final static int VARBINARY = -3; + public static final int VARBINARY = -3; /** *
The constant in the Java programming language, sometimes referred * to as a type code, that identifies the generic SQL type * {@code LONGVARBINARY}. */ - public final static int LONGVARBINARY = -4; + public static final int LONGVARBINARY = -4; /** *
The constant in the Java programming language * that identifies the generic SQL value * {@code NULL}. */ - public final static int NULL = 0; + public static final int NULL = 0; /** * The constant in the Java programming language that indicates @@ -184,7 +184,7 @@ public class Types { * gets mapped to a Java object that can be accessed via * the methods {@code getObject} and {@code setObject}. */ - public final static int OTHER = 1111; + public static final int OTHER = 1111; @@ -194,7 +194,7 @@ public class Types { * {@code JAVA_OBJECT}. * @since 1.2 */ - public final static int JAVA_OBJECT = 2000; + public static final int JAVA_OBJECT = 2000; /** * The constant in the Java programming language, sometimes referred to @@ -202,7 +202,7 @@ public class Types { * {@code DISTINCT}. * @since 1.2 */ - public final static int DISTINCT = 2001; + public static final int DISTINCT = 2001; /** * The constant in the Java programming language, sometimes referred to @@ -210,7 +210,7 @@ public class Types { * {@code STRUCT}. * @since 1.2 */ - public final static int STRUCT = 2002; + public static final int STRUCT = 2002; /** * The constant in the Java programming language, sometimes referred to @@ -218,7 +218,7 @@ public class Types { * {@code ARRAY}. * @since 1.2 */ - public final static int ARRAY = 2003; + public static final int ARRAY = 2003; /** * The constant in the Java programming language, sometimes referred to @@ -226,7 +226,7 @@ public class Types { * {@code BLOB}. * @since 1.2 */ - public final static int BLOB = 2004; + public static final int BLOB = 2004; /** * The constant in the Java programming language, sometimes referred to @@ -234,7 +234,7 @@ public class Types { * {@code CLOB}. * @since 1.2 */ - public final static int CLOB = 2005; + public static final int CLOB = 2005; /** * The constant in the Java programming language, sometimes referred to @@ -242,7 +242,7 @@ public class Types { * {@code REF}. * @since 1.2 */ - public final static int REF = 2006; + public static final int REF = 2006; /** * The constant in the Java programming language, sometimes referred to @@ -250,7 +250,7 @@ public class Types { * * @since 1.4 */ - public final static int DATALINK = 70; + public static final int DATALINK = 70; /** * The constant in the Java programming language, sometimes referred to @@ -258,7 +258,7 @@ public class Types { * * @since 1.4 */ - public final static int BOOLEAN = 16; + public static final int BOOLEAN = 16; //------------------------- JDBC 4.0 ----------------------------------- @@ -269,7 +269,7 @@ public class Types { * @since 1.6 * */ - public final static int ROWID = -8; + public static final int ROWID = -8; /** * The constant in the Java programming language, sometimes referred to diff --git a/src/java.transaction.xa/share/classes/javax/transaction/xa/XAException.java b/src/java.transaction.xa/share/classes/javax/transaction/xa/XAException.java index 0d046742531..a86472d7461 100644 --- a/src/java.transaction.xa/share/classes/javax/transaction/xa/XAException.java +++ b/src/java.transaction.xa/share/classes/javax/transaction/xa/XAException.java @@ -75,127 +75,127 @@ public class XAException extends Exception { /** * The inclusive lower bound of the rollback codes. */ - public final static int XA_RBBASE = 100; + public static final int XA_RBBASE = 100; /** * Indicates that the rollback was caused by an unspecified reason. */ - public final static int XA_RBROLLBACK = XA_RBBASE; + public static final int XA_RBROLLBACK = XA_RBBASE; /** * Indicates that the rollback was caused by a communication failure. */ - public final static int XA_RBCOMMFAIL = XA_RBBASE + 1; + public static final int XA_RBCOMMFAIL = XA_RBBASE + 1; /** * A deadlock was detected. */ - public final static int XA_RBDEADLOCK = XA_RBBASE + 2; + public static final int XA_RBDEADLOCK = XA_RBBASE + 2; /** * A condition that violates the integrity of the resource was detected. */ - public final static int XA_RBINTEGRITY = XA_RBBASE + 3; + public static final int XA_RBINTEGRITY = XA_RBBASE + 3; /** * The resource manager rolled back the transaction branch for a reason * not on this list. */ - public final static int XA_RBOTHER = XA_RBBASE + 4; + public static final int XA_RBOTHER = XA_RBBASE + 4; /** * A protocol error occurred in the resource manager. */ - public final static int XA_RBPROTO = XA_RBBASE + 5; + public static final int XA_RBPROTO = XA_RBBASE + 5; /** * A transaction branch took too long. */ - public final static int XA_RBTIMEOUT = XA_RBBASE + 6; + public static final int XA_RBTIMEOUT = XA_RBBASE + 6; /** * May retry the transaction branch. */ - public final static int XA_RBTRANSIENT = XA_RBBASE + 7; + public static final int XA_RBTRANSIENT = XA_RBBASE + 7; /** * The inclusive upper bound of the rollback error code. */ - public final static int XA_RBEND = XA_RBTRANSIENT; + public static final int XA_RBEND = XA_RBTRANSIENT; /** * Resumption must occur where the suspension occurred. */ - public final static int XA_NOMIGRATE = 9; + public static final int XA_NOMIGRATE = 9; /** * The transaction branch may have been heuristically completed. */ - public final static int XA_HEURHAZ = 8; + public static final int XA_HEURHAZ = 8; /** * The transaction branch has been heuristically committed. */ - public final static int XA_HEURCOM = 7; + public static final int XA_HEURCOM = 7; /** * The transaction branch has been heuristically rolled back. */ - public final static int XA_HEURRB = 6; + public static final int XA_HEURRB = 6; /** * The transaction branch has been heuristically committed and * rolled back. */ - public final static int XA_HEURMIX = 5; + public static final int XA_HEURMIX = 5; /** * Routine returned with no effect and may be reissued. */ - public final static int XA_RETRY = 4; + public static final int XA_RETRY = 4; /** * The transaction branch was read-only and has been committed. */ - public final static int XA_RDONLY = 3; + public static final int XA_RDONLY = 3; /** * There is an asynchronous operation already outstanding. */ - public final static int XAER_ASYNC = -2; + public static final int XAER_ASYNC = -2; /** * A resource manager error has occurred in the transaction branch. */ - public final static int XAER_RMERR = -3; + public static final int XAER_RMERR = -3; /** * The XID is not valid. */ - public final static int XAER_NOTA = -4; + public static final int XAER_NOTA = -4; /** * Invalid arguments were given. */ - public final static int XAER_INVAL = -5; + public static final int XAER_INVAL = -5; /** * Routine was invoked in an inproper context. */ - public final static int XAER_PROTO = -6; + public static final int XAER_PROTO = -6; /** * Resource manager is unavailable. */ - public final static int XAER_RMFAIL = -7; + public static final int XAER_RMFAIL = -7; /** * The XID already exists. */ - public final static int XAER_DUPID = -8; + public static final int XAER_DUPID = -8; /** * The resource manager is doing work outside a global transaction. */ - public final static int XAER_OUTSIDE = -9; + public static final int XAER_OUTSIDE = -9; } diff --git a/src/java.transaction.xa/share/classes/javax/transaction/xa/XAResource.java b/src/java.transaction.xa/share/classes/javax/transaction/xa/XAResource.java index f8b26ffd789..476de7dbbec 100644 --- a/src/java.transaction.xa/share/classes/javax/transaction/xa/XAResource.java +++ b/src/java.transaction.xa/share/classes/javax/transaction/xa/XAResource.java @@ -249,58 +249,58 @@ public interface XAResource { /** * Ends a recovery scan. */ - public final static int TMENDRSCAN = 0x00800000; + public static final int TMENDRSCAN = 0x00800000; /** * Disassociates the caller and marks the transaction branch * rollback-only. */ - public final static int TMFAIL = 0x20000000; + public static final int TMFAIL = 0x20000000; /** * Caller is joining existing transaction branch. */ - public final static int TMJOIN = 0x00200000; + public static final int TMJOIN = 0x00200000; /** * Use TMNOFLAGS to indicate no flags value is selected. */ - public final static int TMNOFLAGS = 0x00000000; + public static final int TMNOFLAGS = 0x00000000; /** * Caller is using one-phase optimization. */ - public final static int TMONEPHASE = 0x40000000; + public static final int TMONEPHASE = 0x40000000; /** * Caller is resuming association with a suspended * transaction branch. */ - public final static int TMRESUME = 0x08000000; + public static final int TMRESUME = 0x08000000; /** * Starts a recovery scan. */ - public final static int TMSTARTRSCAN = 0x01000000; + public static final int TMSTARTRSCAN = 0x01000000; /** * Disassociates caller from a transaction branch. */ - public final static int TMSUCCESS = 0x04000000; + public static final int TMSUCCESS = 0x04000000; /** * Caller is suspending (not ending) its association with * a transaction branch. */ - public final static int TMSUSPEND = 0x02000000; + public static final int TMSUSPEND = 0x02000000; /** * The transaction branch has been read-only and has been committed. */ - public final static int XA_RDONLY = 0x00000003; + public static final int XA_RDONLY = 0x00000003; /** * The transaction work has been prepared normally. */ - public final static int XA_OK = 0; + public static final int XA_OK = 0; } diff --git a/src/java.transaction.xa/share/classes/javax/transaction/xa/Xid.java b/src/java.transaction.xa/share/classes/javax/transaction/xa/Xid.java index 184e586e819..4b9e331c94b 100644 --- a/src/java.transaction.xa/share/classes/javax/transaction/xa/Xid.java +++ b/src/java.transaction.xa/share/classes/javax/transaction/xa/Xid.java @@ -40,12 +40,12 @@ public interface Xid { /** * Maximum number of bytes returned by {@link #getGlobalTransactionId }. */ - final static int MAXGTRIDSIZE = 64; + static final int MAXGTRIDSIZE = 64; /** * Maximum number of bytes returned by {@link #getBranchQualifier }. */ - final static int MAXBQUALSIZE = 64; + static final int MAXBQUALSIZE = 64; /** * Obtain the format identifier part of the XID.