All Downloads are FREE. Search and download functionalities are using the official Maven repository.

checker.src.org.checkerframework.checker.i18n.I18nChecker Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 3.42.0
Show newest version
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:
 *
 * 
    *
  1. Only localized output gets emitted to the user
  2. *
  3. Only localizable keys (i.e. keys found in localizing resource * bundles) get used as such.
  4. *
* * @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 - 2024 Weber Informatics LLC | Privacy Policy