Skip to content

Commit e2c24c4

Browse files
committed
Add visibility for array generator in plugins.
1 parent 3966f5c commit e2c24c4

File tree

1 file changed

+6
-6
lines changed
  • src/main/java/com/github/underscore

1 file changed

+6
-6
lines changed

src/main/java/com/github/underscore/$.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,7 +1842,7 @@ public Optional<String> getString() {
18421842
return string;
18431843
}
18441844

1845-
private static <T> List<T> newArrayList() {
1845+
protected static <T> List<T> newArrayList() {
18461846
try {
18471847
final Class<?> listsClass = classForName("com.google.common.collect.Lists");
18481848
return (List<T>) listsClass.getDeclaredMethod("newArrayList").invoke(null);
@@ -1869,7 +1869,7 @@ protected static <T> List<T> newArrayList(Iterable<T> iterable) {
18691869
}
18701870
}
18711871

1872-
private static <T> List<T> newArrayListWithExpectedSize(int size) {
1872+
protected static <T> List<T> newArrayListWithExpectedSize(int size) {
18731873
try {
18741874
final Class<?> listsClass = classForName("com.google.common.collect.Lists");
18751875
return (List<T>) listsClass.getDeclaredMethod("newArrayListWithExpectedSize", Integer.TYPE)
@@ -1879,7 +1879,7 @@ private static <T> List<T> newArrayListWithExpectedSize(int size) {
18791879
}
18801880
}
18811881

1882-
private static <T> Set<T> newLinkedHashSet() {
1882+
protected static <T> Set<T> newLinkedHashSet() {
18831883
try {
18841884
final Class<?> setsClass = classForName("com.google.common.collect.Sets");
18851885
return (Set<T>) setsClass.getDeclaredMethod("newLinkedHashSet").invoke(null);
@@ -1888,7 +1888,7 @@ private static <T> Set<T> newLinkedHashSet() {
18881888
}
18891889
}
18901890

1891-
private static <T> Set<T> newHashSet(Iterable<T> iterable) {
1891+
protected static <T> Set<T> newHashSet(Iterable<T> iterable) {
18921892
try {
18931893
final Class<?> setsClass = classForName("com.google.common.collect.Sets");
18941894
return (Set<T>) setsClass.getDeclaredMethod("newHashSet", Iterable.class).invoke(null, iterable);
@@ -1901,7 +1901,7 @@ private static <T> Set<T> newHashSet(Iterable<T> iterable) {
19011901
}
19021902
}
19031903

1904-
private static <T> Set<T> newLinkedHashSetWithExpectedSize(int size) {
1904+
protected static <T> Set<T> newLinkedHashSetWithExpectedSize(int size) {
19051905
try {
19061906
final Class<?> setsClass = classForName("com.google.common.collect.Sets");
19071907
return (Set<T>) setsClass.getDeclaredMethod("newLinkedHashSetWithExpectedSize", Integer.TYPE)
@@ -1911,7 +1911,7 @@ private static <T> Set<T> newLinkedHashSetWithExpectedSize(int size) {
19111911
}
19121912
}
19131913

1914-
private static <K, E> Map<K, E> newLinkedHashMap() {
1914+
protected static <K, E> Map<K, E> newLinkedHashMap() {
19151915
try {
19161916
final Class<?> mapsClass = classForName("com.google.common.collect.Maps");
19171917
return (Map<K, E>) mapsClass.getDeclaredMethod("newLinkedHashMap").invoke(null);

0 commit comments

Comments
 (0)