/*
 * FindBugs - Find Bugs in Java programs
 * Copyright (C) 2006, 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
 */

package edu.umd.cs.findbugs.ba.deref;

import edu.umd.cs.findbugs.ba.CFG;
import edu.umd.cs.findbugs.ba.Dataflow;
import edu.umd.cs.findbugs.ba.DataflowAnalysisException;
import edu.umd.cs.findbugs.ba.Location;

/**
 * Dataflow to find value numbers unconditionally dereferenced.
 * 
 * @author David Hovemeyer
 */
public class UnconditionalValueDerefDataflow extends
		Dataflow<UnconditionalValueDerefSet, UnconditionalValueDerefAnalysis> {

	/**
	 * Constructor.
	 * 
	 * @param cfg      the control flow graph
	 * @param analysis the analysis
	 */
	public UnconditionalValueDerefDataflow(CFG cfg, UnconditionalValueDerefAnalysis analysis) {
		super(cfg, analysis);
	}
	
	public UnconditionalValueDerefSet getFactAtLocation(Location location) throws DataflowAnalysisException {
		return getAnalysis().getFactAtLocation(location);
	}
	
	public UnconditionalValueDerefSet getFactAfterLocation(Location location) throws DataflowAnalysisException {
		return getAnalysis().getFactAfterLocation(location);
	}

}

@@ -869,16 +869,64 @@
 deref;%0A%0A
+import edu.umd.cs.findbugs.ba.AbstractDataflow;%0A
 import e
@@ -952,16 +952,16 @@
 ba.CFG;%0A
-
 import e
@@ -1248,16 +1248,24 @@
 tends%0A%09%09
+Abstract
 Dataflow
@@ -1558,344 +1558,9 @@
 s);%0A
+
 %09%7D%0A
-%09%0A%09public UnconditionalValueDerefSet getFactAtLocation(Location location) throws DataflowAnalysisException %7B%0A%09%09return getAnalysis().getFactAtLocation(location);%0A%09%7D%0A%09%0A%09public UnconditionalValueDerefSet getFactAfterLocation(Location location) throws DataflowAnalysisException %7B%0A%09%09return getAnalysis().getFactAfterLocation(location);%0A%09%7D%0A%0A
 %7D%0A

Simplified by inheriting from AbstractDataflow.