Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
ba39efdf
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
3
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ba39efdf
编写于
1月 21, 2014
作者:
P
psandoz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8032190: Specifications of stream flatMap methods should require mapped streams to be closed
Reviewed-by: chegar, alanb
上级
2219b2bc
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
37 addition
and
30 deletion
+37
-30
src/share/classes/java/util/stream/DoubleStream.java
src/share/classes/java/util/stream/DoubleStream.java
+5
-4
src/share/classes/java/util/stream/IntStream.java
src/share/classes/java/util/stream/IntStream.java
+5
-4
src/share/classes/java/util/stream/LongStream.java
src/share/classes/java/util/stream/LongStream.java
+5
-4
src/share/classes/java/util/stream/Stream.java
src/share/classes/java/util/stream/Stream.java
+22
-18
未找到文件。
src/share/classes/java/util/stream/DoubleStream.java
浏览文件 @
ba39efdf
...
@@ -150,10 +150,11 @@ public interface DoubleStream extends BaseStream<Double, DoubleStream> {
...
@@ -150,10 +150,11 @@ public interface DoubleStream extends BaseStream<Double, DoubleStream> {
/**
/**
* Returns a stream consisting of the results of replacing each element of
* Returns a stream consisting of the results of replacing each element of
* this stream with the contents of the stream produced by applying the
* this stream with the contents of a mapped stream produced by applying
* provided mapping function to each element. (If the result of the mapping
* the provided mapping function to each element. Each mapped stream is
* function is {@code null}, this is treated as if the result was an empty
* {@link java.util.stream.BaseStream#close() closed} after its contents
* stream.)
* have been placed into this stream. (If a mapped stream is {@code null}
* an empty stream is used, instead.)
*
*
* <p>This is an <a href="package-summary.html#StreamOps">intermediate
* <p>This is an <a href="package-summary.html#StreamOps">intermediate
* operation</a>.
* operation</a>.
...
...
src/share/classes/java/util/stream/IntStream.java
浏览文件 @
ba39efdf
...
@@ -146,10 +146,11 @@ public interface IntStream extends BaseStream<Integer, IntStream> {
...
@@ -146,10 +146,11 @@ public interface IntStream extends BaseStream<Integer, IntStream> {
/**
/**
* Returns a stream consisting of the results of replacing each element of
* Returns a stream consisting of the results of replacing each element of
* this stream with the contents of the stream produced by applying the
* this stream with the contents of a mapped stream produced by applying
* provided mapping function to each element. (If the result of the mapping
* the provided mapping function to each element. Each mapped stream is
* function is {@code null}, this is treated as if the result was an empty
* {@link java.util.stream.BaseStream#close() closed} after its contents
* stream.)
* have been placed into this stream. (If a mapped stream is {@code null}
* an empty stream is used, instead.)
*
*
* <p>This is an <a href="package-summary.html#StreamOps">intermediate
* <p>This is an <a href="package-summary.html#StreamOps">intermediate
* operation</a>.
* operation</a>.
...
...
src/share/classes/java/util/stream/LongStream.java
浏览文件 @
ba39efdf
...
@@ -151,10 +151,11 @@ public interface LongStream extends BaseStream<Long, LongStream> {
...
@@ -151,10 +151,11 @@ public interface LongStream extends BaseStream<Long, LongStream> {
/**
/**
* Returns a stream consisting of the results of replacing each element of
* Returns a stream consisting of the results of replacing each element of
* this stream with the contents of the stream produced by applying the
* this stream with the contents of a mapped stream produced by applying
* provided mapping function to each element. (If the result of the mapping
* the provided mapping function to each element. Each mapped stream is
* function is {@code null}, this is treated as if the result was an empty
* {@link java.util.stream.BaseStream#close() closed} after its contents
* stream.)
* have been placed into this stream. (If a mapped stream is {@code null}
* an empty stream is used, instead.)
*
*
* <p>This is an <a href="package-summary.html#StreamOps">intermediate
* <p>This is an <a href="package-summary.html#StreamOps">intermediate
* operation</a>.
* operation</a>.
...
...
src/share/classes/java/util/stream/Stream.java
浏览文件 @
ba39efdf
...
@@ -227,10 +227,11 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
...
@@ -227,10 +227,11 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
/**
/**
* Returns a stream consisting of the results of replacing each element of
* Returns a stream consisting of the results of replacing each element of
* this stream with the contents of the stream produced by applying the
* this stream with the contents of a mapped stream produced by applying
* provided mapping function to each element. (If the result of the mapping
* the provided mapping function to each element. Each mapped stream is
* function is {@code null}, this is treated as if the result was an empty
* {@link java.util.stream.BaseStream#close() closed} after its contents
* stream.)
* have been placed into this stream. (If a mapped stream is {@code null}
* an empty stream is used, instead.)
*
*
* <p>This is an <a href="package-summary.html#StreamOps">intermediate
* <p>This is an <a href="package-summary.html#StreamOps">intermediate
* operation</a>.
* operation</a>.
...
@@ -270,10 +271,11 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
...
@@ -270,10 +271,11 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
/**
/**
* Returns an {@code IntStream} consisting of the results of replacing each
* Returns an {@code IntStream} consisting of the results of replacing each
* element of this stream with the contents of the stream produced by
* element of this stream with the contents of a mapped stream produced by
* applying the provided mapping function to each element. (If the result
* applying the provided mapping function to each element. Each mapped
* of the mapping function is {@code null}, this is treated as if the result
* stream is {@link java.util.stream.BaseStream#close() closed} after its
* was an empty stream.)
* contents have been placed into this stream. (If a mapped stream is
* {@code null} an empty stream is used, instead.)
*
*
* <p>This is an <a href="package-summary.html#StreamOps">intermediate
* <p>This is an <a href="package-summary.html#StreamOps">intermediate
* operation</a>.
* operation</a>.
...
@@ -288,11 +290,12 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
...
@@ -288,11 +290,12 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
IntStream
flatMapToInt
(
Function
<?
super
T
,
?
extends
IntStream
>
mapper
);
IntStream
flatMapToInt
(
Function
<?
super
T
,
?
extends
IntStream
>
mapper
);
/**
/**
* Returns a {@code LongStream} consisting of the results of replacing each
* Returns an {@code LongStream} consisting of the results of replacing each
* element of this stream with the contents of the stream produced
* element of this stream with the contents of a mapped stream produced by
* by applying the provided mapping function to each element. (If the result
* applying the provided mapping function to each element. Each mapped
* of the mapping function is {@code null}, this is treated as if the result
* stream is {@link java.util.stream.BaseStream#close() closed} after its
* was an empty stream.)
* contents have been placed into this stream. (If a mapped stream is
* {@code null} an empty stream is used, instead.)
*
*
* <p>This is an <a href="package-summary.html#StreamOps">intermediate
* <p>This is an <a href="package-summary.html#StreamOps">intermediate
* operation</a>.
* operation</a>.
...
@@ -307,11 +310,12 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
...
@@ -307,11 +310,12 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
LongStream
flatMapToLong
(
Function
<?
super
T
,
?
extends
LongStream
>
mapper
);
LongStream
flatMapToLong
(
Function
<?
super
T
,
?
extends
LongStream
>
mapper
);
/**
/**
* Returns a {@code DoubleStream} consisting of the results of replacing each
* Returns an {@code DoubleStream} consisting of the results of replacing
* element of this stream with the contents of the stream produced
* each element of this stream with the contents of a mapped stream produced
* by applying the provided mapping function to each element. (If the result
* by applying the provided mapping function to each element. Each mapped
* of the mapping function is {@code null}, this is treated as if the result
* stream is {@link java.util.stream.BaseStream#close() closed} after its
* was an empty stream.)
* contents have placed been into this stream. (If a mapped stream is
* {@code null} an empty stream is used, instead.)
*
*
* <p>This is an <a href="package-summary.html#StreamOps">intermediate
* <p>This is an <a href="package-summary.html#StreamOps">intermediate
* operation</a>.
* operation</a>.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录