[java-shib-shared] branch main updated: Fix hidden local warning.
Scott Cantor
cantor.2 at osu.edu
Wed May 3 13:30:51 UTC 2023
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-shib-shared.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=9c7cdc4eb09e33181726618b2891cba04590ce52
The following commit(s) were added to refs/heads/main by this push:
new 9c7cdc4e Fix hidden local warning.
9c7cdc4e is described below
commit 9c7cdc4eb09e33181726618b2891cba04590ce52
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed May 3 09:30:24 2023 -0400
Fix hidden local warning.
---
.../shared/component/AbstractIdentifiedInitializableComponent.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/shib-support/src/main/java/net/shibboleth/shared/component/AbstractIdentifiedInitializableComponent.java b/shib-support/src/main/java/net/shibboleth/shared/component/AbstractIdentifiedInitializableComponent.java
index 8ae0c5cf..33a8c3cc 100644
--- a/shib-support/src/main/java/net/shibboleth/shared/component/AbstractIdentifiedInitializableComponent.java
+++ b/shib-support/src/main/java/net/shibboleth/shared/component/AbstractIdentifiedInitializableComponent.java
@@ -53,11 +53,11 @@ public abstract class AbstractIdentifiedInitializableComponent extends AbstractI
* @since 9.0.0
*/
public final @Nonnull String ensureId() {
- final var id = getId();
- if (id == null) {
+ final var idCopy = getId();
+ if (idCopy == null) {
throw new IllegalStateException();
}
- return id;
+ return idCopy;
}
/**
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list