Author: markt
Date: Thu Mar 29 20:22:30 2012
New Revision: 1307094
URL: http://svn.apache.org/viewvc?rev=1307094&view=rev
Log:
Disable some warnings we can't do anything about
Modified:
tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java
Modified:
tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java?rev=1307094&r1=1307093&r2=1307094&view=diff
==============================================================================
---
tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java
(original)
+++
tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java
Thu Mar 29 20:22:30 2012
@@ -61,12 +61,14 @@ public class DataSourceProxy implements
}
+ @SuppressWarnings("unused") // Has to match signature in DataSource
public boolean isWrapperFor(Class<?> iface) throws SQLException {
// we are not a wrapper of anything
return false;
}
+ @SuppressWarnings("unused") // Has to match signature in DataSource
public <T> T unwrap(Class<T> iface) throws SQLException {
//we can't unwrap anything
return null;
@@ -175,7 +177,7 @@ public class DataSourceProxy implements
* {@link javax.sql.DataSource#getConnection()}
*/
public javax.sql.PooledConnection getPooledConnection(String username,
- String password) throws
SQLException {
+ String password) throws SQLException {
return (javax.sql.PooledConnection) getConnection();
}
@@ -547,6 +549,7 @@ public class DataSourceProxy implements
* no-op
* {@link javax.sql.DataSource#getLogWriter}
*/
+ @SuppressWarnings("unused") // Has to match signature in DataSource
public PrintWriter getLogWriter() throws SQLException {
return null;
}
@@ -556,6 +559,7 @@ public class DataSourceProxy implements
* no-op
* {@link javax.sql.DataSource#setLogWriter(PrintWriter)}
*/
+ @SuppressWarnings("unused") // Has to match signature in DataSource
public void setLogWriter(PrintWriter out) throws SQLException {
// NOOP
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]