ICU-5445 Fix some default Ecplise warnings.
X-SVN-Rev: 21031
This commit is contained in:
parent
c419a71374
commit
dfd2a49eb8
@ -1,6 +1,6 @@
|
||||
/**
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2001-2006, International Business Machines Corporation and *
|
||||
* Copyright (C) 2001-2007, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
@ -56,7 +56,7 @@ public abstract class ModuleTest extends TestFmwk {
|
||||
if (testData != null) {
|
||||
try {
|
||||
Method method = getClass()
|
||||
.getMethod("processModules", null);
|
||||
.getMethod("processModules", (Class[])null);
|
||||
while (testData.hasNext()) {
|
||||
target = new MethodTarget(((TestData) testData.next())
|
||||
.getName(), method).setNext(target);
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2004-2005, International Business Machines Corporation and *
|
||||
* Copyright (C) 2004-2007, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
@ -126,8 +126,8 @@ public abstract class TestBoilerplate extends TestFmwk {
|
||||
protected Object _clone(Object a) throws Exception {
|
||||
Class aClass = a.getClass();
|
||||
try {
|
||||
Method cloner = aClass.getMethod("clone", null);
|
||||
return cloner.invoke(a,null);
|
||||
Method cloner = aClass.getMethod("clone", (Class[])null);
|
||||
return cloner.invoke(a,(Object[])null);
|
||||
} catch (NoSuchMethodException e) {
|
||||
Constructor constructor = aClass.getConstructor(new Class[] {aClass});
|
||||
return constructor.newInstance(new Object[]{a});
|
||||
|
@ -672,7 +672,7 @@ public class TestFmwk extends AbstractTestLog {
|
||||
Class cls = getClass();
|
||||
if (targetName != null) {
|
||||
try {
|
||||
Method method = cls.getMethod(targetName, null);
|
||||
Method method = cls.getMethod(targetName, (Class[])null);
|
||||
return new MethodTarget(targetName, method);
|
||||
} catch (NoSuchMethodException e) {
|
||||
return new Target(targetName); // invalid target
|
||||
|
@ -170,7 +170,7 @@ public abstract class PerfTest{
|
||||
}
|
||||
|
||||
try {
|
||||
Method m = refer.getClass().getDeclaredMethod(name,null);
|
||||
Method m = refer.getClass().getDeclaredMethod(name,(Class[])null);
|
||||
return (Function) m.invoke(refer, new Object[]{});
|
||||
} catch (Exception e) {
|
||||
throw new Error("TestPrefixProvider implementation error. Finding: " + name,e);
|
||||
|
Loading…
Reference in New Issue
Block a user