[java-support] branch master updated: Cleanup nits. Add final keyword, formatting.
Tom Zeller
tzeller at dragonacea.biz
Mon Oct 12 12:59:53 EDT 2015
This is an automated email from the git hooks/post-receive script.
tzeller pushed a commit to branch master
in repository java-support.
The following commit(s) were added to refs/heads/master by this push:
new 42970e0 Cleanup nits. Add final keyword, formatting.
42970e0 is described below
commit 42970e03773cdc67532c996ac34d9af472dd9430
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Mon Oct 12 12:00:23 2015 -0500
Cleanup nits. Add final keyword, formatting.
---
.../shibboleth/utilities/java/support/logic/Constraint.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/java/net/shibboleth/utilities/java/support/logic/Constraint.java b/src/main/java/net/shibboleth/utilities/java/support/logic/Constraint.java
index 958043b..5ef6d40 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/logic/Constraint.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/logic/Constraint.java
@@ -274,12 +274,12 @@ public final class Constraint {
*
* @return the given array
*/
- @Nonnull public static <T> T[] noNullItems(@Nonnull final T[] array, @Nonnull String message) {
+ @Nonnull public static <T> T[] noNullItems(@Nonnull final T[] array, @Nonnull final String message) {
if (array == null) {
throw new ConstraintViolationException(message);
}
- for (T element : array) {
+ for (final T element : array) {
if (element == null) {
throw new ConstraintViolationException(message);
}
@@ -297,13 +297,13 @@ public final class Constraint {
*
* @return the given array
*/
- @Nonnull public static <T extends Collection<?>> T noNullItems(
- @Nonnull final T collection, @Nonnull String message) {
+ @Nonnull public static <T extends Collection<?>> T noNullItems(@Nonnull final T collection,
+ @Nonnull final String message) {
if (collection == null) {
throw new ConstraintViolationException(message);
}
- for (Object element : collection) {
+ for (final Object element : collection) {
if (element == null) {
throw new ConstraintViolationException(message);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list