From 84e512223229b2d54e1a04b7899f888732c8fdba Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Thu, 12 Jan 2012 23:25:43 -0600 Subject: Added generics (part 2). This patch brings down the warnings from 4648 to 3992. Ticket #2 --- .../common/test/com/netscape/certsrv/request/AgentApprovalsTest.java | 2 +- pki/base/common/test/com/netscape/cmscore/dbs/DBRegistryTest.java | 2 +- .../test/com/netscape/cmscore/request/DBDynAttrMapperDefaultStub.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'pki/base/common/test') diff --git a/pki/base/common/test/com/netscape/certsrv/request/AgentApprovalsTest.java b/pki/base/common/test/com/netscape/certsrv/request/AgentApprovalsTest.java index 0cd27840d..8770dca2b 100644 --- a/pki/base/common/test/com/netscape/certsrv/request/AgentApprovalsTest.java +++ b/pki/base/common/test/com/netscape/certsrv/request/AgentApprovalsTest.java @@ -34,7 +34,7 @@ public class AgentApprovalsTest extends CMSBaseTestCase { agentApprovals.mVector.add(approval2); agentApprovals.mVector.add(approval3); - Vector stringVector = agentApprovals.toStringVector(); + Vector stringVector = agentApprovals.toStringVector(); assertNotNull(stringVector); assertEquals(3, stringVector.size()); assertEquals(approval1.getDate().getTime() + ";" + approval1.getUserName(), diff --git a/pki/base/common/test/com/netscape/cmscore/dbs/DBRegistryTest.java b/pki/base/common/test/com/netscape/cmscore/dbs/DBRegistryTest.java index b76cfd78c..c74f66ba1 100644 --- a/pki/base/common/test/com/netscape/cmscore/dbs/DBRegistryTest.java +++ b/pki/base/common/test/com/netscape/cmscore/dbs/DBRegistryTest.java @@ -168,7 +168,7 @@ class RequestRecordStub extends RequestRecordDefaultStub { return "foo"; } - public Enumeration getSerializableAttrNames() { + public Enumeration getSerializableAttrNames() { getSerializedAttrNamesCalled = true; return Collections.enumeration(Arrays.asList(attrs)); } diff --git a/pki/base/common/test/com/netscape/cmscore/request/DBDynAttrMapperDefaultStub.java b/pki/base/common/test/com/netscape/cmscore/request/DBDynAttrMapperDefaultStub.java index 6f3bf7fe3..cccbe600f 100644 --- a/pki/base/common/test/com/netscape/cmscore/request/DBDynAttrMapperDefaultStub.java +++ b/pki/base/common/test/com/netscape/cmscore/request/DBDynAttrMapperDefaultStub.java @@ -16,7 +16,7 @@ public class DBDynAttrMapperDefaultStub implements IDBDynAttrMapper { return false; } - public Enumeration getSupportedLDAPAttributeNames() { + public Enumeration getSupportedLDAPAttributeNames() { return null; } -- cgit