[java-opensaml] 02/03: Avoid calling deprecated method in the owning class.
Brent Putman
putmanb at georgetown.edu
Fri Sep 28 22:53:00 EDT 2018
This is an automated email from the git hooks/post-receive script.
putmanb pushed a commit to branch master
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=0ab042f7ff21ea2d7821a75adb67d25dd0b0e974
commit 0ab042f7ff21ea2d7821a75adb67d25dd0b0e974
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Fri Sep 28 21:46:22 2018 -0400
Avoid calling deprecated method in the owning class.
Otherwise lots of DEPRECATED log output now via DeprecationSupport.
---
.../src/main/java/org/opensaml/messaging/context/BaseContext.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/opensaml-messaging-api/src/main/java/org/opensaml/messaging/context/BaseContext.java b/opensaml-messaging-api/src/main/java/org/opensaml/messaging/context/BaseContext.java
index c800228..5d3ca11 100644
--- a/opensaml-messaging-api/src/main/java/org/opensaml/messaging/context/BaseContext.java
+++ b/opensaml-messaging-api/src/main/java/org/opensaml/messaging/context/BaseContext.java
@@ -76,8 +76,6 @@ public abstract class BaseContext implements Iterable<BaseContext> {
/** Constructor. Generates a random context id. */
public BaseContext() {
subcontexts = new ClassIndexedSet<>();
-
- setAutoCreateSubcontexts(false);
}
/**
@@ -106,7 +104,7 @@ public abstract class BaseContext implements Iterable<BaseContext> {
* @return the held instance of the class, or null
*/
@Nullable public <T extends BaseContext> T getSubcontext(@Nonnull final Class<T> clazz) {
- return getSubcontext(clazz, isAutoCreateSubcontexts());
+ return getSubcontext(clazz, autoCreateSubcontexts);
}
/**
@@ -147,7 +145,7 @@ public abstract class BaseContext implements Iterable<BaseContext> {
*/
@Nullable public BaseContext getSubcontext(@Nonnull @NotEmpty final String className)
throws ClassNotFoundException {
- return getSubcontext(className, isAutoCreateSubcontexts());
+ return getSubcontext(className, autoCreateSubcontexts);
}
/**
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list