diff options
author | Alexander Kurtakov | 2020-06-29 09:52:51 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2020-06-29 09:52:51 +0000 |
commit | c405301400ce35b558995ca360271d865441bdbc (patch) | |
tree | cb13e563d427409aa906c9585fb002b8c2d0902d | |
parent | 62dd11004a08ea3ab6620100494e9d07ef9e5f34 (diff) | |
download | rt.equinox.bundles-c405301400ce35b558995ca360271d865441bdbc.tar.gz rt.equinox.bundles-c405301400ce35b558995ca360271d865441bdbc.tar.xz rt.equinox.bundles-c405301400ce35b558995ca360271d865441bdbc.zip |
Bug 563987 - Provide a ServiceCaller for doing single-shot lookup ofY20200629-1000Y20200629-0740
OSGi services
Fix javadoc errors in the nightly build:
../../../rt.equinox.bundles/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/ServiceCaller.java:44:
error: bad use of '>'
* ServiceCaller.callOnce(MyClass.class, ILog.class, (logger) ->
logger.info("All systems go!"));
^
../../../rt.equinox.bundles/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/ServiceCaller.java:77:
error: bad use of '>'
* log.call(logger -> logger.info(msg);
^
2 errors
Change-Id: Ibf71f1dedfd8ea726a8d71db26b0aa9269bd4874
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r-- | bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/ServiceCaller.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/ServiceCaller.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/ServiceCaller.java index 483ff7c73..37f7570b1 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/ServiceCaller.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/ServiceCaller.java @@ -41,7 +41,7 @@ import org.osgi.util.tracker.ServiceTracker; * <p> * Single invocation example: * <pre> - * ServiceCaller.callOnce(MyClass.class, ILog.class, (logger) -> logger.info("All systems go!")); + * ServiceCaller.callOnce(MyClass.class, ILog.class, (logger) -> logger.info("All systems go!")); * </pre> * Note that it is generally more efficient to use a long-running service * utility, such as {@link ServiceTracker} or declarative services, but there @@ -74,7 +74,7 @@ import org.osgi.util.tracker.ServiceTracker; * <pre> * static final ServiceCaller<ILog> log = new ServiceCaller(MyClass.class, ILog.class); * static void info(String msg) { - * log.call(logger -> logger.info(msg); + * log.call(logger -> logger.info(msg); * } * </pre> * |