Permalink
Browse files

[JENKINS-25002] Added a java comment explaining the use of the limit …

…on the split function
  • Loading branch information...
mrdfuse committed Oct 7, 2014
1 parent 4081439 commit c0e0fe33227af2c709563fb45d441df28fb13dbe
Showing with 1 addition and 0 deletions.
  1. +1 −0 plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java
@@ -81,6 +81,7 @@ public void doCreateSlave(StaplerRequest req, StaplerResponse rsp, @QueryParamet
String[] toolLocsArray = toolLocations.split(" ");
for (String toolLocKeyValue : toolLocsArray) {
boolean found = false;
// limit the split on only the first occurence of ':', so that the tool location path can contain ':' characters
String[] toolLoc = toolLocKeyValue.split(":", 2);

for (ToolDescriptor<?> desc : ToolInstallation.all()) {

0 comments on commit c0e0fe3

Please sign in to comment.