File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/common Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 24
24
import java .util .function .Function ;
25
25
import java .util .stream .IntStream ;
26
26
27
+ import static java .util .Objects .requireNonNull ;
27
28
import static uk .co .real_logic .sbe .ir .GenerationUtil .collectFields ;
28
29
import static uk .co .real_logic .sbe .ir .GenerationUtil .collectGroups ;
29
30
import static uk .co .real_logic .sbe .ir .GenerationUtil .collectVarData ;
@@ -43,6 +44,7 @@ public final class PrecedenceChecks
43
44
44
45
private PrecedenceChecks (final Context context )
45
46
{
47
+ context .conclude ();
46
48
this .context = context ;
47
49
}
48
50
@@ -270,5 +272,14 @@ public Context precedenceChecksPropName(final String precedenceChecksPropName)
270
272
this .precedenceChecksPropName = precedenceChecksPropName ;
271
273
return this ;
272
274
}
275
+
276
+ /**
277
+ * Validates this {@link Context} instance.
278
+ */
279
+ public void conclude ()
280
+ {
281
+ requireNonNull (precedenceChecksFlagName , "precedenceChecksFlagName" );
282
+ requireNonNull (precedenceChecksPropName , "precedenceChecksPropName" );
283
+ }
273
284
}
274
285
}
You can’t perform that action at this time.
0 commit comments