Example usage for com.google.gwt.dev.util Name isBinaryName

List of usage examples for com.google.gwt.dev.util Name isBinaryName

Introduction

In this page you can find the example usage for com.google.gwt.dev.util Name isBinaryName.

Prototype

public static boolean isBinaryName(String name) 

Source Link

Usage

From source file:com.google.web.bindery.requestfactory.server.RequestFactoryInterfaceValidator.java

License:Apache License

/**
 * Common checks to quickly determine if a type needs to be checked.
 *///  w  w w  .j ava 2  s. com
private boolean fastFail(String binaryName) {
    if (!Name.isBinaryName(binaryName)) {
        parentLogger.poison("%s is not a binary name", binaryName);
        return true;
    }

    // Allow the poisoned flag to be reset without losing data
    if (badTypes.contains(binaryName)) {
        parentLogger.poison("Type type %s was previously marked as bad", binaryName);
        return true;
    }

    // Don't revalidate the same type
    if (!validatedTypes.add(binaryName)) {
        return true;
    }
    return false;
}