Skip to content

Commit

Permalink
remove warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
  • Loading branch information
chrisrueger committed Dec 5, 2023
1 parent 6d8df15 commit 71edceb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public class CapReqMapContentProvider implements ITreeContentProvider {

private final Comparator<Object> comparator = new CapReqComparator();

private String rawFilter;
private String wildcardFilter = null;

@Override
Expand Down Expand Up @@ -118,7 +117,6 @@ public Object[] getChildren(Object parent) {
}

public void setFilter(String filterString) {
this.rawFilter = filterString;
if (filterString == null || filterString.length() == 0 || filterString.trim()
.equals("*"))
wildcardFilter = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,10 @@ public class ResolutionView extends ViewPart implements ISelectionListener, IRes
private final FilterPanelPart reqsFilterPart = new FilterPanelPart(
Plugin.getDefault()
.getScheduler());
private Control reqsFilterPanel;

private final FilterPanelPart capsFilterPart = new FilterPanelPart(
Plugin.getDefault()
.getScheduler());
private Control capsFilterPanel;

private CapReqMapContentProvider reqsContentProvider;
private CapReqMapContentProvider capsContentProvider;
Expand Down Expand Up @@ -230,7 +228,7 @@ public void createPartControl(Composite parent) {
reqsLayout.marginHeight = 0;
reqsLayout.verticalSpacing = 2;
reqsPanel.setLayout(reqsLayout);
reqsFilterPanel = reqsFilterPart.createControl(reqsPanel, 5, 5);
Control reqsFilterPanel = reqsFilterPart.createControl(reqsPanel, 5, 5);
reqsFilterPart.addPropertyChangeListener(event -> {
String filter = (String) event.getNewValue();
updateReqsFilter(filter);
Expand Down Expand Up @@ -265,7 +263,7 @@ public void createPartControl(Composite parent) {
capsLayout.marginHeight = 0;
capsLayout.verticalSpacing = 2;
capsPanel.setLayout(capsLayout);
capsFilterPanel = capsFilterPart.createControl(capsPanel, 5, 5);
Control capsFilterPanel = capsFilterPart.createControl(capsPanel, 5, 5);
capsFilterPart.addPropertyChangeListener(event -> {
String filter = (String) event.getNewValue();
updateCapsFilter(filter);
Expand Down

0 comments on commit 71edceb

Please sign in to comment.