You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 10:22:01 UTC
[sling-org-apache-sling-testing-sling-mock] 11/19: cosmetic code
formatting changes
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.testing.sling-mock-1.2.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-sling-mock.git
commit 4f551c1b2f550131dad2755aea1181c63e2915d7
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Wed Feb 18 23:41:06 2015 +0000
cosmetic code formatting changes
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/testing/mocks/sling-mock@1660766 13f79535-47bb-0310-9956-ffa450edef68
---
.../org/apache/sling/testing/mock/sling/MockAdapterManager.java | 3 +--
.../sling/testing/mock/sling/services/MockModelAdapterFactory.java | 6 ++----
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/main/java/org/apache/sling/testing/mock/sling/MockAdapterManager.java b/src/main/java/org/apache/sling/testing/mock/sling/MockAdapterManager.java
index 60b2082..a75d131 100644
--- a/src/main/java/org/apache/sling/testing/mock/sling/MockAdapterManager.java
+++ b/src/main/java/org/apache/sling/testing/mock/sling/MockAdapterManager.java
@@ -45,8 +45,7 @@ class MockAdapterManager implements AdapterManager {
// iterate over all adapter factories and try to adapt the object
if (this.bundleContext != null) {
try {
- ServiceReference[] references = bundleContext
- .getServiceReferences(AdapterFactory.class.getName(), null);
+ ServiceReference[] references = bundleContext.getServiceReferences(AdapterFactory.class.getName(), null);
for (ServiceReference serviceReference : references) {
AdapterFactory adapterFactory = (AdapterFactory) bundleContext.getService(serviceReference);
AdapterType instance = adapterFactory.getAdapter(adaptable, type);
diff --git a/src/main/java/org/apache/sling/testing/mock/sling/services/MockModelAdapterFactory.java b/src/main/java/org/apache/sling/testing/mock/sling/services/MockModelAdapterFactory.java
index c116b18..149ff27 100644
--- a/src/main/java/org/apache/sling/testing/mock/sling/services/MockModelAdapterFactory.java
+++ b/src/main/java/org/apache/sling/testing/mock/sling/services/MockModelAdapterFactory.java
@@ -66,10 +66,8 @@ public final class MockModelAdapterFactory extends ModelAdapterFactory {
bundleContext = componentContext.getBundleContext();
// register service listener to collect injectors
- // this allows detecting injectors even if they are registered after
- // this bundle
- // (which is otherwise currently not supported in the osgi mock
- // environment)
+ // this allows detecting injectors even if they are registered after this bundle
+ // (which is otherwise currently not supported in the osgi mock environment)
bundleContext.addServiceListener(new InjectorServiceListener());
// activate service in simulated OSGi environment
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.