Skip to content

hsrinara/java-type-checker

Repository files navigation

Type Checker

A simple demonstration of using the Java annotation processor to give compilation errors for annotated types. See output by running:

./compile.sh

Intellij Settings

Compiler-> Java Compiler -> Additional command line parameters

-target 1.8 -source 1.8 -Aunits=org.hsrinara.typechecker.custom.Price,org.hsrinara.typechecker.custom.Quantity

Compiler -> Annotation processors

Enable annotation processor by ticking the checkbox

Compiler -> Annotation processors -> Processor FQ Name

org.checkerframework.checker.units.UnitsChecker

Other resources

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published