Checker Framework – pluggable type checking for Java

The Checker Framework extends Java’s type system with additional compile-time checking capabilities. It helps developers detect programming errors that the standard Java compiler cannot identify, using annotations and specialised type checkers.

The software introduces pluggable type systems that provide stronger guarantees about how values are used. For example, the Nullness Checker can identify potentially unsafe object references, while other checkers verify correct initialisation, data handling and API usage.

The Checker Framework integrates with Java compilation and can be applied to individual parts of a project or an entire codebase. Developers can use the supplied checkers or create their own type systems to enforce application-specific correctness requirements.

This is free and open source software.

Key Features

  • Extends Java’s type system through pluggable compile-time type checkers.
  • Nullness Checker identifies potentially unsafe null dereferences and violations of nullability contracts.
  • Initialization Checker verifies that required non-null fields are properly initialised.
  • Map Key Checker tracks whether values are valid keys for particular maps.
  • Optional Checker identifies incorrect usage patterns involving Java Optional values.
  • Includes specialised checkers covering regular expressions, string formats, signedness and other correctness properties.
  • Uses Java type annotations to express additional constraints on variables, parameters, fields and return values.
  • Integrates with the javac compiler to report type-checking errors during compilation.
  • Supports custom type qualifiers and user-defined checkers for application-specific requirements.
  • Allows type annotations to be supplied for external libraries using stub files.
  • Provides type inference facilities to assist with the introduction of annotations.
  • Supports suppressing selected warnings and checking only parts of a larger codebase.
  • Integrates with Maven, Gradle and other Java development workflows.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: github.com/typetools/checker-framework
Support:
Developer: Checker Framework developers
License: GNU General Public License v2.0 with Classpath exception; MIT License for selected components

Checker Framework is written in Java. Learn Java with our recommended free books and free tutorials.


Related Software

Java Linter Tools
SpotBugsFind bugs in Java code
PMDExtensible cross-language static code analyzer
Error ProneCatch common Java mistakes
NullAwayEliminate NPEs in Java code
InferStatic analysis tool for Java, C++, Objective-C, and C
CheckstyleWrite Java code that adheres to a coding standard
Checker FrameworkPluggable type-checking for Java
OpenRewriteAutomates large-scale source code refactoring and migration
Find Security BugsDetects security vulnerabilities in Java applications
Forbidden APIsChecks Java code for prohibited or unsafe API usage

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted