Skip to content

Commit 28bf5e9

Browse files
Merge pull request exercism#1057 from bmkiefer/accumulate-ref-solution
accumulate: make classes and methods package private in reference solution
2 parents c00455d + 181e7a5 commit 28bf5e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

exercises/accumulate/.meta/src/reference/java/Accumulate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import java.util.List;
33
import java.util.function.Function;
44

5-
public class Accumulate {
5+
class Accumulate {
66

7-
public static <T> List<T> accumulate(List<T> collection, Function<T, T> function) {
7+
static <T> List<T> accumulate(List<T> collection, Function<T, T> function) {
88
List<T> newCollection = new ArrayList<>();
99

1010
for (T item : collection) {

0 commit comments

Comments
 (0)