/* * Bytecode Analysis Framework * Copyright (C) 2005, University of Maryland * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* * Created on Feb 22, 2005 */ package edu.umd.cs.findbugs.ba.npe; import edu.umd.cs.findbugs.SystemProperties; /** * Knobs for null value analysis. * * @author David Hovemeyer */ public interface IsNullValueAnalysisFeatures { /** * Do not downgrade "null on simple path" values to "null on complex path" * on control splits. */ public static final boolean NO_SPLIT_DOWNGRADE_NSP = SystemProperties.getBoolean("inva.noSplitDowngradeNSP"); /** * Don't consider switch default cases as exception paths. */ public static final boolean NO_SWITCH_DEFAULT_AS_EXCEPTION = SystemProperties.getBoolean("inva.noSwitchDefaultAsException"); /** * Keep track of an extra branch, so we can distinguish conditionally-null * values with two branches from conditionally-null values with three or * more branches. */ public static final boolean NCP_EXTRA_BRANCH = SystemProperties.getBoolean("inva.ncpExtraBranch"); /** * If this property is true, then we assume parameters and return values can * be null (but aren't definitely null). */ public static final boolean UNKNOWN_VALUES_ARE_NSP = SystemProperties.getBoolean("findbugs.nullderef.assumensp"); /** * If this property is true, then resolution of nullness annotations is * based on JSR-305 type qualifiers rather than an AnnotationDatabase. */ public static final boolean USE_TYPE_QUALIFIERS = true; // SystemProperties.getBoolean("findbugs.npe.tq"); }