CheckStyleUtilities.java :  » IntelliJ » checkstyle-idea » org » infernus » idea » checkstyle » util » Java Open Source

Java Open Source » IntelliJ » checkstyle idea 
checkstyle idea » org » infernus » idea » checkstyle » util » CheckStyleUtilities.java
package org.infernus.idea.checkstyle.util;

import com.intellij.openapi.fileTypes.FileType;
import com.intellij.openapi.fileTypes.StdFileTypes;

/**
 * General utilities to make life easier with regards to CheckStyle.
 *
 * @author James Shiell
 * @version 1.0
 */
public final class CheckStyleUtilities {

    /**
     * This is a utility class and cannot be instantiated.
     */
    private CheckStyleUtilities() {

    }

    /**
     * Is this file type supported by CheckStyle?
     *
     * @param fileType the file type to test.
     * @return true if this file is supported by CheckStyle.
     */
    public static boolean isValidFileType(final FileType fileType) {
        return fileType != null && StdFileTypes.JAVA.equals(fileType);
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.