Skip to content

Commit 72a0608

Browse files
committed
Adding CheckStyle rule for banning usage of @CreateCast
1 parent a2890ae commit 72a0608

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/.checkstyle_checks.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@
265265
<property name="format" value='isNativeAccessAllowed\(\)'/>
266266
<property name="message" value='Use context.getOptions().NATIVE_PLATFORM instead.'/>
267267
</module>
268+
<module name="RegexpSinglelineJava">
269+
<property name="format" value="@CreateCast"/>
270+
<property name="message" value="Do not use @CreateCast. Use DSL inlining nodes instead."/>
271+
</module>
268272
<module name="IllegalType">
269273
<!-- Use PrintStream instead of PrintWriter, PrintWriter does not consistently flush, even when writing \n.-->
270274
<property name="illegalClassNames" value="PrintWriter"/>

0 commit comments

Comments
 (0)