This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-auth-core.git
The following commit(s) were added to refs/heads/master by this push:
new 40cc58e SLING-7731 - Call to addService is no longer needed for
modification events in SlingAuthenticatorServiceListener
40cc58e is described below
commit 40cc58ea520a06343525f676f475b5f47c367520
Author: Travis Estell <[email protected]>
AuthorDate: Wed Jun 17 01:19:15 2020 -0400
SLING-7731 - Call to addService is no longer needed for modification events
in SlingAuthenticatorServiceListener
---
.../apache/sling/auth/core/impl/SlingAuthenticatorServiceListener.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/src/main/java/org/apache/sling/auth/core/impl/SlingAuthenticatorServiceListener.java
b/src/main/java/org/apache/sling/auth/core/impl/SlingAuthenticatorServiceListener.java
index 53f591f..45a0bba 100644
---
a/src/main/java/org/apache/sling/auth/core/impl/SlingAuthenticatorServiceListener.java
+++
b/src/main/java/org/apache/sling/auth/core/impl/SlingAuthenticatorServiceListener.java
@@ -82,7 +82,7 @@ public class SlingAuthenticatorServiceListener implements
AllServiceListener {
// add requirements for newly registered services and for
// updated services
- if ((event.getType() & (ServiceEvent.REGISTERED |
ServiceEvent.MODIFIED)) != 0) {
+ if ((event.getType() & ServiceEvent.REGISTERED ) != 0) {
addService(event.getServiceReference());
}
}