Skip to content

Commit f9fc705

Browse files
committed
fix spotbugs
1 parent 9d97abb commit f9fc705

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

application/org.openjdk.jmc.ui.websocket/src/main/java/org/openjdk/jmc/ui/websocket/WebsocketPlugin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242
import org.eclipse.ui.plugin.AbstractUIPlugin;
4343
import org.openjdk.jmc.common.item.IItemCollection;
4444
import org.openjdk.jmc.ui.websocket.preferences.PreferenceConstants;
45-
import org.osgi.framework.BundleActivator;
4645
import org.osgi.framework.BundleContext;
4746

48-
public class WebsocketPlugin extends AbstractUIPlugin implements BundleActivator, IStartup {
47+
public class WebsocketPlugin extends AbstractUIPlugin implements IStartup {
4948

50-
private static final Logger LOGGER = Logger.getLogger(WebsocketPlugin.class.getName());
5149
public final static String PLUGIN_ID = "org.openjdk.jmc.ui.websocket"; //$NON-NLS-1$
50+
private static final Logger LOGGER = Logger.getLogger(PLUGIN_ID);
51+
5252
private static WebsocketPlugin plugin;
5353
private WebsocketServer server;
5454

configuration/spotbugs/spotbugs-exclude.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@
172172
<Class name="org.openjdk.jmc.rcp.application.p2.UpdateSiteURLToolkit"/>
173173
<!-- getLogger() -->
174174
<Class name="org.openjdk.jmc.rcp.logging.LoggingToolkit"/>
175+
<!-- getLogger() -->
176+
<Class name="org.openjdk.jmc.ui.websocket.WebsocketPlugin"/>
175177
</Or>
176178
<Bug pattern="MS_EXPOSE_REP" />
177179
</Match>

0 commit comments

Comments
 (0)