![JAR search and dependency download from the Maven repository](/logo.png)
org.checkerframework.checker.i18n.I18nChecker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checker Show documentation
Show all versions of checker Show documentation
The Checker Framework enhances Java's type system to
make it more powerful and useful. This lets software developers
detect and prevent errors in their Java programs.
The Checker Framework includes compiler plug-ins ("checkers")
that find bugs or verify their absence. It also permits you to
write your own compiler plug-ins.
package org.checkerframework.checker.i18n;
import java.util.ArrayList;
import java.util.Collection;
import org.checkerframework.framework.source.AggregateChecker;
import org.checkerframework.framework.source.SourceChecker;
/**
* A type-checker that enforces (and finds the violations of) two properties:
*
*
* - Only localized output gets emitted to the user
*
- Only localizable keys (i.e. keys found in localizing resource bundles) get used
* as such.
*
*
* @see I18nSubchecker
* @see LocalizableKeyChecker
* @checker_framework.manual #i18n-checker Internationalization Checker
*/
public class I18nChecker extends AggregateChecker {
@Override
protected Collection> getSupportedCheckers() {
Collection> checkers = new ArrayList<>(2);
checkers.add(I18nSubchecker.class);
checkers.add(LocalizableKeyChecker.class);
return checkers;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy