Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-2
-
Fix Version/s: 2.0-beta-3
-
Component/s: Static Type Checker
-
Labels:None
-
Number of attachments :
Description
In general I want to turn on static type checking at a fairly high granularity, such as entire class (or package if you implement package-level type checking). I may want to turn type checking off for an individual sub-unit. If for example I have a class with a lot of methods, and want to turn off checking for one method, I don't want to have to annotate every single method with @TypeChecked except the one exception.
Both @TypeChecked and @CompileStatic now support an optional value parameter which allows a method to be skipped. For example:
or, short version with imports: