Skip to content

Commit

Permalink
[JENKINS-28287] Fixed @copyonwrite semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
daspilker committed May 7, 2015
1 parent 6133b34 commit bf9b055
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/hudson/plugins/groovy/Groovy.java
Expand Up @@ -186,10 +186,11 @@ public static hudson.plugins.groovy.GroovyInstallation getGroovy(String groovyNa

public void setInstallations(hudson.plugins.groovy.GroovyInstallation... installations) {
//this.installations = installations;
this.installations2 = new ArrayList<hudson.plugins.groovy.GroovyInstallation>();
List<hudson.plugins.groovy.GroovyInstallation> installations2 = new ArrayList<hudson.plugins.groovy.GroovyInstallation>();
for(hudson.plugins.groovy.GroovyInstallation install: installations){
this.installations2.add(install);
installations2.add(install);
}
this.installations2 = installations2;
save();
}

Expand Down

0 comments on commit bf9b055

Please sign in to comment.