use lambda instead of sub class

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872475 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2020-01-07 23:05:47 +00:00
parent d1a714f5f1
commit f776ddfbbb
1 changed files with 4 additions and 11 deletions

View File

@ -139,13 +139,6 @@ public final class PackagePartCollection implements Serializable {
return packagePartLookup.keySet().stream()
.mapToInt(indexFromName)
.collect(MySparseBitSet::new, MySparseBitSet::set, MySparseBitSet::myOr).nextClearBit(1);
}
private class MySparseBitSet extends SparseBitSet {
public void myOr(MySparseBitSet other) {
this.or(other);
}
.collect(SparseBitSet::new, SparseBitSet::set, (s1,s2) -> s1.or(s2)).nextClearBit(1);
}
}