Skip to content

Commit

Permalink
Merge pull request #5922 from pkriens/issue/5919-wrong-api-usage
Browse files Browse the repository at this point in the history
setIncludeResource used removeAll
  • Loading branch information
pkriens authored Dec 4, 2023
2 parents c47e589 + 618a0b3 commit 082bdf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion biz.aQute.bndlib/src/aQute/bnd/build/model/BndEditModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -1190,8 +1190,10 @@ public List<String> getIncludeResource() {
.collect(toList());
}

@Deprecated
public void setIncludeResource(List<String> newEntries) {
List<String> resourceEntries1 = getEntries(Constants.INCLUDERESOURCE, listConverter);
List<String> resourceEntries1 = getEntries(Constants.INCLUDERESOURCE, listConverter).stream()
.toList();
List<String> resourceEntries2 = getEntries(Constants.INCLUDE_RESOURCE, listConverter);

Set<String> resourceEntries = Stream.concat(resourceEntries1.stream(), resourceEntries2.stream())
Expand Down

0 comments on commit 082bdf2

Please sign in to comment.