Skip to content
Permalink
Browse files
[JENKINS-38887] Findbugs for the win!
  • Loading branch information
stephenc committed Mar 9, 2017
1 parent e64517b commit 9ad33a639048898a594d77434a5bc80ec0411547
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/org/jenkinsci/plugins/workflow/support/steps/build/BuildTriggerStep.java
@@ -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;

0 comments on commit 9ad33a6

Please sign in to comment.