Polish to remove warnings
This commit is contained in:
@@ -150,7 +150,6 @@ public class CredHubRequest<T> {
|
||||
/**
|
||||
* A builder that provides a fluent API for constructing {@link CredHubRequest}s.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
protected static abstract class CredHubRequestBuilder<T, R extends CredHubRequest<T>, B extends CredHubRequestBuilder<T, R, B>> {
|
||||
private final B thisObj;
|
||||
protected final R targetObj;
|
||||
|
||||
@@ -25,7 +25,6 @@ import java.util.Map;
|
||||
*
|
||||
* @author Scott Frederick
|
||||
*/
|
||||
@SuppressWarnings("javadoc")
|
||||
public class JsonCredential extends HashMap<String, Object> {
|
||||
/**
|
||||
* @see HashMap#HashMap()
|
||||
|
||||
@@ -65,6 +65,7 @@ public class ClientHttpRequestFactoryFactoryTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("deprecation")
|
||||
public void nettyClientCreated() throws Exception {
|
||||
ClientHttpRequestFactory factory = usingNetty(new ClientOptions());
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ public class CredHubCertificateTemplateUnitTests {
|
||||
public void bulkRegenerate() {
|
||||
Map<String, List<CredentialName>> expectedResponse =
|
||||
Collections.singletonMap(REGENERATED_CREDENTIALS_RESPONSE_FIELD,
|
||||
Arrays.<CredentialName>asList(
|
||||
Arrays.asList(
|
||||
new SimpleCredentialName("example-certificate1"),
|
||||
new SimpleCredentialName("example-certificate2")));
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ public abstract class CredHubRequestUnitTestsBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings({"unchecked", "deprecation"})
|
||||
@SuppressWarnings({"deprecation"})
|
||||
public void serializationWithThreePermissions() {
|
||||
requestBuilder
|
||||
.permission(Permission.builder()
|
||||
|
||||
Reference in New Issue
Block a user