ApplyService : Iteration can be replaced with bulk Collection.addAll()
call
#2971
Closed
2 tasks done
Labels
Milestone
Component
JKube Kit
Task description
Description
We have this code in ApplyService where we're iterating over a List and manually adding each element one by one:
jkube/jkube-kit/config/service/src/main/java/org/eclipse/jkube/kit/config/service/ApplyService.java
Lines 571 to 573 in d9d630b
We can use java.util.List.addAll method here to make this a one-liner instead.
Expected Behavior
for loop is replaced with
addAll
Acceptance Criteria
for
loop is replaced with list.addAll callmvn clean install
The text was updated successfully, but these errors were encountered: