Skip to content
Permalink
Browse files
Merge pull request #522 from mookkiah/sonarqube_20210101
sonarqube issue - static members should be accessed statically
  • Loading branch information
hansva committed Jan 2, 2021
2 parents 72c00fa + c8c9980 commit b9bf4195164ea206d90a6f1b64faad66ef211791
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
@@ -58,11 +58,11 @@ public BaseGuiWidgets(String instanceId) {
public void registerGuiPluginObject( Object guiPluginObject ) {
GuiRegistry guiRegistry = GuiRegistry.getInstance();
String guiPluginClassName = guiPluginObject.getClass().getName();
guiRegistry.registerGuiPluginObject( HopGui.getId(), guiPluginClassName, instanceId, guiPluginObject);
guiRegistry.registerGuiPluginObject( HopGui.getInstance().getId(), guiPluginClassName, instanceId, guiPluginObject);
}

protected void addDeRegisterGuiPluginObjectListener(Control control) {
control.addDisposeListener( e -> GuiRegistry.getInstance().removeGuiPluginObjects( HopGui.getId(), instanceId ) );
control.addDisposeListener( e -> GuiRegistry.getInstance().removeGuiPluginObjects( HopGui.getInstance().getId(), instanceId ) );
}

public void dispose() {
@@ -1559,8 +1559,8 @@ public void setOpeningLastFiles(boolean openingLastFiles) {
*
* @return value of id
*/
public static String getId() {
return getInstance().id;
public String getId() {
return id;
}

/**

0 comments on commit b9bf419

Please sign in to comment.