|
1 | 1 | /******************************************************************************* |
2 | 2 | * Copyright (C) 2018-2019 camLine GmbH |
3 | | - * |
| 3 | + * |
4 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
5 | 5 | * of this software and associated documentation files (the "Software"), to deal |
6 | 6 | * in the Software without restriction, including without limitation the rights |
7 | 7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
8 | 8 | * copies of the Software, and to permit persons to whom the Software is |
9 | 9 | * furnished to do so, subject to the following conditions: |
10 | | - * |
| 10 | + * |
11 | 11 | * The above copyright notice and this permission notice shall be included in |
12 | 12 | * all copies or substantial portions of the Software. |
13 | | - * |
| 13 | + * |
14 | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
15 | 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
16 | 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
@@ -82,9 +82,9 @@ class ConfigurationChecker extends BaseVisitor<Boolean, RuntimeException> { |
82 | 82 |
|
83 | 83 | @Override |
84 | 84 | public Boolean visit(Rules rules) { |
85 | | - rules.accept(ruleNameVisitor); |
86 | 85 | boolean ok = doVisit(rules.getGlobalVariables(), rules.getPatchMessageBodyPrototypes()); |
87 | 86 | if (ok) { |
| 87 | + rules.accept(ruleNameVisitor); |
88 | 88 | ok = doVisit(rules.getRuleGroup()); |
89 | 89 | } |
90 | 90 | return Boolean.valueOf(ok); |
|
0 commit comments