db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r1301800 - in /db/derby/code/branches/10.7: ./ java/build/org/apache/derbyBuild/ java/client/org/apache/derby/client/am/ java/client/org/apache/derby/client/net/ java/drda/org/apache/derby/impl/drda/ java/engine/org/apache/derby/impl/sql/ca...
Date Fri, 16 Mar 2012 22:31:11 GMT
Author: kmarsden
Date: Fri Mar 16 22:31:10 2012
New Revision: 1301800

URL: http://svn.apache.org/viewvc?rev=1301800&view=rev
Log:
DERBY-5018 [patch] remove erroneous throws clauses on non derivable methods that don't throw

Contributed by David Brosius. Merge revision 1071318 from trunk



Modified:
    db/derby/code/branches/10.7/   (props changed)
    db/derby/code/branches/10.7/java/build/org/apache/derbyBuild/ElementFacade.java
    db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/CallableStatement.java
    db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/Cursor.java
    db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/PreparedStatement.java
    db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/ResultSet.java
    db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/Statement.java
    db/derby/code/branches/10.7/java/client/org/apache/derby/client/net/NetCallableStatement.java
    db/derby/code/branches/10.7/java/client/org/apache/derby/client/net/Reply.java
    db/derby/code/branches/10.7/java/drda/org/apache/derby/impl/drda/PiggyBackedSessionData.java
    db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java
    db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java
    db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/sql/execute/MultiProbeTableScanResultSet.java
    db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/store/raw/data/StreamFileContainer.java

Propchange: db/derby/code/branches/10.7/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Fri Mar 16 22:31:10 2012
@@ -1,2 +1,2 @@
 /db/derby/code/branches/10.8:1209227-1209228,1209284
-/db/derby/code/trunk:1035603,1036769,1038514,1038813,1039084,1039268,1040658,1041338,1043227,1043389,1044096,1051026,1053724,1055169,1059888,1060480,1062096,1063809,1065061,1066290,1067250,1067357,1069661,1071463,1071886,1076335,1076387,1078461,1078608,1078693,1081072,1081455,1081568,1085078,1086527,1091000,1097247,1103681,1103718,1128243,1129136,1130632,1130895,1131272,1132664,1136363,1138341,1138444,1139449,1140222,1140744,1141924,1164370,1203050,1207729,1208775,1209228,1243878,1293494,1294512,1294522,1295085
+/db/derby/code/trunk:1035603,1036769,1038514,1038813,1039084,1039268,1040658,1041338,1043227,1043389,1044096,1051026,1053724,1055169,1059888,1060480,1062096,1063809,1065061,1066290,1067250,1067357,1069661,1071318,1071463,1071886,1076335,1076387,1078461,1078608,1078693,1081072,1081455,1081568,1085078,1086527,1091000,1097247,1103681,1103718,1128243,1129136,1130632,1130895,1131272,1132664,1136363,1138341,1138444,1139449,1140222,1140744,1141924,1164370,1203050,1207729,1208775,1209228,1243878,1293494,1294512,1294522,1295085

