This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: Removing redundant modifiers (Part 19)
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Sat, 11 Oct 2003 21:22:50 +0200
- Subject: FYI: Patch: Removing redundant modifiers (Part 19)
Hi list,
MODIFIERS.
Michael
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2254
diff -u -b -B -r1.2254 ChangeLog
--- ChangeLog 11 Oct 2003 19:13:55 -0000 1.2254
+++ ChangeLog 11 Oct 2003 19:17:30 -0000
@@ -1,5 +1,16 @@
2003-10-11 Michael Koch <konqueror@gmx.de>
+ * javax/transaction/Status.java,
+ javax/transaction/Synchronization.java,
+ javax/transaction/Transaction.java,
+ javax/transaction/TransactionManager.java,
+ javax/transaction/UserTransaction.java,
+ javax/transaction/xa/XAResource.java,
+ javax/transaction/xa/Xid.java:
+ Removing redundant modifiers.
+
+2003-10-11 Michael Koch <konqueror@gmx.de>
+
* javax/print/attribute/Attribute.java,
javax/print/attribute/AttributeSet.java,
javax/print/attribute/PrintRequestAttributeSet.java:
Index: javax/transaction/Status.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/transaction/Status.java,v
retrieving revision 1.2
diff -u -b -B -r1.2 Status.java
--- javax/transaction/Status.java 26 Nov 2002 22:48:42 -0000 1.2
+++ javax/transaction/Status.java 11 Oct 2003 19:17:30 -0000
@@ -45,14 +45,14 @@
public interface Status
{
- public static final int STATUS_ACTIVE = 0;
- public static final int STATUS_MARKED_ROLLBACK = 1;
- public static final int STATUS_PREPARED = 2;
- public static final int STATUS_COMMITTED = 3;
- public static final int STATUS_ROLLEDBACK = 4;
- public static final int STATUS_UNKNOWN = 5;
- public static final int STATUS_NO_TRANSACTION = 6;
- public static final int STATUS_PREPARING = 7;
- public static final int STATUS_COMMITTING = 8;
- public static final int STATUS_ROLLING_BACK = 9;
+ int STATUS_ACTIVE = 0;
+ int STATUS_MARKED_ROLLBACK = 1;
+ int STATUS_PREPARED = 2;
+ int STATUS_COMMITTED = 3;
+ int STATUS_ROLLEDBACK = 4;
+ int STATUS_UNKNOWN = 5;
+ int STATUS_NO_TRANSACTION = 6;
+ int STATUS_PREPARING = 7;
+ int STATUS_COMMITTING = 8;
+ int STATUS_ROLLING_BACK = 9;
}
Index: javax/transaction/Synchronization.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/transaction/Synchronization.java,v
retrieving revision 1.2
diff -u -b -B -r1.2 Synchronization.java
--- javax/transaction/Synchronization.java 26 Nov 2002 22:48:42 -0000 1.2
+++ javax/transaction/Synchronization.java 11 Oct 2003 19:17:30 -0000
@@ -45,6 +45,6 @@
public interface Synchronization
{
- public void beforeCompletion();
- public void afterCompletion(int status);
+ void beforeCompletion();
+ void afterCompletion(int status);
}
Index: javax/transaction/Transaction.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/transaction/Transaction.java,v
retrieving revision 1.2
diff -u -b -B -r1.2 Transaction.java
--- javax/transaction/Transaction.java 26 Nov 2002 22:48:42 -0000 1.2
+++ javax/transaction/Transaction.java 11 Oct 2003 19:17:30 -0000
@@ -47,24 +47,24 @@
public interface Transaction
{
- public void commit()
+ void commit()
throws RollbackException, HeuristicMixedException,
HeuristicRollbackException, SecurityException, SystemException;
- public boolean delistResource(XAResource xaRes, int flag)
+ boolean delistResource(XAResource xaRes, int flag)
throws IllegalStateException, SystemException;
- public boolean enlistResource(XAResource xaRes)
+ boolean enlistResource(XAResource xaRes)
throws RollbackException, IllegalStateException, SystemException;
- public int getStatus() throws SystemException;
+ int getStatus() throws SystemException;
- public void registerSynchronization(Synchronization sync)
+ void registerSynchronization(Synchronization sync)
throws RollbackException, IllegalStateException, SystemException;
- public void rollback()
+ void rollback()
throws IllegalStateException, SystemException;
- public void setRollbackOnly()
+ void setRollbackOnly()
throws IllegalStateException, SystemException;
}
Index: javax/transaction/TransactionManager.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/transaction/TransactionManager.java,v
retrieving revision 1.2
diff -u -b -B -r1.2 TransactionManager.java
--- javax/transaction/TransactionManager.java 26 Nov 2002 22:48:42 -0000 1.2
+++ javax/transaction/TransactionManager.java 11 Oct 2003 19:17:30 -0000
@@ -45,28 +45,28 @@
public interface TransactionManager
{
- public void begin() throws NotSupportedException, SystemException;
+ void begin() throws NotSupportedException, SystemException;
- public void commit()
+ void commit()
throws RollbackException, HeuristicMixedException,
HeuristicRollbackException, SecurityException,
IllegalStateException, SystemException;
- public int getStatus() throws SystemException;
+ int getStatus() throws SystemException;
- public Transaction getTransaction() throws SystemException;
+ Transaction getTransaction() throws SystemException;
- public void resume(Transaction tobj)
+ void resume(Transaction tobj)
throws InvalidTransactionException, IllegalStateException,
SystemException;
- public void rollback()
+ void rollback()
throws IllegalStateException, SecurityException, SystemException;
- public void setRollbackOnly()
+ void setRollbackOnly()
throws IllegalStateException, SystemException;
- public void setTransactionTimeout(int seconds) throws SystemException;
+ void setTransactionTimeout(int seconds) throws SystemException;
- public Transaction suspend() throws SystemException;
+ Transaction suspend() throws SystemException;
}
Index: javax/transaction/UserTransaction.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/transaction/UserTransaction.java,v
retrieving revision 1.2
diff -u -b -B -r1.2 UserTransaction.java
--- javax/transaction/UserTransaction.java 26 Nov 2002 22:48:42 -0000 1.2
+++ javax/transaction/UserTransaction.java 11 Oct 2003 19:17:30 -0000
@@ -45,20 +45,20 @@
public interface UserTransaction
{
- public void begin() throws NotSupportedException, SystemException;
+ void begin() throws NotSupportedException, SystemException;
- public void commit()
+ void commit()
throws RollbackException, HeuristicMixedException,
HeuristicRollbackException, SecurityException,
IllegalStateException, SystemException;
- public void rollback()
+ void rollback()
throws IllegalStateException, SecurityException, SystemException;
- public void setRollbackOnly()
+ void setRollbackOnly()
throws IllegalStateException, SystemException;
- public int getStatus() throws SystemException;
+ int getStatus() throws SystemException;
- public void setTransactionTimeout(int seconds) throws SystemException;
+ void setTransactionTimeout(int seconds) throws SystemException;
}
Index: javax/transaction/xa/XAResource.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/transaction/xa/XAResource.java,v
retrieving revision 1.2
diff -u -b -B -r1.2 XAResource.java
--- javax/transaction/xa/XAResource.java 26 Nov 2002 22:48:42 -0000 1.2
+++ javax/transaction/xa/XAResource.java 11 Oct 2003 19:17:30 -0000
@@ -44,26 +44,26 @@
public interface XAResource
{
- public static final int TMENDRSCAN = 8388608;
- public static final int TMFAIL = 536870912;
- public static final int TMJOIN = 2097152;
- public static final int TMNOFLAGS = 0;
- public static final int TMONEPHASE = 1073741824;
- public static final int TMRESUME = 134217728;
- public static final int TMSTARTRSCAN = 16777216;
- public static final int TMSUCCESS = 67108864;
- public static final int TMSUSPEND = 33554432;
- public static final int XA_RDONLY = 3;
- public static final int XA_OK = 0;
+ int TMENDRSCAN = 8388608;
+ int TMFAIL = 536870912;
+ int TMJOIN = 2097152;
+ int TMNOFLAGS = 0;
+ int TMONEPHASE = 1073741824;
+ int TMRESUME = 134217728;
+ int TMSTARTRSCAN = 16777216;
+ int TMSUCCESS = 67108864;
+ int TMSUSPEND = 33554432;
+ int XA_RDONLY = 3;
+ int XA_OK = 0;
- public void commit(Xid xid, boolean onePhase) throws XAException;
- public void end(Xid xid, int flags) throws XAException;
- public void forget(Xid xid) throws XAException;
- public int getTransactionTimeout() throws XAException;
- public boolean isSameRM(XAResource xares) throws XAException;
- public int prepare(Xid xid) throws XAException;
- public Xid[] recover(int flag) throws XAException;
- public void rollback(Xid xid) throws XAException;
- public boolean setTransactionTimeout(int seconds) throws XAException;
- public void start(Xid xid, int flags) throws XAException;
+ void commit(Xid xid, boolean onePhase) throws XAException;
+ void end(Xid xid, int flags) throws XAException;
+ void forget(Xid xid) throws XAException;
+ int getTransactionTimeout() throws XAException;
+ boolean isSameRM(XAResource xares) throws XAException;
+ int prepare(Xid xid) throws XAException;
+ Xid[] recover(int flag) throws XAException;
+ void rollback(Xid xid) throws XAException;
+ boolean setTransactionTimeout(int seconds) throws XAException;
+ void start(Xid xid, int flags) throws XAException;
}
Index: javax/transaction/xa/Xid.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/transaction/xa/Xid.java,v
retrieving revision 1.2
diff -u -b -B -r1.2 Xid.java
--- javax/transaction/xa/Xid.java 26 Nov 2002 22:48:42 -0000 1.2
+++ javax/transaction/xa/Xid.java 11 Oct 2003 19:17:30 -0000
@@ -44,10 +44,10 @@
public interface Xid
{
- public static final int MAXGTRIDSIZE = 64;
- public static final int MAXBQUALSIZE = 64;
+ int MAXGTRIDSIZE = 64;
+ int MAXBQUALSIZE = 64;
- public int getFormatId();
- public byte[] getGlobalTransactionId();
- public byte[] getBranchQualifier();
+ int getFormatId();
+ byte[] getGlobalTransactionId();
+ byte[] getBranchQualifier();
}