Another round of checkstyle fixes
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc7950 / NotificationStatementRfc7950Support.java
index ef620f7ad85cbc9db14f1ce240863413da76b073..eeef7c7e10c4ac713d9bb3b3cb70e8e2591e901b 100644 (file)
@@ -53,15 +53,16 @@ public final class NotificationStatementRfc7950Support extends NotificationState
     @Override
     public EffectiveStatement<QName, NotificationStatement> createEffective(
             final StmtContext<QName, NotificationStatement, EffectiveStatement<QName, NotificationStatement>> ctx) {
-        SourceException
-                .throwIf(StmtContextUtils.hasAncestorOfType(ctx, ILLEGAL_PARENTS), ctx.getStatementSourceReference(),
-                        "Notification %s is defined within an rpc, action, or another notification",
-                        ctx.getStatementArgument());
+        SourceException.throwIf(StmtContextUtils.hasAncestorOfType(ctx, ILLEGAL_PARENTS),
+            ctx.getStatementSourceReference(),
+            "Notification %s is defined within an rpc, action, or another notification",
+            ctx.getStatementArgument());
         SourceException.throwIf(!StmtContextUtils.hasAncestorOfTypeWithChildOfType(ctx, YangStmtMapping.LIST,
-                YangStmtMapping.KEY), ctx.getStatementSourceReference(),
-                "Notification %s is defined within a list that has no key statement", ctx.getStatementArgument());
-        SourceException.throwIf(StmtContextUtils.hasParentOfType(ctx, YangStmtMapping.CASE), ctx.getStatementSourceReference(),
-                "Notification %s is defined within a case statement", ctx.getStatementArgument());
+            YangStmtMapping.KEY), ctx.getStatementSourceReference(),
+            "Notification %s is defined within a list that has no key statement", ctx.getStatementArgument());
+        SourceException.throwIf(StmtContextUtils.hasParentOfType(ctx, YangStmtMapping.CASE),
+            ctx.getStatementSourceReference(), "Notification %s is defined within a case statement",
+            ctx.getStatementArgument());
         return new NotificationEffectiveStatementImpl(ctx);
     }