Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
krzyk committed May 9, 2018
1 parent c9b9b58 commit 300fe79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/cactoos/scalar/FirstOf.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
/**
* Find first element in a list that satisfies specified condition.
*
* <p>This class is thread-safe.
* <p>There is no thread-safety guarantee.
*
* @author Krzysztof Krason (Krzysztof.Krason@gmail.com)
* @version $Id$
* @param <T> Type of result
* @since 0.31
* @since 0.32
*/
public final class FirstOf<T> implements Scalar<T> {

Expand Down Expand Up @@ -78,7 +78,7 @@ public T value() throws Exception {
new Filtered<>(this.condition, this.source)
).iterator().next(),
new IterableOf<FallbackFrom<T>>(
new FallbackFrom<T>(
new FallbackFrom<>(
new IterableOf<Class<? extends Throwable>>(
NoSuchElementException.class
),
Expand Down
4 changes: 1 addition & 3 deletions src/test/java/org/cactoos/scalar/FirstOfTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@
/**
* Tests for {@link FirstOf}.
*
* <p>This class is thread-safe.
*
* @author Krzysztof Krason (Krzysztof.Krason@gmail.com)
* @version $Id$
* @since 0.31
* @since 0.32
* @checkstyle JavadocMethodCheck (500 lines)
*/
public final class FirstOfTest {
Expand Down

0 comments on commit 300fe79

Please sign in to comment.