Skip to content

Commit e61c6b8

Browse files
committed
SPARK-5984: Fix license and document
1 parent 6ccc280 commit e61c6b8

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

core/src/test/java/org/apache/spark/util/collection/TestTimSort.java

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one or more
3-
* contributor license agreements. See the NOTICE file distributed with
4-
* this work for additional information regarding copyright ownership.
5-
* The ASF licenses this file to You under the Apache License, Version 2.0
6-
* (the "License"); you may not use this file except in compliance with
7-
* the License. You may obtain a copy of the License at
1+
/**
2+
* Copyright 2015 Stijn de Gouw
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
87
*
9-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
109
*
1110
* Unless required by applicable law or agreed to in writing, software
1211
* distributed under the License is distributed on an "AS IS" BASIS,
1312
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1413
* See the License for the specific language governing permissions and
1514
* limitations under the License.
15+
*
1616
*/
1717
package org.apache.spark.util.collection;
1818

@@ -24,10 +24,10 @@
2424
* The blog that reported the bug
2525
* http://www.envisage-project.eu/timsort-specification-and-verification/
2626
*
27-
* The algorithms to reproduce the bug is obtained from the reporter of the bug
28-
* https://github.com/abstools/java-timsort-bug
27+
* This codes was originally wrote by Stijn de Gouw, modified by Evan Yu to adapt to
28+
* our test suite.
2929
*
30-
* Licensed under Apache License 2.0
30+
* https://github.com/abstools/java-timsort-bug
3131
* https://github.com/abstools/java-timsort-bug/blob/master/LICENSE
3232
*/
3333
public class TestTimSort {
@@ -56,8 +56,9 @@ private static int[] createArray(List<Long> runs, int length) {
5656
int[] a = new int[length];
5757
Arrays.fill(a, 0);
5858
int endRun = -1;
59-
for (long len : runs)
59+
for (long len : runs) {
6060
a[endRun += len] = 1;
61+
}
6162
a[length - 1] = 0;
6263
return a;
6364
}

0 commit comments

Comments
 (0)