Skip to content

Commit

Permalink
Remove unnecessary "this." prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
travkin79 committed Aug 13, 2024
1 parent 6d2ab14 commit 33163ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*******************************************************************************/
package org.eclipse.lsp4e.outline;

import static org.eclipse.lsp4e.internal.NullSafetyHelper.*;
import static org.eclipse.lsp4e.internal.NullSafetyHelper.lateNonNull;

import java.net.URI;
import java.net.URISyntaxException;
Expand Down Expand Up @@ -267,7 +267,7 @@ public LSSymbolsContentProvider() {

public LSSymbolsContentProvider(boolean refreshOnResourceChanged) {
this.refreshOnResourceChanged = refreshOnResourceChanged;
this.preferencesDependantOutlineUpdater = new PreferencesChangedOutlineUpdater();
preferencesDependantOutlineUpdater = new PreferencesChangedOutlineUpdater();
}

@Override
Expand Down Expand Up @@ -318,10 +318,10 @@ private IOutlineUpdater createOutlineUpdater() {

@Override
public Object[] getElements(@Nullable Object inputElement) {
if (this.symbols != null && !this.symbols.isDone()) {
if (symbols != null && !symbols.isDone()) {
return new Object[] { new PendingUpdateAdapter() };
}
if (this.lastError != null && symbolsModel.getElements().length == 0) {
if (lastError != null && symbolsModel.getElements().length == 0) {
return new Object[] { "An error occured, see log for details" }; //$NON-NLS-1$
}
return Arrays.stream(symbolsModel.getElements())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ private static class HideSymbolKindAction extends Action {
HideSymbolKindAction(SymbolKind kind) {
super(kind.name(), IAction.AS_CHECK_BOX);
this.kind = kind;
this.setChecked(isHideSymbolKind(kind));
setChecked(isHideSymbolKind(kind));

Image img = LSPImages.imageFromSymbolKind(kind);
if (img != null) {
this.setImageDescriptor(ImageDescriptor.createFromImage(img));
setImageDescriptor(ImageDescriptor.createFromImage(img));
}
}

Expand Down

0 comments on commit 33163ab

Please sign in to comment.