aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Tagir Valeev <Tagir.Valeev@jetbrains.com> 2021-04-17 09:56:13 +0700
committerGravatar Tagir Valeev <Tagir.Valeev@jetbrains.com> 2021-04-17 09:56:13 +0700
commit6e77cfd63f00bacc104d93c66fd1c5941243561f (patch)
tree50d9ce77fcdda61e043628e2f534f382a788c6ed
parent0747e17411fc932ab29da5181b4b526129b2f6da (diff)
downloadjdk-pr/3427.tar.gz
jdk-pr/3427.zip
adjustSize -> exactOutputSizepr/3427
-rw-r--r--src/java.base/share/classes/java/util/stream/AbstractPipeline.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java.base/share/classes/java/util/stream/AbstractPipeline.java b/src/java.base/share/classes/java/util/stream/AbstractPipeline.java
index 193579a910b..0eb59c20aa5 100644
--- a/src/java.base/share/classes/java/util/stream/AbstractPipeline.java
+++ b/src/java.base/share/classes/java/util/stream/AbstractPipeline.java
@@ -467,7 +467,7 @@ abstract class AbstractPipeline<E_IN, E_OUT, S extends BaseStream<E_OUT, S>>
@Override
final <P_IN> long exactOutputSizeIfKnown(Spliterator<P_IN> spliterator) {
long size = StreamOpFlag.SIZED.isKnown(getStreamAndOpFlags()) ? spliterator.getExactSizeIfKnown() : -1;
- return size == -1 ? size : adjustSize(size);
+ return size == -1 ? size : exactOutputSize(size);
}
/**