[java-metadata-aggregator] branch main updated: JSSH-27 - Move ensureId upstreaam
Ian Young
ian at iay.org.uk
Fri Apr 21 16:18:19 UTC 2023
This is an automated email from the git hooks/post-receive script.
iay pushed a commit to branch main
in repository java-metadata-aggregator.
View the commit online:
http://git.shibboleth.net/view/?p=java-metadata-aggregator.git;a=commit;h=ccd588fb57f121593e7e43308c0d3256ec36adc5
The following commit(s) were added to refs/heads/main by this push:
new ccd588f JSSH-27 - Move ensureId upstreaam
ccd588f is described below
commit ccd588fb57f121593e7e43308c0d3256ec36adc5
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Fri Apr 21 17:18:13 2023 +0100
JSSH-27 - Move ensureId upstreaam
https://shibboleth.atlassian.net/browse/JSSH-27
---
.../shibboleth/metadata/pipeline/AbstractStage.java | 19 -------------------
.../shibboleth/metadata/validate/BaseValidator.java | 19 -------------------
2 files changed, 38 deletions(-)
diff --git a/mda-framework/src/main/java/net/shibboleth/metadata/pipeline/AbstractStage.java b/mda-framework/src/main/java/net/shibboleth/metadata/pipeline/AbstractStage.java
index 2a84308..c18fb04 100644
--- a/mda-framework/src/main/java/net/shibboleth/metadata/pipeline/AbstractStage.java
+++ b/mda-framework/src/main/java/net/shibboleth/metadata/pipeline/AbstractStage.java
@@ -79,25 +79,6 @@ public abstract class AbstractStage<T> extends AbstractIdentifiableInitializable
}
}
- /**
- * Return the ID of this component, guaranteeing a non-<code>null</code>
- * result.
- *
- * @return the ID of this component, never <code>null</code>
- * @throws IllegalStateException if called before the ID has been set
- *
- * @see #getId()
- *
- * @since 0.10.0
- */
- protected final @Nonnull String ensureId() {
- final var id = getId();
- if (id == null) {
- throw new IllegalStateException();
- }
- return id;
- }
-
/**
* Performs the stage processing on the given Item collection.
*
diff --git a/mda-framework/src/main/java/net/shibboleth/metadata/validate/BaseValidator.java b/mda-framework/src/main/java/net/shibboleth/metadata/validate/BaseValidator.java
index a93e320..4f778d9 100644
--- a/mda-framework/src/main/java/net/shibboleth/metadata/validate/BaseValidator.java
+++ b/mda-framework/src/main/java/net/shibboleth/metadata/validate/BaseValidator.java
@@ -151,23 +151,4 @@ public abstract class BaseValidator extends AbstractIdentifiableInitializableCom
addError(mess, item, stageId);
}
- /**
- * Return the ID of this component, guaranteeing a non-<code>null</code>
- * result.
- *
- * @return the ID of this component, never <code>null</code>
- * @throws IllegalStateException if called before the ID has been set
- *
- * @see #getId()
- *
- * @since 0.10.0
- */
- protected final @Nonnull String ensureId() {
- final var id = getId();
- if (id == null) {
- throw new IllegalStateException();
- }
- return id;
- }
-
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list