Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
Sonar warnings: Fix broken trim().
Browse files Browse the repository at this point in the history
  • Loading branch information
marchof committed Feb 10, 2012
1 parent 7b00da9 commit 44e0470
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ protected void createFormContent(IManagedForm managedForm) {
| SWT.ICON_CANCEL);
filter.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
((Text) e.widget).getText().trim();
triggerRefresh();
}
});
Expand Down Expand Up @@ -209,7 +208,7 @@ public RefreshJob() {
@Override
public IStatus runInUIThread(IProgressMonitor monitor) {
dataTableViewer.setFilters(new ViewerFilter[] { ExecutedClassesFilters
.fromPatternString(filter.getText()) });
.fromPatternString(filter.getText().trim()) });
return Status.OK_STATUS;
}
}
Expand Down

0 comments on commit 44e0470

Please sign in to comment.