From e43ccf210dacbac1498ef0ef2c342edb249f3ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Kubitz?= Date: Thu, 9 Nov 2023 08:50:42 +0100 Subject: [PATCH] Weaving: fix javadoc --- .../weaving/hooks/AbstractWeavingHook.java | 10 ++++----- .../equinox/weaving/hooks/WeavingHook.java | 21 ++++++------------- 2 files changed, 11 insertions(+), 20 deletions(-) diff --git a/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/AbstractWeavingHook.java b/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/AbstractWeavingHook.java index 24a279302a8..12106e857cb 100644 --- a/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/AbstractWeavingHook.java +++ b/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/AbstractWeavingHook.java @@ -7,10 +7,10 @@ * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 - * + * * Contributors: * Matthew Webster initial implementation - * Martin Lippert supplementing mechanism reworked + * Martin Lippert supplementing mechanism reworked *******************************************************************************/ package org.eclipse.equinox.weaving.hooks; @@ -27,7 +27,7 @@ /** * Default implementation of all the necessary adaptor hooks. Used to keep the * real hook implementation focused on only the necessary methods. - * + * * @author Matthew Webster * @author Martin Lippert */ @@ -42,7 +42,7 @@ public abstract class AbstractWeavingHook extends ClassLoaderHook implements Hoo private ISupplementerRegistry supplementerRegistry; /** - * @see org.eclipse.osgi.baseadaptor.HookConfigurator#addHooks(org.eclipse.osgi.baseadaptor.HookRegistry) + * @see org.eclipse.osgi.internal.hookregistry.HookConfigurator#addHooks(HookRegistry) */ public void addHooks(final HookRegistry hooks) { if (verbose) @@ -67,7 +67,7 @@ public BundleActivator createActivator() { /** * Their is only one registry for dealing with supplementers available via this * accessor method. - * + * * @return The supplementer registry, guaranteed to be not null */ public ISupplementerRegistry getSupplementerRegistry() { diff --git a/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/WeavingHook.java b/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/WeavingHook.java index d88425e01b9..3c25ab67b4a 100644 --- a/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/WeavingHook.java +++ b/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/weaving/hooks/WeavingHook.java @@ -140,10 +140,8 @@ private void initialize(final BundleContext context) { } /** - * @see org.eclipse.equinox.weaving.hooks.AbstractWeavingHook#processClass(java.lang.String, - * byte[], org.eclipse.osgi.baseadaptor.loader.ClasspathEntry, - * org.eclipse.osgi.baseadaptor.bundlefile.BundleEntry, - * org.eclipse.osgi.baseadaptor.loader.ClasspathManager) + * @see org.eclipse.equinox.weaving.hooks.AbstractWeavingHook#processClass(String, + * byte[], ClasspathEntry, BundleEntry, ClasspathManager) */ @Override public byte[] processClass(final String name, final byte[] classbytes, final ClasspathEntry classpathEntry, @@ -160,11 +158,8 @@ public byte[] processClass(final String name, final byte[] classbytes, final Cla } /** - * @see org.eclipse.equinox.weaving.hooks.AbstractWeavingHook#recordClassDefine(java.lang.String, - * java.lang.Class, byte[], - * org.eclipse.osgi.baseadaptor.loader.ClasspathEntry, - * org.eclipse.osgi.baseadaptor.bundlefile.BundleEntry, - * org.eclipse.osgi.baseadaptor.loader.ClasspathManager) + * @see org.eclipse.equinox.weaving.hooks.AbstractWeavingHook#recordClassDefine(String, + * Class, byte[], ClasspathEntry, BundleEntry, ClasspathManager) */ @Override public void recordClassDefine(final String name, final Class clazz, final byte[] classbytes, @@ -190,16 +185,12 @@ public void resetAdaptor(final long bundleID) { this.adaptors.remove(bundleID); } - /** - * @see org.eclipse.equinox.weaving.hooks.AbstractWeavingHook#frameworkStart(org.osgi.framework.BundleContext) - */ + @Override public void start(final BundleContext context) throws BundleException { initialize(context); } - /** - * @see org.eclipse.equinox.weaving.hooks.AbstractWeavingHook#frameworkStop(org.osgi.framework.BundleContext) - */ + @Override public void stop(final BundleContext context) throws BundleException { adaptorFactory.dispose(context); }