Skip to content

Commit f936291

Browse files
committed
#109 [Release] 0.0.9.1
Some gradle warnings fixed
1 parent 9c768e1 commit f936291

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/main/java/org/whaka/data/NullStrategy.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.whaka.data;
22

3-
import static org.whaka.util.UberStreams.*;
43
import static java.util.Arrays.*;
4+
import static org.whaka.util.UberStreams.stream;
55

66
import java.util.ArrayList;
77
import java.util.Collection;
@@ -27,6 +27,7 @@
2727
* <li>{@link #nullableEnd(Collection)}
2828
* </ul>
2929
*/
30+
@SuppressWarnings({"unchecked", "rawtypes"})
3031
public class NullStrategy {
3132

3233
/**
@@ -37,7 +38,6 @@ public class NullStrategy {
3738
* <li>{@link #apply(Collection)} specified collection will be transformed into a list without any other changes.
3839
* </ul>
3940
*/
40-
@SuppressWarnings("unchecked")
4141
public static NullStrategy NO_STRATEGY = new NullStrategy(ArrayList::new);
4242

4343
/**
@@ -58,10 +58,8 @@ public class NullStrategy {
5858
*/
5959
public static NullStrategy NULLABLE_END = new NullStrategy(NullStrategy::nullableEnd);
6060

61-
@SuppressWarnings("rawtypes")
6261
private final Function<Collection, List> function;
6362

64-
@SuppressWarnings("rawtypes")
6563
private NullStrategy(Function<Collection, List> function) {
6664
this.function = function;
6765
}
@@ -70,7 +68,6 @@ private NullStrategy(Function<Collection, List> function) {
7068
* Specified array is cloned <b>in any case</b>.
7169
* Any other behavior is specific to a strategy.
7270
*/
73-
@SuppressWarnings("unchecked")
7471
public <T> T[] apply(T[] arr) {
7572
return (T[]) stream(apply(asList(arr))).toArray(arr.getClass().getComponentType());
7673
}
@@ -79,7 +76,6 @@ public <T> T[] apply(T[] arr) {
7976
* Specified collection is copied into a list <b>in any case</b>.
8077
* Any other behavior is specific to a strategy.
8178
*/
82-
@SuppressWarnings("unchecked")
8379
public <T> List<T> apply(Collection<T> col) {
8480
return function.apply(col);
8581
}

src/main/java/org/whaka/util/UberMaps.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static <K,V> Entry<K, V> entry(K key, V val) {
3131

3232

3333
/**
34-
* <p><b>Immutable</b> implementation of {@link java.util.Map.Map.Entry}.
34+
* <p><b>Immutable</b> implementation of {@link java.util.Map.Entry}.
3535
*
3636
* <p>Entry also implements {@link Predicate} of a map, and tests whether specified map contains an entry
3737
* like this one: {@link Entry#test(Map)}.

0 commit comments

Comments
 (0)