mirror of https://github.com/apache/poi.git
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:
parent
d1a714f5f1
commit
f776ddfbbb
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue