-
Notifications
You must be signed in to change notification settings - Fork 746
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #1499 GOOGLE: ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=294723271
- Loading branch information
Showing
16 changed files
with
139 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,16 +36,16 @@ | |
import com.sun.tools.javac.util.Context; | ||
import javax.annotation.Nullable; | ||
import javax.annotation.processing.ProcessingEnvironment; | ||
import org.checkerframework.dataflow.analysis.AbstractValue; | ||
import org.checkerframework.dataflow.analysis.Analysis; | ||
import org.checkerframework.dataflow.analysis.Store; | ||
import org.checkerframework.dataflow.analysis.TransferFunction; | ||
import org.checkerframework.dataflow.cfg.CFGBuilder; | ||
import org.checkerframework.dataflow.cfg.ControlFlowGraph; | ||
import org.checkerframework.dataflow.cfg.UnderlyingAST; | ||
import org.checkerframework.shaded.dataflow.analysis.AbstractValue; | ||
import org.checkerframework.shaded.dataflow.analysis.Analysis; | ||
import org.checkerframework.shaded.dataflow.analysis.Store; | ||
import org.checkerframework.shaded.dataflow.analysis.TransferFunction; | ||
import org.checkerframework.shaded.dataflow.cfg.CFGBuilder; | ||
import org.checkerframework.shaded.dataflow.cfg.ControlFlowGraph; | ||
import org.checkerframework.shaded.dataflow.cfg.UnderlyingAST; | ||
|
||
/** | ||
* Provides a wrapper around {@link org.checkerframework.dataflow.analysis.Analysis}. | ||
* Provides a wrapper around {@link org.checkerframework.shaded.dataflow.analysis.Analysis}. | ||
* | ||
* @author [email protected] (Konstantin Weitz) | ||
*/ | ||
|
@@ -76,12 +76,11 @@ public static interface Result< | |
new CacheLoader<AnalysisParams, Analysis<?, ?, ?>>() { | ||
@Override | ||
public Analysis<?, ?, ?> load(AnalysisParams key) { | ||
final ProcessingEnvironment env = key.environment(); | ||
final ControlFlowGraph cfg = key.cfg(); | ||
final TransferFunction<?, ?> transfer = key.transferFunction(); | ||
|
||
@SuppressWarnings({"unchecked", "rawtypes"}) | ||
final Analysis<?, ?, ?> analysis = new Analysis(transfer, env); | ||
final Analysis<?, ?, ?> analysis = new Analysis(transfer); | ||
analysis.performAnalysis(cfg); | ||
return analysis; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.