Skip to content

Commit

Permalink
[#250] Make withoutKeys and withoutValues as @SafeVarargs
Browse files Browse the repository at this point in the history
  • Loading branch information
amaembo committed Nov 4, 2021
1 parent 90a869c commit 7faa45d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<groupId>one.util</groupId>
<artifactId>streamex</artifactId>
<version>0.7.4-SNAPSHOT</version>
<version>0.8.0-SNAPSHOT</version>
<packaging>multi-release-jar</packaging>

<name>StreamEx</name>
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/one/util/streamex/EntryStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -2312,7 +2312,8 @@ public static <K, V> EntryStream<K, V> generate(Supplier<? extends K> keySupplie
* @see #withoutValues(Object...)
* @see StreamEx#without(Object...)
*/
public EntryStream<K, V> withoutKeys(K... keys) {
@SafeVarargs
public final EntryStream<K, V> withoutKeys(K... keys) {
if (keys.length == 0)
return this;
if (keys.length == 1)
Expand Down Expand Up @@ -2352,7 +2353,8 @@ public EntryStream<K, V> withoutKeys(K... keys) {
* @see #withoutKeys(Object...)
* @see StreamEx#without(Object...)
*/
public EntryStream<K, V> withoutValues(V... values) {
@SafeVarargs
public final EntryStream<K, V> withoutValues(V... values) {
if (values.length == 0)
return this;
if (values.length == 1)
Expand Down
4 changes: 4 additions & 0 deletions wiki/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Check also [MIGRATION.md](MIGRATION.md) for possible compatibility problems.

### 0.8.0
* Fixed: `EntryStream.withoutKeys` and `EntryStream.withoutValues` declared as `@SafeVarargs`
* Minor documentation fixes

### 0.7.4
* [#091] Changed: API tests moved to the separate package.
* [#185] Added: `EntryStream.withoutKeys` and `EntryStream.withoutValues`.
Expand Down

0 comments on commit 7faa45d

Please sign in to comment.