Package edu.umd.cs.findbugs.util

Examples of edu.umd.cs.findbugs.util.SplitCamelCaseIdentifier


        if (BuildObligationPolicyDatabase.INFER_CLOSE_METHODS && database != null
                && !xmethod.getClassName().startsWith("java")) {
            boolean methodHasCloseInName = false;
            String methodName = xmethod.getName();
            SplitCamelCaseIdentifier splitter = new SplitCamelCaseIdentifier(methodName);
            methodHasCloseInName = splitter.split().contains("close");
            Obligation[] paramObligationTypes = database.getFactory().getParameterObligationTypes(xmethod);

            for (int i = 0; i < xmethod.getNumParams(); i++) {
                Obligation obligationType = paramObligationTypes[i];
                if (obligationType == null) {
View Full Code Here


    SplitCamelCaseIdentifier capitalized;

    @Override
    protected void setUp() throws Exception {
        splitter = new SplitCamelCaseIdentifier("displayGUIWindow");
        splitter2 = new SplitCamelCaseIdentifier("DisplayGUIWindow");
        splitterLong = new SplitCamelCaseIdentifier("nowIsTheWINTEROfOURDiscontent");
        allLower = new SplitCamelCaseIdentifier("foobar");
        allUpper = new SplitCamelCaseIdentifier("NSA");
        capitalized = new SplitCamelCaseIdentifier("Maryland");
    }
View Full Code Here

        // indications of how obligation parameters are handled.
        //

        boolean methodHasCloseInName = false;
        if (INFER_CLOSE_METHODS) {
            SplitCamelCaseIdentifier splitter = new SplitCamelCaseIdentifier(xmethod.getName());
            methodHasCloseInName = splitter.split().contains("close");
        }

        for (int i = 0; i < xmethod.getNumParams(); i++) {
            Obligation obligationType = paramObligationTypes[i];
            if (obligationType != null) {
View Full Code Here

TOP

Related Classes of edu.umd.cs.findbugs.util.SplitCamelCaseIdentifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.