[java-shib-attribute] branch main updated: Fix some warnings.
Scott Cantor
cantor.2 at osu.edu
Tue Aug 27 14:37:46 UTC 2024
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-shib-attribute.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-attribute.git;a=commit;h=d8d8e6fe8612e00c4baf35a5e6a467493dbdff38
The following commit(s) were added to refs/heads/main by this push:
new d8d8e6fe8 Fix some warnings.
d8d8e6fe8 is described below
commit d8d8e6fe8612e00c4baf35a5e6a467493dbdff38
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Aug 27 10:37:43 2024 -0400
Fix some warnings.
---
.../attribute/resolver/impl/AttributeResolverImpl.java | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/shib-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverImpl.java b/shib-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverImpl.java
index d5163c74f..ec82e7e33 100644
--- a/shib-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverImpl.java
+++ b/shib-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverImpl.java
@@ -179,7 +179,7 @@ public class AttributeResolverImpl extends AbstractIdentifiableInitializableComp
*
* @throws ResolutionException thrown if there is a problem resolving the attributes for the subject
*/
- // CheckStyle: CyclomaticComplexity OFF
+// CheckStyle: CyclomaticComplexity|MethodLength OFF
@Override
public void resolveAttributes(@Nonnull final AttributeResolutionContext resolutionContext)
throws ResolutionException {
@@ -217,12 +217,12 @@ public class AttributeResolverImpl extends AbstractIdentifiableInitializableComp
hasExportingDataConnector = true;
boolean resolve = noAttributesRequested(resolutionContext);
if (!resolve) {
- for (String exportedAttributeId : exportAttributes) {
- resolve = attributeIds.contains(exportedAttributeId);
- if (resolve) {
- break;
- }
- }
+ for (final String exportedAttributeId : exportAttributes) {
+ resolve = attributeIds.contains(exportedAttributeId);
+ if (resolve) {
+ break;
+ }
+ }
}
if (resolve) {
final String key = dataConnectorEntry.getKey();
@@ -259,7 +259,7 @@ public class AttributeResolverImpl extends AbstractIdentifiableInitializableComp
}
}
}
- // CheckStyle: CyclomaticComplexity ON
+// CheckStyle: CyclomaticComplexity|MethodLength ON
/**
* Gets the list of attributes, identified by IDs, that should be resolved. If the
@@ -290,7 +290,7 @@ public class AttributeResolverImpl extends AbstractIdentifiableInitializableComp
*/
protected boolean noAttributesRequested(@Nonnull final AttributeResolutionContext resolutionContext) {
Constraint.isNotNull(resolutionContext, "Attribute resolution context cannot be null");
- return resolutionContext.getRequestedIdPAttributeNames().isEmpty();
+ return resolutionContext.getRequestedIdPAttributeNames().isEmpty();
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list