From eddb2ad4c96a74a6f23d599d2aa216ed66b3ca2f Mon Sep 17 00:00:00 2001 From: Scott Frederick Date: Thu, 10 Aug 2017 13:47:18 -0500 Subject: [PATCH] Fix Javadoc warnings. --- .../springframework/credhub/core/CredHubOperations.java | 9 +++++++++ .../credhub/support/CredentialRequest.java | 2 ++ .../credhub/support/json/JsonCredential.java | 8 ++++++++ 3 files changed, 19 insertions(+) diff --git a/spring-credhub-core/src/main/java/org/springframework/credhub/core/CredHubOperations.java b/spring-credhub-core/src/main/java/org/springframework/credhub/core/CredHubOperations.java index 10308e1..7e24968 100644 --- a/spring-credhub-core/src/main/java/org/springframework/credhub/core/CredHubOperations.java +++ b/spring-credhub-core/src/main/java/org/springframework/credhub/core/CredHubOperations.java @@ -38,6 +38,7 @@ public interface CredHubOperations { * value. * * @param credentialRequest the credential to write to CredHub; must not be {@literal null} + * @param the credential implementation type * @return the details of the written credential */ CredentialDetails write(final CredentialRequest credentialRequest); @@ -48,6 +49,8 @@ public interface CredHubOperations { * * @param parametersRequest the parameters of the new credential to generate in CredHub; * must not be {@literal null} + * @param the credential implementation type + * @param

the credential parameter implementation type * @return the details of the generated credential */ CredentialDetails generate(ParametersRequest

parametersRequest); @@ -57,6 +60,7 @@ public interface CredHubOperations { * * @param id the ID of the credential; must not be {@literal null} * @param credentialType the type of the credential to be retrieved; must not be {@literal null} + * @param the credential implementation type * @return the details of the retrieved credential */ CredentialDetails getById(final String id, Class credentialType); @@ -67,6 +71,8 @@ public interface CredHubOperations { * including historical values. * * @param name the name of the credential; must not be {@literal null} + * @param credentialType the type of credential expected to be returned + * @param the credential implementation type * @return the details of the retrieved credential, including history */ List> getByName(final String name, Class credentialType); @@ -77,6 +83,8 @@ public interface CredHubOperations { * including historical values. * * @param name the name of the credential; must not be {@literal null} + * @param credentialType the type of credential expected to be returned + * @param the credential implementation type * @return the details of the retrieved credential, including history */ List> getByName(final CredentialName name, Class credentialType); @@ -186,6 +194,7 @@ public interface CredHubOperations { * by other methods. * * @param callback wrapper for the callback method + * @param the credential implementation type * @return the return value from the callback method */ T doWithRest(RestOperationsCallback callback); diff --git a/spring-credhub-core/src/main/java/org/springframework/credhub/support/CredentialRequest.java b/spring-credhub-core/src/main/java/org/springframework/credhub/support/CredentialRequest.java index 84e367e..102d289 100644 --- a/spring-credhub-core/src/main/java/org/springframework/credhub/support/CredentialRequest.java +++ b/spring-credhub-core/src/main/java/org/springframework/credhub/support/CredentialRequest.java @@ -36,6 +36,8 @@ public class CredentialRequest extends CredHubRequest { /** * Initialize a {@link CredentialRequest}. + * + * @param type the credential implementation type */ protected CredentialRequest(CredentialType type) { this.credentialType = type; diff --git a/spring-credhub-core/src/main/java/org/springframework/credhub/support/json/JsonCredential.java b/spring-credhub-core/src/main/java/org/springframework/credhub/support/json/JsonCredential.java index 653e65c..ad79bb7 100644 --- a/spring-credhub-core/src/main/java/org/springframework/credhub/support/json/JsonCredential.java +++ b/spring-credhub-core/src/main/java/org/springframework/credhub/support/json/JsonCredential.java @@ -25,6 +25,7 @@ import java.util.Map; * * @author Scott Frederick */ +@SuppressWarnings("javadoc") public class JsonCredential extends HashMap { /** * @see HashMap#HashMap() @@ -35,6 +36,8 @@ public class JsonCredential extends HashMap { /** * @see HashMap#HashMap(int) + * + * @param initialCapacity the initial capacity */ public JsonCredential(int initialCapacity) { super(initialCapacity); @@ -42,6 +45,9 @@ public class JsonCredential extends HashMap { /** * @see HashMap#HashMap(int, float) + * + * @param initialCapacity the initial capacity + * @param loadFactor the load factor */ public JsonCredential(int initialCapacity, float loadFactor) { super(initialCapacity, loadFactor); @@ -49,6 +55,8 @@ public class JsonCredential extends HashMap { /** * @see HashMap#HashMap(Map) + * + * @param m the map whose mappings are to be placed in this map */ public JsonCredential(Map m) { super(m);