You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2010/10/31 19:49:03 UTC
svn commit: r1029453 - in
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4:
BlobTest.java ClobTest.java ConnectionMethodsTest.java
UnsupportedVetter.java VerifySignatures.java
Author: kahatlen
Date: Sun Oct 31 18:49:02 2010
New Revision: 1029453
URL: http://svn.apache.org/viewvc?rev=1029453&view=rev
Log:
DERBY-4877: Unchecked warnings in jdbc4 test suite
Modified:
db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/BlobTest.java
db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ClobTest.java
db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionMethodsTest.java
db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/UnsupportedVetter.java
db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/VerifySignatures.java
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/BlobTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/BlobTest.java?rev=1029453&r1=1029452&r2=1029453&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/BlobTest.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/BlobTest.java Sun Oct 31 18:49:02 2010
@@ -177,7 +177,7 @@ public class BlobTest
* can be exempted or not
*/
void buildHashSet() {
- Class iface = Blob.class;
+ Class<Blob> iface = Blob.class;
for(int i=0;i<emd.length;i++) {
try {
Method m = iface.getMethod(emd[i].getMethodName()
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ClobTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ClobTest.java?rev=1029453&r1=1029452&r2=1029453&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ClobTest.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ClobTest.java Sun Oct 31 18:49:02 2010
@@ -175,7 +175,7 @@ public class ClobTest
* can be exempted or not
*/
void buildHashSet() {
- Class iface = Clob.class;
+ Class<Clob> iface = Clob.class;
for(int i=0;i<emd.length;i++) {
try {
Method m = iface.getMethod(emd[i].getMethodName()
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionMethodsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionMethodsTest.java?rev=1029453&r1=1029452&r2=1029453&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionMethodsTest.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionMethodsTest.java Sun Oct 31 18:49:02 2010
@@ -112,9 +112,9 @@ public class ConnectionMethodsTest exten
clob = conn.createClob();
try {
- is = (FileInputStream) AccessController.doPrivileged(
- new PrivilegedExceptionAction() {
- public Object run() throws FileNotFoundException {
+ is = AccessController.doPrivileged(
+ new PrivilegedExceptionAction<FileInputStream>() {
+ public FileInputStream run() throws FileNotFoundException {
return new FileInputStream("extin/short.txt");
}
});
@@ -125,7 +125,7 @@ public class ConnectionMethodsTest exten
throw (FileNotFoundException) e.getException();
}
OutputStream os = clob.setAsciiStream(1);
- ArrayList beforeUpdateList = new ArrayList();
+ ArrayList<Integer> beforeUpdateList = new ArrayList<Integer>();
c = is.read();
while(c>0) {
@@ -146,7 +146,7 @@ public class ConnectionMethodsTest exten
//Get the InputStream from this Clob.
InputStream in = clob.getAsciiStream();
- ArrayList afterUpdateList = new ArrayList();
+ ArrayList<Integer> afterUpdateList = new ArrayList<Integer>();
b = in.read();
@@ -188,9 +188,9 @@ public class ConnectionMethodsTest exten
blob = conn.createBlob();
try {
- is = (FileInputStream) AccessController.doPrivileged(
- new PrivilegedExceptionAction() {
- public Object run() throws FileNotFoundException {
+ is = AccessController.doPrivileged(
+ new PrivilegedExceptionAction<FileInputStream>() {
+ public FileInputStream run() throws FileNotFoundException {
return new FileInputStream("extin/short.txt");
}
});
@@ -202,7 +202,7 @@ public class ConnectionMethodsTest exten
}
OutputStream os = blob.setBinaryStream(1);
- ArrayList beforeUpdateList = new ArrayList();
+ ArrayList<Integer> beforeUpdateList = new ArrayList<Integer>();
int actualLength = 0;
c = is.read();
@@ -225,7 +225,7 @@ public class ConnectionMethodsTest exten
//Get the InputStream from this Blob.
InputStream in = blob.getBinaryStream();
- ArrayList afterUpdateList = new ArrayList();
+ ArrayList<Integer> afterUpdateList = new ArrayList<Integer>();
b = in.read();
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/UnsupportedVetter.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/UnsupportedVetter.java?rev=1029453&r1=1029452&r2=1029453&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/UnsupportedVetter.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/UnsupportedVetter.java Sun Oct 31 18:49:02 2010
@@ -518,7 +518,7 @@ public class UnsupportedVetter extends B
for ( int i = 0; i < count; i++ )
{
Exclusions exclusions = rawExcludables[ i ];
- Class iface = exclusions.getInterface();
+ Class<?> iface = exclusions.getInterface();
MD[] mds = exclusions.getExcludedMethods();
int exclusionCount = mds.length;
HashSet<Method> excludedMethodSet = new HashSet<Method>();
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/VerifySignatures.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/VerifySignatures.java?rev=1029453&r1=1029452&r2=1029453&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/VerifySignatures.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/VerifySignatures.java Sun Oct 31 18:49:02 2010
@@ -369,7 +369,7 @@ public class VerifySignatures extends Ba
* @param ifaceMethod The method that should be implemented.
*/
private static void checkImplementationMethod(
- Class derbyImplementation, Method ifaceMethod)
+ Class<?> derbyImplementation, Method ifaceMethod)
throws NoSuchMethodException
{