[java-support] branch master updated: Fix warnings.

Scott Cantor cantor.2 at osu.edu
Thu Apr 2 13:32:30 EDT 2020


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

scantor pushed a commit to branch master
in repository java-support.

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

The following commit(s) were added to refs/heads/master by this push:
       new  434094f   Fix warnings.
434094f is described below

commit 434094f24faf7d52b09954e548783e1fc33e6012
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Apr 2 13:32:25 2020 -0400

    Fix warnings.
---
 .../support/security/impl/RandomIdentifierGenerationStrategy.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/net/shibboleth/utilities/java/support/security/impl/RandomIdentifierGenerationStrategy.java b/src/main/java/net/shibboleth/utilities/java/support/security/impl/RandomIdentifierGenerationStrategy.java
index 102b4c4..7723701 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/security/impl/RandomIdentifierGenerationStrategy.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/security/impl/RandomIdentifierGenerationStrategy.java
@@ -71,7 +71,7 @@ public class RandomIdentifierGenerationStrategy implements IdentifierGenerationS
         try {
             random = SecureRandom.getInstance("SHA1PRNG");
             sizeOfIdentifier =
-                    (int) Constraint.isGreaterThan(0, identifierSize,
+                    Constraint.isGreaterThan(0, identifierSize,
                             "Number of bytes in the identifier must be greater than 0");
             encoder = new Hex();
         } catch (final NoSuchAlgorithmException e) {
@@ -90,7 +90,7 @@ public class RandomIdentifierGenerationStrategy implements IdentifierGenerationS
             @Nonnull final BinaryEncoder identifierEncoder) {
         random = Constraint.isNotNull(source, "Random number source can not be null");
         sizeOfIdentifier =
-                (int) Constraint.isGreaterThan(0, identifierSize,
+                Constraint.isGreaterThan(0, identifierSize,
                         "Number of bytes in the identifier must be greater than 0");
         encoder = Constraint.isNotNull(identifierEncoder, "Identifier is encoder can not be null");
     }

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


More information about the commits mailing list