[java-identity-provider COMMIT] /trunk/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver...
noreply at shibboleth.net
noreply at shibboleth.net
Sun Oct 2 11:05:12 EDT 2016
Author: rdw
Date: Sun Oct 2 11:05:11 2016
New Revision: 8446
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=8446&view=rev
Log:
IDP-1047 Add parameter name annotation to api class
https://issues.shibboleth.net/jira/browse/IDP-1047
Modified:
trunk/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver/ResolverPluginDependency.java
Modified: trunk/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver/ResolverPluginDependency.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver/ResolverPluginDependency.java?rev=8446&r1=8445&r2=8446&view=diff
==============================================================================
--- trunk/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver/ResolverPluginDependency.java (original)
+++ trunk/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver/ResolverPluginDependency.java Sun Oct 2 11:05:11 2016
@@ -21,6 +21,7 @@
import javax.annotation.Nullable;
import javax.annotation.concurrent.ThreadSafe;
+import net.shibboleth.utilities.java.support.annotation.ParameterName;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
import net.shibboleth.utilities.java.support.logic.Constraint;
import net.shibboleth.utilities.java.support.primitive.StringSupport;
@@ -47,7 +48,7 @@
*
* @param pluginId ID of the plugin that will produce the attribute, never null or empty
*/
- public ResolverPluginDependency(@Nonnull @NotEmpty final String pluginId) {
+ public ResolverPluginDependency(@Nonnull @NotEmpty @ParameterName(name="pluginId") final String pluginId) {
dependencyPluginId =
Constraint.isNotNull(StringSupport.trimOrNull(pluginId),
"Dependency plugin ID may not be null or empty");
@@ -84,11 +85,13 @@
}
/** {@inheritDoc} */
+ @Override
public int hashCode() {
return Objects.hashCode(dependencyPluginId, dependencyAttributeId);
}
/** {@inheritDoc} */
+ @Override
public boolean equals(final Object obj) {
if (this == obj) {
return true;
@@ -112,6 +115,7 @@
}
/** {@inheritDoc} */
+ @Override
public String toString() {
return MoreObjects.toStringHelper(this).add("pluginId", dependencyPluginId)
.add("attributeId", dependencyAttributeId).toString();
More information about the commits
mailing list