Skip to content

Commit

Permalink
Appease PMD (wpilibsuite#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamCarlberg authored and PeterJohnson committed Jan 4, 2018
1 parent c9f8702 commit 6c2bf60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public void addComponentFor(DataSource<?> source) {
// Remove redundant source name information from the title, if necessary
String sourcePrefix = getSourcePrefix();
sourcePrefix = sourcePrefix.endsWith("/") ? sourcePrefix : sourcePrefix + "/";
if (!sourcePrefix.equals("/") && c.getTitle().startsWith(sourcePrefix)) {
if (!"/".equals(sourcePrefix) && c.getTitle().startsWith(sourcePrefix)) {
c.setTitle(c.getTitle().substring(sourcePrefix.length()));
}
getWidgetPane().addComponent(c);
Expand Down

0 comments on commit 6c2bf60

Please sign in to comment.