Skip to content

Commit

Permalink
[JENKINS-38887] Findbugs for the win!
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc committed Mar 9, 2017
1 parent e64517b commit 9ad33a6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -180,9 +180,9 @@ private String contextualNameOf(Item i) {
if (value.startsWith("/"))
new Visitor("/").onItemGroup(Jenkins.getInstance());

for (String p = "../"; value.startsWith(p); p += "../") {
for (StringBuilder p = new StringBuilder("../"); value.startsWith(p.toString()); p .append("../")) {
container = ((Item) container).getParent();
new Visitor(p).onItemGroup(container);
new Visitor(p.toString()).onItemGroup(container);
}
}
return candidates;
Expand Down

0 comments on commit 9ad33a6

Please sign in to comment.