[java-opensaml] branch main updated: Checkstyle.

Scott Cantor cantor.2 at osu.edu
Tue Feb 27 14:31:09 UTC 2024


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-opensaml.

View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=b9e1ebd93543b811e753a365af8ca86d54c4c4e3

The following commit(s) were added to refs/heads/main by this push:
     new b9e1ebd93 Checkstyle.
b9e1ebd93 is described below

commit b9e1ebd93543b811e753a365af8ca86d54c4c4e3
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Feb 27 09:31:06 2024 -0500

    Checkstyle.
---
 .../metadata/impl/RoleDescriptorXSAnyAdapter.java   | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/metadata/impl/RoleDescriptorXSAnyAdapter.java b/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/metadata/impl/RoleDescriptorXSAnyAdapter.java
index 3416c5d28..890dc5823 100644
--- a/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/metadata/impl/RoleDescriptorXSAnyAdapter.java
+++ b/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/metadata/impl/RoleDescriptorXSAnyAdapter.java
@@ -340,7 +340,7 @@ public class RoleDescriptorXSAnyAdapter extends AbstractXSAnyAdapter implements
      * Synchronize the instance's local child element storage back to the adapted instance of {@link XSAny}.
      */
     private void syncChildren() {
-        List<XMLObject> children = new LinkedList<>();
+        final List<XMLObject> children = new LinkedList<>();
         
         if (getSignature() != null) {
             children.add(getSignature());
@@ -373,7 +373,6 @@ public class RoleDescriptorXSAnyAdapter extends AbstractXSAnyAdapter implements
     }
     
     /**
-     *
      * Array implementation which causes all XMLObject children of the owning instance to be synced back to the
      * underlying adapted {@link XSAny} on any list mutation operations.
      * 
@@ -396,7 +395,7 @@ public class RoleDescriptorXSAnyAdapter extends AbstractXSAnyAdapter implements
         /** {@inheritDoc} */
         @Override
         public T set(final int index, final T element) {
-            T result = storage.set(index, element);
+            final T result = storage.set(index, element);
             syncChildren();
             return result;
         }
@@ -404,7 +403,7 @@ public class RoleDescriptorXSAnyAdapter extends AbstractXSAnyAdapter implements
         /** {@inheritDoc} */
         @Override
         public boolean add(final T e) {
-            boolean result = storage.add(e);
+            final boolean result = storage.add(e);
             syncChildren();
             return result;
         }
@@ -419,7 +418,7 @@ public class RoleDescriptorXSAnyAdapter extends AbstractXSAnyAdapter implements
         /** {@inheritDoc} */
         @Override
         public T remove(final int index) {
-            T result = storage.remove(index);
+            final T result = storage.remove(index);
             syncChildren();
             return result;
         }
@@ -427,7 +426,7 @@ public class RoleDescriptorXSAnyAdapter extends AbstractXSAnyAdapter implements
         /** {@inheritDoc} */
         @Override
         public boolean remove(final Object o) {
-            boolean result = storage.remove(o);
+            final boolean result = storage.remove(o);
             syncChildren();
             return result;
         }
@@ -442,7 +441,7 @@ public class RoleDescriptorXSAnyAdapter extends AbstractXSAnyAdapter implements
         /** {@inheritDoc} */
         @Override
         public boolean addAll(final Collection<? extends T> c) {
-            boolean result = storage.addAll(c);
+            final boolean result = storage.addAll(c);
             syncChildren();
             return result;
         }
@@ -450,7 +449,7 @@ public class RoleDescriptorXSAnyAdapter extends AbstractXSAnyAdapter implements
         /** {@inheritDoc} */
         @Override
         public boolean addAll(final int index, final Collection<? extends T> c) {
-            boolean result = storage.addAll(index, c);
+            final boolean result = storage.addAll(index, c);
             syncChildren();
             return result;
         }
@@ -458,7 +457,7 @@ public class RoleDescriptorXSAnyAdapter extends AbstractXSAnyAdapter implements
         /** {@inheritDoc} */
         @Override
         public boolean removeAll(final Collection<?> c) {
-            boolean result = storage.removeAll(c);
+            final boolean result = storage.removeAll(c);
             syncChildren();
             return result;
         }
@@ -466,7 +465,7 @@ public class RoleDescriptorXSAnyAdapter extends AbstractXSAnyAdapter implements
         /** {@inheritDoc} */
         @Override
         public boolean retainAll(final Collection<?> c) {
-            boolean result = storage.retainAll(c);
+            final boolean result = storage.retainAll(c);
             syncChildren();
             return result;
         }
@@ -474,7 +473,7 @@ public class RoleDescriptorXSAnyAdapter extends AbstractXSAnyAdapter implements
         /** {@inheritDoc} */
         @Override
         public boolean removeIf(final Predicate<? super T> filter) {
-            boolean result = storage.removeIf(filter);
+            final boolean result = storage.removeIf(filter);
             syncChildren();
             return result;
         }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list