[java-opensaml] branch main updated: Cast warnings.

Scott Cantor cantor.2 at osu.edu
Tue Jan 26 16:52:32 UTC 2021


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=b2d99daef3276984c3cc95fd47aef44f12304a4a

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

commit b2d99daef3276984c3cc95fd47aef44f12304a4a
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Jan 26 11:52:30 2021 -0500

    Cast warnings.
---
 .../src/main/java/org/opensaml/storage/AbstractStorageService.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/opensaml-storage-api/src/main/java/org/opensaml/storage/AbstractStorageService.java b/opensaml-storage-api/src/main/java/org/opensaml/storage/AbstractStorageService.java
index 81985cb18..28b43c89f 100644
--- a/opensaml-storage-api/src/main/java/org/opensaml/storage/AbstractStorageService.java
+++ b/opensaml-storage-api/src/main/java/org/opensaml/storage/AbstractStorageService.java
@@ -141,7 +141,7 @@ public abstract class AbstractStorageService extends AbstractIdentifiableInitial
     public void setContextSize(@Positive final int size) {
         ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
 
-        contextSize = (int) Constraint.isGreaterThan(0, size, "Size must be greater than zero");
+        contextSize = Constraint.isGreaterThan(0, size, "Size must be greater than zero");
     }
 
     /**
@@ -152,7 +152,7 @@ public abstract class AbstractStorageService extends AbstractIdentifiableInitial
     public void setKeySize(@Positive final int size) {
         ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
 
-        keySize = (int) Constraint.isGreaterThan(0, size, "Size must be greater than zero");
+        keySize = Constraint.isGreaterThan(0, size, "Size must be greater than zero");
     }
 
     /**
@@ -163,7 +163,7 @@ public abstract class AbstractStorageService extends AbstractIdentifiableInitial
     public void setValueSize(@Positive final int size) {
         ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
 
-        valueSize = (int) Constraint.isGreaterThan(0, size, "Size must be greater than zero");
+        valueSize = Constraint.isGreaterThan(0, size, "Size must be greater than zero");
     }
 
     /** {@inheritDoc} */

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


More information about the commits mailing list