Modified: db/derby/code/branches/10.7/java/build/org/apache/derbyBuild/ElementFacade.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.7/java/build/org/apache/derbyBuild/ElementFacade.java?rev=1301800&r1=1301799&r2=1301800&view=diff
==============================================================================
--- db/derby/code/branches/10.7/java/build/org/apache/derbyBuild/ElementFacade.java (original)
+++ db/derby/code/branches/10.7/java/build/org/apache/derbyBuild/ElementFacade.java Fri Mar
16 22:31:10 2012
@@ -32,9 +32,8 @@ public class ElementFacade {
     /**
      * Construct a new ElementFacade from an Element.
      * @param r - the Element to wrap
-     * @throws java.lang.Exception
      */
-    public ElementFacade(Element r) throws Exception {
+    public ElementFacade(Element r) {
         root = r;
     }
 

Modified: db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/CallableStatement.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/CallableStatement.java?rev=1301800&r1=1301799&r2=1301800&view=diff
==============================================================================
--- db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/CallableStatement.java
(original)
+++ db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/CallableStatement.java
Fri Mar 16 22:31:10 2012
@@ -167,7 +167,7 @@ public class CallableStatement extends P
         registerOutParameterX(parameterIndex, jdbcType, scale);
     }
 
-    private int guessScaleForDecimalOrNumeric(int parameterIndex) throws SqlException {
+    private int guessScaleForDecimalOrNumeric(int parameterIndex) {
         // Types.DECIMAL with no supplied scale will use the scale supplied by the setter
method if input BigDecimal is not null
         if (parameterMetaData_.types_[parameterIndex - 1] == Types.DECIMAL &&
                 parameters_[parameterIndex - 1] != null) {

Modified: db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/Cursor.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/Cursor.java?rev=1301800&r1=1301799&r2=1301800&view=diff
==============================================================================
--- db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/Cursor.java (original)
+++ db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/Cursor.java Fri Mar
16 22:31:10 2012
@@ -1406,7 +1406,7 @@ public abstract class Cursor {
         charBuffer_ = new char[maxCharLength];
     }
 
-    private final String getStringWithoutConvert(int position, int actualLength) throws SqlException
{
+    private final String getStringWithoutConvert(int position, int actualLength) {
         int start = position;
         int end = position + actualLength;
 

Modified: db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/PreparedStatement.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/PreparedStatement.java?rev=1301800&r1=1301799&r2=1301800&view=diff
==============================================================================
--- db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/PreparedStatement.java
(original)
+++ db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/PreparedStatement.java
Fri Mar 16 22:31:10 2012
@@ -303,7 +303,7 @@ public class PreparedStatement extends S
     }
 
     private void initPreparedStatement(ColumnMetaData parameterMetaData,
-                                       ColumnMetaData resultSetMetaData) throws SqlException
{
+                                       ColumnMetaData resultSetMetaData) {
         isPreparedStatement_ = true;
         parameterMetaData_ = parameterMetaData;
         resultSetMetaData_ = resultSetMetaData;

Modified: db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/ResultSet.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/ResultSet.java?rev=1301800&r1=1301799&r2=1301800&view=diff
==============================================================================
--- db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/ResultSet.java (original)
+++ db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/ResultSet.java Fri
Mar 16 22:31:10 2012
@@ -4238,7 +4238,7 @@ public abstract class ResultSet implemen
         return (isBeforeFirstX() && firstRowInRowset_ == 0 && lastRowInRowset_
== 0 && absolutePosition_ == 0);
     }
 
-    private boolean isServerCursorPositionAfterLast() throws SqlException {
+    private boolean isServerCursorPositionAfterLast() {
         return (absolutePosition_ == (rowCount_ + 1));
     }
 
@@ -4844,7 +4844,7 @@ public abstract class ResultSet implemen
         }
     }
 
-    private boolean rowIsInCurrentRowset(long rowNumber) throws SqlException {
+    private boolean rowIsInCurrentRowset(long rowNumber) {
         // firstRowInRowset_ is equal to lastRowInRowset_ if there is only one row
         // in the rowset or if fetchSize_ is 1.  however, return false if firstRowInRowset_
         // is equal to lastRowInRowset_ and also equal to zero which means there is no
@@ -5144,7 +5144,7 @@ public abstract class ResultSet implemen
         return true;
     }
 
-    private void adjustPreviousRowset(int orientation, long rowNumber, boolean isAfterLastRow)
throws SqlException {
+    private void adjustPreviousRowset(int orientation, long rowNumber, boolean isAfterLastRow)
{
         if (orientation == scrollOrientation_absolute__ && rowNumber == 1) {
             // Subtracting 2 because the currentRowInRowset_ index starts at 0, and all
             // the other indexes starts at 1.

Modified: db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/Statement.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/Statement.java?rev=1301800&r1=1301799&r2=1301800&view=diff
==============================================================================
--- db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/Statement.java (original)
+++ db/derby/code/branches/10.7/java/client/org/apache/derby/client/am/Statement.java Fri
Mar 16 22:31:10 2012
@@ -2500,7 +2500,7 @@ public class Statement implements java.s
         return tokenFound;
     }
 
-    private void parseUpdateSql(String firstToken) throws SqlException {
+    private void parseUpdateSql(String firstToken) {
         sqlMode_ = isUpdate__;
         if (firstToken.equalsIgnoreCase("insert")) {
             sqlUpdateMode_ = isInsertSql__;

Modified: db/derby/code/branches/10.7/java/client/org/apache/derby/client/net/NetCallableStatement.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.7/java/client/org/apache/derby/client/net/NetCallableStatement.java?rev=1301800&r1=1301799&r2=1301800&view=diff
==============================================================================
--- db/derby/code/branches/10.7/java/client/org/apache/derby/client/net/NetCallableStatement.java
(original)
+++ db/derby/code/branches/10.7/java/client/org/apache/derby/client/net/NetCallableStatement.java
Fri Mar 16 22:31:10 2012
@@ -59,7 +59,7 @@ public class NetCallableStatement extend
         initNetCallableStatement(statement);
     }
 
-    private void initNetCallableStatement(CallableStatement statement) throws SqlException
{
+    private void initNetCallableStatement(CallableStatement statement) {
         callableStatement_ = statement;
         callableStatement_.materialCallableStatement_ = this;
 

Modified: db/derby/code/branches/10.7/java/client/org/apache/derby/client/net/Reply.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.7/java/client/org/apache/derby/client/net/Reply.java?rev=1301800&r1=1301799&r2=1301800&view=diff
==============================================================================
--- db/derby/code/branches/10.7/java/client/org/apache/derby/client/net/Reply.java (original)
+++ db/derby/code/branches/10.7/java/client/org/apache/derby/client/net/Reply.java Fri Mar
16 22:31:10 2012
@@ -1413,7 +1413,7 @@ public class Reply {
         return (nullInd == CodePoint.NULLDATA);
     }
 
-    private final int skipSQLDHROW(int offset) throws DisconnectException {
+    private final int skipSQLDHROW(int offset) {
         int sqldhrowgrpNullInd = buffer_[pos_ + offset++] & 0xff;
         if (sqldhrowgrpNullInd == CodePoint.NULLDATA) {
             return offset;

Modified: db/derby/code/branches/10.7/java/drda/org/apache/derby/impl/drda/PiggyBackedSessionData.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.7/java/drda/org/apache/derby/impl/drda/PiggyBackedSessionData.java?rev=1301800&r1=1301799&r2=1301800&view=diff
==============================================================================
--- db/derby/code/branches/10.7/java/drda/org/apache/derby/impl/drda/PiggyBackedSessionData.java
(original)
+++ db/derby/code/branches/10.7/java/drda/org/apache/derby/impl/drda/PiggyBackedSessionData.java
Fri Mar 16 22:31:10 2012
@@ -69,7 +69,7 @@ class PiggyBackedSessionData {
      * the xModified() methods can be used.
      * @param conn the connection to obtain data from
      */
-    private PiggyBackedSessionData(EngineConnection conn) throws SQLException {
+    private PiggyBackedSessionData(EngineConnection conn) {
         conn_ = conn;
         iso_ = -1; // Initialize to an illegal value
     }

Modified: db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java?rev=1301800&r1=1301799&r2=1301800&view=diff
==============================================================================
--- db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java
(original)
+++ db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java
Fri Mar 16 22:31:10 2012
@@ -9002,7 +9002,6 @@ public final class	DataDictionaryImpl
 	 * Initialized the noncore info array.
 	 */
 	private void initializeNoncoreInfo()
-		throws StandardException
 	{
 		noncoreInfo = new TabInfoImpl[NUM_NONCORE];
 	}

Modified: db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java?rev=1301800&r1=1301799&r2=1301800&view=diff
==============================================================================
--- db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java
(original)
+++ db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java
Fri Mar 16 22:31:10 2012
@@ -4543,7 +4543,6 @@ public class FromBaseTable extends FromT
 	}
 
 	private ConglomerateDescriptor getNextConglom(ConglomerateDescriptor currCD)
-		throws StandardException
 	{
 		int index = 0;
 

Modified: db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/sql/execute/MultiProbeTableScanResultSet.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/sql/execute/MultiProbeTableScanResultSet.java?rev=1301800&r1=1301799&r2=1301800&view=diff
==============================================================================
--- db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/sql/execute/MultiProbeTableScanResultSet.java
(original)
+++ db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/sql/execute/MultiProbeTableScanResultSet.java
Fri Mar 16 22:31:10 2012
@@ -472,7 +472,6 @@ class MultiProbeTableScanResultSet exten
      * then just return null.
      */
     private DataValueDescriptor getNextProbeValue()
-        throws StandardException
     {
         int ctr = probeValIndex;
 

Modified: db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/store/raw/data/StreamFileContainer.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/store/raw/data/StreamFileContainer.java?rev=1301800&r1=1301799&r2=1301800&view=diff
==============================================================================
--- db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/store/raw/data/StreamFileContainer.java
(original)
+++ db/derby/code/branches/10.7/java/engine/org/apache/derby/impl/store/raw/data/StreamFileContainer.java
Fri Mar 16 22:31:10 2012
@@ -168,7 +168,6 @@ public class StreamFileContainer impleme
 	StreamFileContainer(
     ContainerKey        identity, 
     BaseDataFileFactory dataFactory)
-		throws StandardException 
     {
 		this.identity = identity;
 		this.dataFactory = dataFactory;



Mime
View raw message