Fix checkstyle in mdsal-binding-dom-codec
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / codec / impl / IncorrectNestingException.java
index 49dd8cf96fb9feca371f0c7ba2ef1c5fa5f36754..9d5f25f6a2e46cd5f0dde376a23a4c0045484039 100644 (file)
@@ -11,8 +11,7 @@ import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 
 /**
- * Thrown where incorrect nesting of data structures was detected
- * and was caused by user.
+ * Thrown where incorrect nesting of data structures was detected and was caused by user.
  */
 public class IncorrectNestingException extends IllegalArgumentException {
 
@@ -27,14 +26,14 @@ public class IncorrectNestingException extends IllegalArgumentException {
     }
 
     public static void check(final boolean check, final String message, final Object... args) {
-        if(!check) {
+        if (!check) {
             throw IncorrectNestingException.create(message, args);
         }
     }
 
     @Nonnull
     public static <V> V checkNonNull(@Nullable final V nullable, final String message, final Object... args) {
-        if(nullable != null) {
+        if (nullable != null) {
             return nullable;
         }
         throw IncorrectNestingException.create(message, args);