Skip to content

Commit ede320a

Browse files
committed
Issue #64 - Fix javadoc and issue reported by codacy
1 parent 4f6cae2 commit ede320a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/main/java/ch/powerunit/extensions/exceptions/CommonsCollections4Helper.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,23 @@
2929
/**
3030
* This class provides several helper methods for the functional interface of
3131
* the <a href=
32-
* "https://commons.apache.org/proper/commons-collections">commons-collections</a>.
32+
* "https://commons.apache.org/proper/commons-collections">commons-collections4</a>.
3333
* <p>
34-
* <b>This class is only available if commons-collections is available</b>
34+
* <b>This class is only available if commons-collections4 is available</b>
3535
*
3636
* @since 2.2.0
3737
*
3838
*/
3939
public final class CommonsCollections4Helper {
40-
private CommonsCollections4Helper() {
41-
}
4240

4341
private static final Function<Exception, RuntimeException> DEFAULT_EXCEPTION_MAPPER = ExceptionMapper.forExceptions(
4442
ExceptionMapper.forException(ClassCastException.class, e -> e),
4543
ExceptionMapper.forException(IllegalArgumentException.class, e -> e),
4644
ExceptionMapper.forException(Exception.class, FunctorException::new));
4745

46+
private CommonsCollections4Helper() {
47+
}
48+
4849
/**
4950
* Transforms a {@link PredicateWithException} to the one from
5051
* commons-collections.
@@ -59,7 +60,7 @@ private CommonsCollections4Helper() {
5960
* IllegalArgumentException are not wrapped and the other exception are
6061
* wrapped in a FunctorException.
6162
* @throws NoClassDefFoundError
62-
* In case the commons-collections library is not available.
63+
* In case the commons-collections4 library is not available.
6364
* @throws NullPointerException
6465
* if predicate is null.
6566
* @see org.apache.commons.collections4.Predicate

0 commit comments

Comments
 (0)