Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
e02f15e3
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
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看板
提交
e02f15e3
编写于
6月 10, 2013
作者:
P
psandoz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8015792: Rename Spliterators.spliteratorFromIterator to Spliterators.iterator
Reviewed-by: chegar
上级
206c4375
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
29 addition
and
29 deletion
+29
-29
src/share/classes/java/util/Spliterators.java
src/share/classes/java/util/Spliterators.java
+4
-4
src/share/classes/java/util/stream/DoublePipeline.java
src/share/classes/java/util/stream/DoublePipeline.java
+1
-1
src/share/classes/java/util/stream/IntPipeline.java
src/share/classes/java/util/stream/IntPipeline.java
+1
-1
src/share/classes/java/util/stream/LongPipeline.java
src/share/classes/java/util/stream/LongPipeline.java
+1
-1
src/share/classes/java/util/stream/ReferencePipeline.java
src/share/classes/java/util/stream/ReferencePipeline.java
+1
-1
src/share/classes/java/util/stream/SpinedBuffer.java
src/share/classes/java/util/stream/SpinedBuffer.java
+4
-4
test/java/util/Spliterator/SpliteratorTraversingAndSplittingTest.java
...il/Spliterator/SpliteratorTraversingAndSplittingTest.java
+7
-7
test/java/util/stream/bootlib/java/util/stream/TestData.java
test/java/util/stream/bootlib/java/util/stream/TestData.java
+4
-4
test/java/util/stream/boottest/java/util/stream/DoubleNodeTest.java
...util/stream/boottest/java/util/stream/DoubleNodeTest.java
+1
-1
test/java/util/stream/boottest/java/util/stream/IntNodeTest.java
...va/util/stream/boottest/java/util/stream/IntNodeTest.java
+1
-1
test/java/util/stream/boottest/java/util/stream/LongNodeTest.java
...a/util/stream/boottest/java/util/stream/LongNodeTest.java
+1
-1
test/java/util/stream/test/org/openjdk/tests/java/util/stream/SortedOpTest.java
...test/org/openjdk/tests/java/util/stream/SortedOpTest.java
+3
-3
未找到文件。
src/share/classes/java/util/Spliterators.java
浏览文件 @
e02f15e3
...
...
@@ -663,7 +663,7 @@ public final class Spliterators {
* @return An iterator
* @throws NullPointerException if the given spliterator is {@code null}
*/
public
static
<
T
>
Iterator
<
T
>
iterator
FromSpliterator
(
Spliterator
<?
extends
T
>
spliterator
)
{
public
static
<
T
>
Iterator
<
T
>
iterator
(
Spliterator
<?
extends
T
>
spliterator
)
{
Objects
.
requireNonNull
(
spliterator
);
class
Adapter
implements
Iterator
<
T
>,
Consumer
<
T
>
{
boolean
valueReady
=
false
;
...
...
@@ -708,7 +708,7 @@ public final class Spliterators {
* @return An iterator
* @throws NullPointerException if the given spliterator is {@code null}
*/
public
static
PrimitiveIterator
.
OfInt
iterator
FromSpliterator
(
Spliterator
.
OfInt
spliterator
)
{
public
static
PrimitiveIterator
.
OfInt
iterator
(
Spliterator
.
OfInt
spliterator
)
{
Objects
.
requireNonNull
(
spliterator
);
class
Adapter
implements
PrimitiveIterator
.
OfInt
,
IntConsumer
{
boolean
valueReady
=
false
;
...
...
@@ -753,7 +753,7 @@ public final class Spliterators {
* @return An iterator
* @throws NullPointerException if the given spliterator is {@code null}
*/
public
static
PrimitiveIterator
.
OfLong
iterator
FromSpliterator
(
Spliterator
.
OfLong
spliterator
)
{
public
static
PrimitiveIterator
.
OfLong
iterator
(
Spliterator
.
OfLong
spliterator
)
{
Objects
.
requireNonNull
(
spliterator
);
class
Adapter
implements
PrimitiveIterator
.
OfLong
,
LongConsumer
{
boolean
valueReady
=
false
;
...
...
@@ -798,7 +798,7 @@ public final class Spliterators {
* @return An iterator
* @throws NullPointerException if the given spliterator is {@code null}
*/
public
static
PrimitiveIterator
.
OfDouble
iterator
FromSpliterator
(
Spliterator
.
OfDouble
spliterator
)
{
public
static
PrimitiveIterator
.
OfDouble
iterator
(
Spliterator
.
OfDouble
spliterator
)
{
Objects
.
requireNonNull
(
spliterator
);
class
Adapter
implements
PrimitiveIterator
.
OfDouble
,
DoubleConsumer
{
boolean
valueReady
=
false
;
...
...
src/share/classes/java/util/stream/DoublePipeline.java
浏览文件 @
e02f15e3
...
...
@@ -168,7 +168,7 @@ abstract class DoublePipeline<E_IN>
@Override
public
final
PrimitiveIterator
.
OfDouble
iterator
()
{
return
Spliterators
.
iterator
FromSpliterator
(
spliterator
());
return
Spliterators
.
iterator
(
spliterator
());
}
@Override
...
...
src/share/classes/java/util/stream/IntPipeline.java
浏览文件 @
e02f15e3
...
...
@@ -172,7 +172,7 @@ abstract class IntPipeline<E_IN>
@Override
public
final
PrimitiveIterator
.
OfInt
iterator
()
{
return
Spliterators
.
iterator
FromSpliterator
(
spliterator
());
return
Spliterators
.
iterator
(
spliterator
());
}
@Override
...
...
src/share/classes/java/util/stream/LongPipeline.java
浏览文件 @
e02f15e3
...
...
@@ -169,7 +169,7 @@ abstract class LongPipeline<E_IN>
@Override
public
final
PrimitiveIterator
.
OfLong
iterator
()
{
return
Spliterators
.
iterator
FromSpliterator
(
spliterator
());
return
Spliterators
.
iterator
(
spliterator
());
}
@Override
...
...
src/share/classes/java/util/stream/ReferencePipeline.java
浏览文件 @
e02f15e3
...
...
@@ -137,7 +137,7 @@ abstract class ReferencePipeline<P_IN, P_OUT>
@Override
public
final
Iterator
<
P_OUT
>
iterator
()
{
return
Spliterators
.
iterator
FromSpliterator
(
spliterator
());
return
Spliterators
.
iterator
(
spliterator
());
}
...
...
src/share/classes/java/util/stream/SpinedBuffer.java
浏览文件 @
e02f15e3
...
...
@@ -227,7 +227,7 @@ class SpinedBuffer<E>
@Override
public
Iterator
<
E
>
iterator
()
{
return
Spliterators
.
iterator
FromSpliterator
(
spliterator
());
return
Spliterators
.
iterator
(
spliterator
());
}
@Override
...
...
@@ -712,7 +712,7 @@ class SpinedBuffer<E>
@Override
public
PrimitiveIterator
.
OfInt
iterator
()
{
return
Spliterators
.
iterator
FromSpliterator
(
spliterator
());
return
Spliterators
.
iterator
(
spliterator
());
}
public
Spliterator
.
OfInt
spliterator
()
{
...
...
@@ -815,7 +815,7 @@ class SpinedBuffer<E>
@Override
public
PrimitiveIterator
.
OfLong
iterator
()
{
return
Spliterators
.
iterator
FromSpliterator
(
spliterator
());
return
Spliterators
.
iterator
(
spliterator
());
}
...
...
@@ -919,7 +919,7 @@ class SpinedBuffer<E>
@Override
public
PrimitiveIterator
.
OfDouble
iterator
()
{
return
Spliterators
.
iterator
FromSpliterator
(
spliterator
());
return
Spliterators
.
iterator
(
spliterator
());
}
public
Spliterator
.
OfDouble
spliterator
()
{
...
...
test/java/util/Spliterator/SpliteratorTraversingAndSplittingTest.java
浏览文件 @
e02f15e3
...
...
@@ -170,7 +170,7 @@ public class SpliteratorTraversingAndSplittingTest {
()
->
Spliterators
.
spliteratorUnknownSize
(
exp
.
iterator
(),
0
));
db
.
add
(
"Spliterators.spliterator(Spliterators.iteratorFromSpliterator(Spliterator ), ...)"
,
()
->
Spliterators
.
spliterator
(
Spliterators
.
iterator
FromSpliterator
(
exp
.
spliterator
()),
exp
.
size
(),
0
));
()
->
Spliterators
.
spliterator
(
Spliterators
.
iterator
(
exp
.
spliterator
()),
exp
.
size
(),
0
));
db
.
add
(
"Spliterators.spliterator(T[], ...)"
,
()
->
Spliterators
.
spliterator
(
exp
.
toArray
(
new
Integer
[
0
]),
0
));
...
...
@@ -549,10 +549,10 @@ public class SpliteratorTraversingAndSplittingTest {
()
->
Arrays
.
spliterator
(
exp
));
db
.
add
(
"Spliterators.spliterator(PrimitiveIterator.OfInt, ...)"
,
()
->
Spliterators
.
spliterator
(
Spliterators
.
iterator
FromSpliterator
(
Arrays
.
spliterator
(
exp
)),
exp
.
length
,
0
));
()
->
Spliterators
.
spliterator
(
Spliterators
.
iterator
(
Arrays
.
spliterator
(
exp
)),
exp
.
length
,
0
));
db
.
add
(
"Spliterators.spliteratorUnknownSize(PrimitiveIterator.OfInt, ...)"
,
()
->
Spliterators
.
spliteratorUnknownSize
(
Spliterators
.
iterator
FromSpliterator
(
Arrays
.
spliterator
(
exp
)),
0
));
()
->
Spliterators
.
spliteratorUnknownSize
(
Spliterators
.
iterator
(
Arrays
.
spliterator
(
exp
)),
0
));
class
IntSpliteratorFromArray
extends
Spliterators
.
AbstractIntSpliterator
{
int
[]
a
;
...
...
@@ -702,10 +702,10 @@ public class SpliteratorTraversingAndSplittingTest {
()
->
Arrays
.
spliterator
(
exp
));
db
.
add
(
"Spliterators.spliterator(PrimitiveIterator.OfLong, ...)"
,
()
->
Spliterators
.
spliterator
(
Spliterators
.
iterator
FromSpliterator
(
Arrays
.
spliterator
(
exp
)),
exp
.
length
,
0
));
()
->
Spliterators
.
spliterator
(
Spliterators
.
iterator
(
Arrays
.
spliterator
(
exp
)),
exp
.
length
,
0
));
db
.
add
(
"Spliterators.spliteratorUnknownSize(PrimitiveIterator.OfLong, ...)"
,
()
->
Spliterators
.
spliteratorUnknownSize
(
Spliterators
.
iterator
FromSpliterator
(
Arrays
.
spliterator
(
exp
)),
0
));
()
->
Spliterators
.
spliteratorUnknownSize
(
Spliterators
.
iterator
(
Arrays
.
spliterator
(
exp
)),
0
));
class
LongSpliteratorFromArray
extends
Spliterators
.
AbstractLongSpliterator
{
long
[]
a
;
...
...
@@ -862,10 +862,10 @@ public class SpliteratorTraversingAndSplittingTest {
()
->
Arrays
.
spliterator
(
exp
));
db
.
add
(
"Spliterators.spliterator(PrimitiveIterator.OfDouble, ...)"
,
()
->
Spliterators
.
spliterator
(
Spliterators
.
iterator
FromSpliterator
(
Arrays
.
spliterator
(
exp
)),
exp
.
length
,
0
));
()
->
Spliterators
.
spliterator
(
Spliterators
.
iterator
(
Arrays
.
spliterator
(
exp
)),
exp
.
length
,
0
));
db
.
add
(
"Spliterators.spliteratorUnknownSize(PrimitiveIterator.OfDouble, ...)"
,
()
->
Spliterators
.
spliteratorUnknownSize
(
Spliterators
.
iterator
FromSpliterator
(
Arrays
.
spliterator
(
exp
)),
0
));
()
->
Spliterators
.
spliteratorUnknownSize
(
Spliterators
.
iterator
(
Arrays
.
spliterator
(
exp
)),
0
));
class
DoubleSpliteratorFromArray
extends
Spliterators
.
AbstractDoubleSpliterator
{
double
[]
a
;
...
...
test/java/util/stream/bootlib/java/util/stream/TestData.java
浏览文件 @
e02f15e3
...
...
@@ -45,7 +45,7 @@ public interface TestData<T, S extends BaseStream<T, S>>
@Override
default
Iterator
<
T
>
iterator
()
{
return
Spliterators
.
iterator
FromSpliterator
(
spliterator
());
return
Spliterators
.
iterator
(
spliterator
());
}
Spliterator
<
T
>
spliterator
();
...
...
@@ -292,7 +292,7 @@ public interface TestData<T, S extends BaseStream<T, S>>
@Override
public
PrimitiveIterator
.
OfInt
iterator
()
{
return
Spliterators
.
iterator
FromSpliterator
(
spliterator
());
return
Spliterators
.
iterator
(
spliterator
());
}
@Override
...
...
@@ -317,7 +317,7 @@ public interface TestData<T, S extends BaseStream<T, S>>
@Override
public
PrimitiveIterator
.
OfLong
iterator
()
{
return
Spliterators
.
iterator
FromSpliterator
(
spliterator
());
return
Spliterators
.
iterator
(
spliterator
());
}
@Override
...
...
@@ -342,7 +342,7 @@ public interface TestData<T, S extends BaseStream<T, S>>
@Override
public
PrimitiveIterator
.
OfDouble
iterator
()
{
return
Spliterators
.
iterator
FromSpliterator
(
spliterator
());
return
Spliterators
.
iterator
(
spliterator
());
}
@Override
...
...
test/java/util/stream/boottest/java/util/stream/DoubleNodeTest.java
浏览文件 @
e02f15e3
...
...
@@ -48,7 +48,7 @@ public class DoubleNodeTest extends OpTestCase {
List
<
Node
<
Double
>>
nodes
=
new
ArrayList
<>();
nodes
.
add
(
Nodes
.
node
(
array
));
nodes
.
add
(
degenerateTree
(
Spliterators
.
iterator
FromSpliterator
(
Arrays
.
spliterator
(
array
))));
nodes
.
add
(
degenerateTree
(
Spliterators
.
iterator
(
Arrays
.
spliterator
(
array
))));
nodes
.
add
(
tree
(
toList
(
array
),
l
->
Nodes
.
node
(
toDoubleArray
(
l
))));
nodes
.
add
(
fill
(
array
,
Nodes
.
doubleBuilder
(
array
.
length
)));
nodes
.
add
(
fill
(
array
,
Nodes
.
doubleBuilder
()));
...
...
test/java/util/stream/boottest/java/util/stream/IntNodeTest.java
浏览文件 @
e02f15e3
...
...
@@ -48,7 +48,7 @@ public class IntNodeTest extends OpTestCase {
List
<
Node
<
Integer
>>
nodes
=
new
ArrayList
<>();
nodes
.
add
(
Nodes
.
node
(
array
));
nodes
.
add
(
degenerateTree
(
Spliterators
.
iterator
FromSpliterator
(
Arrays
.
spliterator
(
array
))));
nodes
.
add
(
degenerateTree
(
Spliterators
.
iterator
(
Arrays
.
spliterator
(
array
))));
nodes
.
add
(
tree
(
toList
(
array
),
l
->
Nodes
.
node
(
toIntArray
(
l
))));
nodes
.
add
(
fill
(
array
,
Nodes
.
intBuilder
(
array
.
length
)));
nodes
.
add
(
fill
(
array
,
Nodes
.
intBuilder
()));
...
...
test/java/util/stream/boottest/java/util/stream/LongNodeTest.java
浏览文件 @
e02f15e3
...
...
@@ -48,7 +48,7 @@ public class LongNodeTest extends OpTestCase {
List
<
Node
<
Long
>>
nodes
=
new
ArrayList
<>();
nodes
.
add
(
Nodes
.
node
(
array
));
nodes
.
add
(
degenerateTree
(
Spliterators
.
iterator
FromSpliterator
(
Arrays
.
spliterator
(
array
))));
nodes
.
add
(
degenerateTree
(
Spliterators
.
iterator
(
Arrays
.
spliterator
(
array
))));
nodes
.
add
(
tree
(
toList
(
array
),
l
->
Nodes
.
node
(
toLongArray
(
l
))));
nodes
.
add
(
fill
(
array
,
Nodes
.
longBuilder
(
array
.
length
)));
nodes
.
add
(
fill
(
array
,
Nodes
.
longBuilder
()));
...
...
test/java/util/stream/test/org/openjdk/tests/java/util/stream/SortedOpTest.java
浏览文件 @
e02f15e3
...
...
@@ -150,7 +150,7 @@ public class SortedOpTest extends OpTestCase {
}
private
IntStream
unknownSizeIntStream
(
int
[]
a
)
{
return
StreamSupport
.
intStream
(
Spliterators
.
spliteratorUnknownSize
(
Spliterators
.
iterator
FromSpliterator
(
Arrays
.
spliterator
(
a
)),
0
));
return
StreamSupport
.
intStream
(
Spliterators
.
spliteratorUnknownSize
(
Spliterators
.
iterator
(
Arrays
.
spliterator
(
a
)),
0
));
}
@Test
(
dataProvider
=
"IntStreamTestData"
,
dataProviderClass
=
IntStreamTestDataProvider
.
class
)
...
...
@@ -193,7 +193,7 @@ public class SortedOpTest extends OpTestCase {
}
private
LongStream
unknownSizeLongStream
(
long
[]
a
)
{
return
StreamSupport
.
longStream
(
Spliterators
.
spliteratorUnknownSize
(
Spliterators
.
iterator
FromSpliterator
(
Arrays
.
spliterator
(
a
)),
0
));
return
StreamSupport
.
longStream
(
Spliterators
.
spliteratorUnknownSize
(
Spliterators
.
iterator
(
Arrays
.
spliterator
(
a
)),
0
));
}
@Test
(
dataProvider
=
"LongStreamTestData"
,
dataProviderClass
=
LongStreamTestDataProvider
.
class
)
...
...
@@ -236,7 +236,7 @@ public class SortedOpTest extends OpTestCase {
}
private
DoubleStream
unknownSizeDoubleStream
(
double
[]
a
)
{
return
StreamSupport
.
doubleStream
(
Spliterators
.
spliteratorUnknownSize
(
Spliterators
.
iterator
FromSpliterator
(
Arrays
.
spliterator
(
a
)),
0
));
return
StreamSupport
.
doubleStream
(
Spliterators
.
spliteratorUnknownSize
(
Spliterators
.
iterator
(
Arrays
.
spliterator
(
a
)),
0
));
}
@Test
(
dataProvider
=
"DoubleStreamTestData"
,
dataProviderClass
=
DoubleStreamTestDataProvider
.
class
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录