Skip to content

Commit

Permalink
Collections.copy is dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
gudenau committed Sep 19, 2020
1 parent 891d0de commit e2d6041
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ public byte[] transformClassBytes(String name, String transformedName, byte[] ba
//FIXME, this is stupid
List<Transformer> transformers = this.transformers;
if(shouldBootstrap){
List<Transformer> newList = new ArrayList<>();
Collections.copy(newList, this.transformers);
List<Transformer> newList = new ArrayList<>(this.transformers);
newList.add(BOOTSTRAP_TRANSFORMER);
transformers = newList;
}
Expand Down

0 comments on commit e2d6041

Please sign in to comment.