Merge branch 'master' of https://github.com/wala/WALA
This commit is contained in:
commit
b9b498bd17
|
@ -1,2 +1,2 @@
|
||||||
This is the main source repository for WALA. For more details on WALA, see <a
|
This is the main source repository for WALA. For more details on WALA, see <a
|
||||||
href="http://wala.sourceforge.net">the WALA home page</a>.
|
href="http://wala.sourceforge.net">the WALA home page</a> and <a href="https://wala.github.io/javadoc">WALA Javadoc</a>.
|
||||||
|
|
|
@ -103,6 +103,6 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=di
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error
|
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=error
|
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=error
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
|
||||||
org.eclipse.jdt.core.compiler.source=1.7
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
|
|
|
@ -100,7 +100,7 @@ org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict
|
||||||
org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=error
|
org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
|
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=error
|
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=error
|
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=error
|
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
|
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
|
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
DELEGATES_PREFERENCE=delegateValidatorList
|
DELEGATES_PREFERENCE=delegateValidatorList
|
||||||
USER_BUILD_PREFERENCE=enabledBuildValidatorList
|
USER_BUILD_PREFERENCE=enabledBuildValidatorList
|
||||||
USER_MANUAL_PREFERENCE=enabledManualValidatorList
|
USER_MANUAL_PREFERENCE=enabledManualValidatorList
|
||||||
USER_PREFERENCE=overrideGlobalPreferencestruedisableAllValidationfalseversion1.2.700.v201610061600
|
USER_PREFERENCE=overrideGlobalPreferencestruedisableAllValidationfalseversion1.2.700.v201508251749
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
override=true
|
override=true
|
||||||
suspend=false
|
suspend=false
|
||||||
vals/org.eclipse.wst.html.core.HTMLValidator/groups=0107include06111contentType136org.eclipse.wst.html.core.htmlsourceT07fileext04htmlF07fileext05xhtmlF07fileext03htmF07fileext04htplF07fileext03wmlF0107exclude11804file131examples-src/pages/garbage.htmlT0304file132examples-src/pages/garbage2.htmlT0304file139target/site/dependency-convergence.htmlT0304file136examples-src/ajaxslt/test/xpath.htmlT0304file139examples-src/ajaxslt/xslt_unittest.htmlT0304file135examples-src/ajaxslt/test/xslt.htmlT0304file129examples-src/pages/page4.htmlT0304file128examples-src/pages/list.htmlT0304file129examples-src/pages/page1.htmlT0304file129examples-src/pages/page2.htmlT0304file133examples-src/pages/prototype.htmlT0304file133examples-src/pages/prototype.htmlT0304file132examples-src/pages/skeleton.htmlT0304file133examples-src/pages/skeleton2.htmlT0304file133examples-src/pages/skeleton3.htmlT0304file136examples-src/pages/windowonload.htmlT0304file131examples-src/pages/windowx.htmlT0304file145examples-src/tests/portal-example-simple.htmlT03
|
vals/org.eclipse.wst.html.core.HTMLValidator/groups=0107include06111contentType136org.eclipse.wst.html.core.htmlsourceT07fileext04htmlF07fileext05xhtmlF07fileext03htmF07fileext04htplF07fileext03wmlF0107exclude11804file131examples-src/pages/garbage.htmlT0304file132examples-src/pages/garbage2.htmlT0304file139target/site/dependency-convergence.htmlT0304file136examples-src/ajaxslt/test/xpath.htmlT0304file139examples-src/ajaxslt/xslt_unittest.htmlT0304file135examples-src/ajaxslt/test/xslt.htmlT0304file129examples-src/pages/page4.htmlT0304file128examples-src/pages/list.htmlT0304file129examples-src/pages/page1.htmlT0304file129examples-src/pages/page2.htmlT0304file133examples-src/pages/prototype.htmlT0304file133examples-src/pages/prototype.htmlT0304file132examples-src/pages/skeleton.htmlT0304file133examples-src/pages/skeleton2.htmlT0304file133examples-src/pages/skeleton3.htmlT0304file136examples-src/pages/windowonload.htmlT0304file131examples-src/pages/windowx.htmlT0304file145examples-src/tests/portal-example-simple.htmlT03
|
||||||
vals/org.eclipse.wst.xml.core.xml/groups=0107include05111contentType128org.eclipse.core.runtime.xmlT111contentType134org.eclipse.wst.xml.core.xmlsourceT111contentType134org.eclipse.wst.xml.core.xslsourceT111contentType134org.eclipse.jst.jsp.core.tldsourceT07fileext03xmlF0107exclude08113projectNature134org.eclipse.jst.j2ee.ejb.EJBNature113projectNature130org.eclipse.jst.j2ee.EARNature04file08.projectT0104file110.classpathT0104file110.settings/T0204file122target/p2artifacts.xmlT0304file120target/p2content.xmlT0304file128target/antrun/build-main.xmlT03
|
vals/org.eclipse.wst.xml.core.xml/groups=0107include05111contentType128org.eclipse.core.runtime.xmlT111contentType134org.eclipse.wst.xml.core.xmlsourceT111contentType134org.eclipse.wst.xml.core.xslsourceT111contentType134org.eclipse.jst.jsp.core.tldsourceT07fileext03xmlF0107exclude09113projectNature134org.eclipse.jst.j2ee.ejb.EJBNature113projectNature130org.eclipse.jst.j2ee.EARNature04file08.projectT0104file110.classpathT0104file110.settings/T0204file122target/p2artifacts.xmlT0304file120target/p2content.xmlT0304file128target/antrun/build-main.xmlT0304file167target/javadoc-bundle-options/javadoc-options-javadoc-resources.xmlT03
|
||||||
vf.version=3
|
vf.version=3
|
||||||
|
|
|
@ -60,7 +60,7 @@ org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
|
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=error
|
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=error
|
||||||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
||||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
||||||
|
@ -117,7 +117,7 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=di
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=error
|
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=error
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
|
||||||
org.eclipse.jdt.core.compiler.source=1.7
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
|
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
|
||||||
|
|
|
@ -433,6 +433,8 @@ public class FlowGraph implements Iterable<Vertex> {
|
||||||
final PointerAnalysis<ObjectVertex> pa = this;
|
final PointerAnalysis<ObjectVertex> pa = this;
|
||||||
class FieldBasedHeapGraph extends SlowSparseNumberedGraph<Object> implements HeapGraph<ObjectVertex> {
|
class FieldBasedHeapGraph extends SlowSparseNumberedGraph<Object> implements HeapGraph<ObjectVertex> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -3544629644808422215L;
|
||||||
|
|
||||||
private <X> X ensureNode(X n) {
|
private <X> X ensureNode(X n) {
|
||||||
if (!containsNode(n)) {
|
if (!containsNode(n)) {
|
||||||
addNode(n);
|
addNode(n);
|
||||||
|
|
|
@ -1010,7 +1010,6 @@ public class JavaScriptLoader extends CAstAbstractModuleLoader {
|
||||||
bootstrapFileNames.add(prologueFileName);
|
bootstrapFileNames.add(prologueFileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@Override
|
@Override
|
||||||
protected TranslatorToCAst getTranslatorToCAst(final CAst ast, ModuleEntry module) {
|
protected TranslatorToCAst getTranslatorToCAst(final CAst ast, ModuleEntry module) {
|
||||||
TranslatorToCAst translator = translatorFactory.make(ast, module);
|
TranslatorToCAst translator = translatorFactory.make(ast, module);
|
||||||
|
|
|
@ -61,7 +61,7 @@ org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
|
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=error
|
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=error
|
||||||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
||||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
||||||
|
@ -118,7 +118,7 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=di
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error
|
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=error
|
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=error
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
|
||||||
org.eclipse.jdt.core.compiler.source=1.7
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
|
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
|
||||||
|
|
|
@ -34,6 +34,7 @@ public interface TranslatorToCAst {
|
||||||
public <C extends RewriteContext<K>, K extends CopyKey<K>> void addRewriter(CAstRewriterFactory<C, K> factory, boolean prepend);
|
public <C extends RewriteContext<K>, K extends CopyKey<K>> void addRewriter(CAstRewriterFactory<C, K> factory, boolean prepend);
|
||||||
|
|
||||||
public class Error extends WalaException {
|
public class Error extends WalaException {
|
||||||
|
private static final long serialVersionUID = -8440950320425119751L;
|
||||||
public final Set<Warning> warning;
|
public final Set<Warning> warning;
|
||||||
|
|
||||||
public Error(Set<Warning> message) {
|
public Error(Set<Warning> message) {
|
||||||
|
|
|
@ -39,6 +39,7 @@ public class CAstFunctions {
|
||||||
public static Iterator<CAstNode> iterateNodes(final CAstNode tree) {
|
public static Iterator<CAstNode> iterateNodes(final CAstNode tree) {
|
||||||
return new DFSDiscoverTimeIterator<CAstNode>() {
|
return new DFSDiscoverTimeIterator<CAstNode>() {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -627203481092871529L;
|
||||||
private final Map<Object, Iterator<? extends CAstNode>> pendingChildren = HashMapFactory.make();
|
private final Map<Object, Iterator<? extends CAstNode>> pendingChildren = HashMapFactory.make();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -59,6 +59,8 @@ public class CAstPattern {
|
||||||
|
|
||||||
public static class Segments extends TreeMap<String,Object> {
|
public static class Segments extends TreeMap<String,Object> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 4119719848336209576L;
|
||||||
|
|
||||||
public CAstNode getSingle(String name) {
|
public CAstNode getSingle(String name) {
|
||||||
assert containsKey(name) : name;
|
assert containsKey(name) : name;
|
||||||
return (CAstNode) get(name);
|
return (CAstNode) get(name);
|
||||||
|
|
|
@ -60,7 +60,7 @@ org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
|
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=error
|
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=error
|
||||||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
||||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
||||||
|
|
|
@ -37,7 +37,6 @@ public final class TwoLevelVectorTest extends WalaTestCase {
|
||||||
|
|
||||||
// --- Test cases
|
// --- Test cases
|
||||||
|
|
||||||
@SuppressWarnings("static-method")
|
|
||||||
@Test public void testCase1() {
|
@Test public void testCase1() {
|
||||||
final TwoLevelVector<Integer> tlVector = new TwoLevelVector<>();
|
final TwoLevelVector<Integer> tlVector = new TwoLevelVector<>();
|
||||||
tlVector.iterator();
|
tlVector.iterator();
|
||||||
|
|
|
@ -74,6 +74,8 @@ public class ContextSensitiveReachingDefs {
|
||||||
private class ReachingDefsDomain extends MutableMapping<Pair<CGNode, Integer>> implements
|
private class ReachingDefsDomain extends MutableMapping<Pair<CGNode, Integer>> implements
|
||||||
TabulationDomain<Pair<CGNode, Integer>, BasicBlockInContext<IExplodedBasicBlock>> {
|
TabulationDomain<Pair<CGNode, Integer>, BasicBlockInContext<IExplodedBasicBlock>> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 4014252274660361965L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasPriorityOver(PathEdge<BasicBlockInContext<IExplodedBasicBlock>> p1,
|
public boolean hasPriorityOver(PathEdge<BasicBlockInContext<IExplodedBasicBlock>> p1,
|
||||||
PathEdge<BasicBlockInContext<IExplodedBasicBlock>> p2) {
|
PathEdge<BasicBlockInContext<IExplodedBasicBlock>> p2) {
|
||||||
|
|
|
@ -78,6 +78,8 @@ public class StaticInitializer {
|
||||||
private class InitializerDomain extends MutableMapping<IClass> implements
|
private class InitializerDomain extends MutableMapping<IClass> implements
|
||||||
TabulationDomain<IClass, BasicBlockInContext<IExplodedBasicBlock>> {
|
TabulationDomain<IClass, BasicBlockInContext<IExplodedBasicBlock>> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -1897766113586243833L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasPriorityOver(PathEdge<BasicBlockInContext<IExplodedBasicBlock>> p1,
|
public boolean hasPriorityOver(PathEdge<BasicBlockInContext<IExplodedBasicBlock>> p1,
|
||||||
PathEdge<BasicBlockInContext<IExplodedBasicBlock>> p2) {
|
PathEdge<BasicBlockInContext<IExplodedBasicBlock>> p2) {
|
||||||
|
|
|
@ -70,7 +70,7 @@ org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
|
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
|
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
||||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
||||||
|
@ -119,7 +119,7 @@ org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverridin
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
|
org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedImport=error
|
org.eclipse.jdt.core.compiler.problem.unusedImport=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedLabel=error
|
org.eclipse.jdt.core.compiler.problem.unusedLabel=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
|
org.eclipse.jdt.core.compiler.problem.unusedLocal=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
|
org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedParameter=error
|
org.eclipse.jdt.core.compiler.problem.unusedParameter=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
|
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
|
||||||
|
|
|
@ -35,7 +35,6 @@ public class IntraproceduralNullPointerAnalysis {
|
||||||
this.ir = ir;
|
this.ir = ir;
|
||||||
|
|
||||||
final int maxVarNum = ir.getSymbolTable().getMaxValueNumber();
|
final int maxVarNum = ir.getSymbolTable().getMaxValueNumber();
|
||||||
final int[] paramValNum = ir.getParameterValueNumbers();
|
|
||||||
SSACFG cfg = ir.getControlFlowGraph();
|
SSACFG cfg = ir.getControlFlowGraph();
|
||||||
final NullPointerFrameWork<ISSABasicBlock> problem = new NullPointerFrameWork<ISSABasicBlock>(
|
final NullPointerFrameWork<ISSABasicBlock> problem = new NullPointerFrameWork<ISSABasicBlock>(
|
||||||
cfg, ir);
|
cfg, ir);
|
||||||
|
|
|
@ -135,7 +135,6 @@ public class IntraprocNullPointerAnalysis<T extends ISSABasicBlock> {
|
||||||
} else {
|
} else {
|
||||||
final List<T> catched = searchNodesWithPathToCatchAll(cfg);
|
final List<T> catched = searchNodesWithPathToCatchAll(cfg);
|
||||||
final NullPointerFrameWork<T> problem = new NullPointerFrameWork<T>(cfg, ir);
|
final NullPointerFrameWork<T> problem = new NullPointerFrameWork<T>(cfg, ir);
|
||||||
final int[] paramValNum = ir.getParameterValueNumbers();
|
|
||||||
|
|
||||||
solver = new NullPointerSolver<T>(problem, maxVarNum, cfg.entry(), ir, initialState);
|
solver = new NullPointerSolver<T>(problem, maxVarNum, cfg.entry(), ir, initialState);
|
||||||
|
|
||||||
|
|
|
@ -261,7 +261,6 @@ public class NullPointerState extends AbstractVariable<NullPointerState> {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see com.ibm.wala.fixedpoint.impl.AbstractOperator#evaluate(com.ibm.wala.fixpoint.IVariable, com.ibm.wala.fixpoint.IVariable[])
|
* @see com.ibm.wala.fixedpoint.impl.AbstractOperator#evaluate(com.ibm.wala.fixpoint.IVariable, com.ibm.wala.fixpoint.IVariable[])
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("rawtypes")
|
|
||||||
@Override
|
@Override
|
||||||
public byte evaluate(NullPointerState lhs, NullPointerState[] rhs) {
|
public byte evaluate(NullPointerState lhs, NullPointerState[] rhs) {
|
||||||
boolean changed = false;
|
boolean changed = false;
|
||||||
|
|
|
@ -19,6 +19,7 @@ import com.ibm.wala.util.CancelException;
|
||||||
*/
|
*/
|
||||||
public class TabulationCancelException extends CancelException {
|
public class TabulationCancelException extends CancelException {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 4073189707860241945L;
|
||||||
private final Result result;
|
private final Result result;
|
||||||
|
|
||||||
protected TabulationCancelException(Exception cause, Result r) {
|
protected TabulationCancelException(Exception cause, Result r) {
|
||||||
|
|
|
@ -949,7 +949,6 @@ public class TabulationSolver<T, P, F> {
|
||||||
TreeMap<Object, TreeSet<T>> map = new TreeMap<Object, TreeSet<T>>(ToStringComparator.instance());
|
TreeMap<Object, TreeSet<T>> map = new TreeMap<Object, TreeSet<T>>(ToStringComparator.instance());
|
||||||
|
|
||||||
Comparator<Object> c = new Comparator<Object>() {
|
Comparator<Object> c = new Comparator<Object>() {
|
||||||
@SuppressWarnings("rawtypes")
|
|
||||||
@Override
|
@Override
|
||||||
public int compare(Object o1, Object o2) {
|
public int compare(Object o1, Object o2) {
|
||||||
if (!(o1 instanceof IBasicBlock)) {
|
if (!(o1 instanceof IBasicBlock)) {
|
||||||
|
|
|
@ -17,6 +17,8 @@ import com.ibm.wala.util.intset.MutableMapping;
|
||||||
*/
|
*/
|
||||||
public class UnorderedDomain<T, U> extends MutableMapping<T> implements TabulationDomain<T, U> {
|
public class UnorderedDomain<T, U> extends MutableMapping<T> implements TabulationDomain<T, U> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -988075488958891635L;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @see com.ibm.wala.dataflow.IFDS.TabulationDomain#isWeakerThan(int, int)
|
* @see com.ibm.wala.dataflow.IFDS.TabulationDomain#isWeakerThan(int, int)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -49,4 +49,6 @@ package com.ibm.wala.demandpa.alg.statemachine;
|
||||||
*/
|
*/
|
||||||
public class StatesMergedException extends RuntimeException {
|
public class StatesMergedException extends RuntimeException {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 7769961571949421524L;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,6 @@ import com.ibm.wala.ipa.callgraph.propagation.ReturnValueKey;
|
||||||
import com.ibm.wala.ipa.callgraph.propagation.SSAPropagationCallGraphBuilder;
|
import com.ibm.wala.ipa.callgraph.propagation.SSAPropagationCallGraphBuilder;
|
||||||
import com.ibm.wala.ipa.callgraph.propagation.cfa.CallerSiteContext;
|
import com.ibm.wala.ipa.callgraph.propagation.cfa.CallerSiteContext;
|
||||||
import com.ibm.wala.ipa.cha.IClassHierarchy;
|
import com.ibm.wala.ipa.cha.IClassHierarchy;
|
||||||
import com.ibm.wala.ssa.DefUse;
|
|
||||||
import com.ibm.wala.ssa.IR;
|
import com.ibm.wala.ssa.IR;
|
||||||
import com.ibm.wala.ssa.ISSABasicBlock;
|
import com.ibm.wala.ssa.ISSABasicBlock;
|
||||||
import com.ibm.wala.ssa.SSAAbstractInvokeInstruction;
|
import com.ibm.wala.ssa.SSAAbstractInvokeInstruction;
|
||||||
|
@ -261,7 +260,6 @@ public abstract class AbstractDemandFlowGraph extends AbstractFlowGraph {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
DefUse du = node.getDU();
|
|
||||||
addNodeInstructionConstraints(node, ir);
|
addNodeInstructionConstraints(node, ir);
|
||||||
addNodePassthruExceptionConstraints(node, ir);
|
addNodePassthruExceptionConstraints(node, ir);
|
||||||
addNodeConstantConstraints(node, ir);
|
addNodeConstantConstraints(node, ir);
|
||||||
|
|
|
@ -95,6 +95,8 @@ import com.ibm.wala.util.ref.ReferenceCleanser;
|
||||||
*/
|
*/
|
||||||
public class SimpleDemandPointerFlowGraph extends SlowSparseNumberedGraph<Object> {
|
public class SimpleDemandPointerFlowGraph extends SlowSparseNumberedGraph<Object> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 5208052568163692029L;
|
||||||
|
|
||||||
private final static boolean DEBUG = false;
|
private final static boolean DEBUG = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,6 +20,8 @@ import com.ibm.wala.util.CancelException;
|
||||||
*/
|
*/
|
||||||
public class CallGraphBuilderCancelException extends CancelException {
|
public class CallGraphBuilderCancelException extends CancelException {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -3071193971009314659L;
|
||||||
|
|
||||||
private final CallGraph cg;
|
private final CallGraph cg;
|
||||||
|
|
||||||
private final PointerAnalysis<InstanceKey> pointerAnalysis;
|
private final PointerAnalysis<InstanceKey> pointerAnalysis;
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
package com.ibm.wala.ipa.callgraph.cha;
|
package com.ibm.wala.ipa.callgraph.cha;
|
||||||
|
|
||||||
import java.lang.ref.SoftReference;
|
import java.lang.ref.SoftReference;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
@ -36,14 +37,12 @@ import com.ibm.wala.ssa.IR;
|
||||||
import com.ibm.wala.util.CancelException;
|
import com.ibm.wala.util.CancelException;
|
||||||
import com.ibm.wala.util.Predicate;
|
import com.ibm.wala.util.Predicate;
|
||||||
import com.ibm.wala.util.collections.ComposedIterator;
|
import com.ibm.wala.util.collections.ComposedIterator;
|
||||||
import com.ibm.wala.util.collections.EmptyIterator;
|
|
||||||
import com.ibm.wala.util.collections.FilterIterator;
|
import com.ibm.wala.util.collections.FilterIterator;
|
||||||
import com.ibm.wala.util.collections.HashMapFactory;
|
import com.ibm.wala.util.collections.HashMapFactory;
|
||||||
import com.ibm.wala.util.collections.HashSetFactory;
|
import com.ibm.wala.util.collections.HashSetFactory;
|
||||||
import com.ibm.wala.util.collections.Iterator2Collection;
|
import com.ibm.wala.util.collections.Iterator2Collection;
|
||||||
import com.ibm.wala.util.collections.IteratorUtil;
|
import com.ibm.wala.util.collections.IteratorUtil;
|
||||||
import com.ibm.wala.util.collections.MapIterator;
|
import com.ibm.wala.util.collections.MapIterator;
|
||||||
import com.ibm.wala.util.collections.NonNullSingletonIterator;
|
|
||||||
import com.ibm.wala.util.functions.Function;
|
import com.ibm.wala.util.functions.Function;
|
||||||
import com.ibm.wala.util.graph.NumberedEdgeManager;
|
import com.ibm.wala.util.graph.NumberedEdgeManager;
|
||||||
import com.ibm.wala.util.intset.IntSet;
|
import com.ibm.wala.util.intset.IntSet;
|
||||||
|
@ -138,17 +137,24 @@ public class CHACallGraph extends BasicCallGraph<CHAContextInterpreter> {
|
||||||
return cha;
|
return cha;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private final Map<CallSiteReference, Set<IMethod>> targetCache = HashMapFactory.make();
|
||||||
|
|
||||||
private Iterator<IMethod> getPossibleTargets(CallSiteReference site) {
|
private Iterator<IMethod> getPossibleTargets(CallSiteReference site) {
|
||||||
if (site.isDispatch()) {
|
Set<IMethod> result = targetCache.get(site);
|
||||||
return cha.getPossibleTargets(site.getDeclaredTarget()).iterator();
|
if (result == null) {
|
||||||
} else {
|
if (site.isDispatch()) {
|
||||||
IMethod m = cha.resolveMethod(site.getDeclaredTarget());
|
result = cha.getPossibleTargets(site.getDeclaredTarget());
|
||||||
if (m != null) {
|
|
||||||
return new NonNullSingletonIterator<IMethod>(m);
|
|
||||||
} else {
|
} else {
|
||||||
return EmptyIterator.instance();
|
IMethod m = cha.resolveMethod(site.getDeclaredTarget());
|
||||||
|
if (m != null) {
|
||||||
|
result = Collections.singleton(m);
|
||||||
|
} else {
|
||||||
|
result = Collections.emptySet();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
targetCache.put(site, result);
|
||||||
}
|
}
|
||||||
|
return result.iterator();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -24,6 +24,7 @@ import com.ibm.wala.ipa.cha.IClassHierarchy;
|
||||||
*/
|
*/
|
||||||
public class AllApplicationEntrypoints extends HashSet<Entrypoint> {
|
public class AllApplicationEntrypoints extends HashSet<Entrypoint> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 6541081454519490199L;
|
||||||
private final static boolean DEBUG = false;
|
private final static boolean DEBUG = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -834,7 +834,6 @@ public abstract class PropagationCallGraphBuilder implements CallGraphBuilder<In
|
||||||
if (rhs.size() == 0) {
|
if (rhs.size() == 0) {
|
||||||
return NOT_CHANGED;
|
return NOT_CHANGED;
|
||||||
}
|
}
|
||||||
final PointerKey object = rhs.getPointerKey();
|
|
||||||
|
|
||||||
PointsToSetVariable def = getFixedSet();
|
PointsToSetVariable def = getFixedSet();
|
||||||
final PointerKey dVal = def.getPointerKey();
|
final PointerKey dVal = def.getPointerKey();
|
||||||
|
@ -922,7 +921,6 @@ public abstract class PropagationCallGraphBuilder implements CallGraphBuilder<In
|
||||||
if (rhs.size() == 0) {
|
if (rhs.size() == 0) {
|
||||||
return NOT_CHANGED;
|
return NOT_CHANGED;
|
||||||
}
|
}
|
||||||
PointerKey object = rhs.getPointerKey();
|
|
||||||
|
|
||||||
PointsToSetVariable val = getFixedSet();
|
PointsToSetVariable val = getFixedSet();
|
||||||
PointerKey pVal = val.getPointerKey();
|
PointerKey pVal = val.getPointerKey();
|
||||||
|
@ -1013,7 +1011,6 @@ public abstract class PropagationCallGraphBuilder implements CallGraphBuilder<In
|
||||||
if (ref.size() == 0) {
|
if (ref.size() == 0) {
|
||||||
return NOT_CHANGED;
|
return NOT_CHANGED;
|
||||||
}
|
}
|
||||||
final PointerKey object = ref.getPointerKey();
|
|
||||||
PointsToSetVariable def = getFixedSet();
|
PointsToSetVariable def = getFixedSet();
|
||||||
final PointerKey dVal = def.getPointerKey();
|
final PointerKey dVal = def.getPointerKey();
|
||||||
|
|
||||||
|
@ -1130,7 +1127,6 @@ public abstract class PropagationCallGraphBuilder implements CallGraphBuilder<In
|
||||||
if (rhs.size() == 0) {
|
if (rhs.size() == 0) {
|
||||||
return NOT_CHANGED;
|
return NOT_CHANGED;
|
||||||
}
|
}
|
||||||
final PointerKey object = rhs.getPointerKey();
|
|
||||||
|
|
||||||
PointsToSetVariable val = getFixedSet();
|
PointsToSetVariable val = getFixedSet();
|
||||||
final PointerKey pVal = val.getPointerKey();
|
final PointerKey pVal = val.getPointerKey();
|
||||||
|
|
|
@ -2021,7 +2021,6 @@ public abstract class SSAPropagationCallGraphBuilder extends PropagationCallGrap
|
||||||
// to take the invoke instruction as a parameter instead, since invs is
|
// to take the invoke instruction as a parameter instead, since invs is
|
||||||
// associated with the instruction
|
// associated with the instruction
|
||||||
final CallSiteReference site = instruction.getCallSite();
|
final CallSiteReference site = instruction.getCallSite();
|
||||||
IntSet params = getRelevantParameters(caller, site);
|
|
||||||
final Set<CGNode> targets = HashSetFactory.make();
|
final Set<CGNode> targets = HashSetFactory.make();
|
||||||
VoidFunction<InstanceKey[]> f = new VoidFunction<InstanceKey[]>() {
|
VoidFunction<InstanceKey[]> f = new VoidFunction<InstanceKey[]>() {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -20,6 +20,8 @@ import com.ibm.wala.util.collections.Pair;
|
||||||
*/
|
*/
|
||||||
public final class CallSite extends Pair<CallSiteReference, CGNode> {
|
public final class CallSite extends Pair<CallSiteReference, CGNode> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -5277592800329960642L;
|
||||||
|
|
||||||
public CallSite(CallSiteReference site, CGNode node) {
|
public CallSite(CallSiteReference site, CGNode node) {
|
||||||
super(site, node);
|
super(site, node);
|
||||||
if (site == null) {
|
if (site == null) {
|
||||||
|
|
|
@ -207,6 +207,8 @@ public class SDG<T extends InstanceKey> extends AbstractNumberedGraph<Statement>
|
||||||
|
|
||||||
private class Nodes extends SlowNumberedNodeManager<Statement> {
|
private class Nodes extends SlowNumberedNodeManager<Statement> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -1450214776332091211L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean containsNode(Statement N) {
|
public boolean containsNode(Statement N) {
|
||||||
if (super.containsNode(N)) {
|
if (super.containsNode(N)) {
|
||||||
|
|
|
@ -236,6 +236,8 @@ public final class TypeName implements Serializable {
|
||||||
* A key into the dictionary; this is just like a type name, but uses value equality instead of object equality.
|
* A key into the dictionary; this is just like a type name, but uses value equality instead of object equality.
|
||||||
*/
|
*/
|
||||||
private final static class TypeNameKey implements Serializable {
|
private final static class TypeNameKey implements Serializable {
|
||||||
|
private static final long serialVersionUID = -8284030936836318929L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The package, like "java/lang". null means the unnamed package.
|
* The package, like "java/lang". null means the unnamed package.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -16,6 +16,8 @@ package com.ibm.wala.util;
|
||||||
*/
|
*/
|
||||||
public class CancelRuntimeException extends RuntimeException {
|
public class CancelRuntimeException extends RuntimeException {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 5859062345002606705L;
|
||||||
|
|
||||||
protected CancelRuntimeException(String msg) {
|
protected CancelRuntimeException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -147,6 +147,8 @@ public class ProgressMaster implements IProgressMonitor {
|
||||||
|
|
||||||
public static class TooMuchMemoryUsed extends Exception {
|
public static class TooMuchMemoryUsed extends Exception {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -7174940833610292692L;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private class Timeout extends Thread {
|
private class Timeout extends Thread {
|
||||||
|
|
|
@ -54,6 +54,8 @@ package com.ibm.wala.util.ssa;
|
||||||
* @author Tobias Blaschke <code@tobiasblaschke.de>
|
* @author Tobias Blaschke <code@tobiasblaschke.de>
|
||||||
*/
|
*/
|
||||||
public class ClassLookupException extends RuntimeException {
|
public class ClassLookupException extends RuntimeException {
|
||||||
|
private static final long serialVersionUID = 7551139209041666026L;
|
||||||
|
|
||||||
public ClassLookupException(String message) {
|
public ClassLookupException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,7 @@ import com.ibm.wala.ssa.IR;
|
||||||
|
|
||||||
public class CgPanel extends JSplitPane{
|
public class CgPanel extends JSplitPane{
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -4094408933344852549L;
|
||||||
private final CallGraph cg;
|
private final CallGraph cg;
|
||||||
|
|
||||||
public CgPanel(CallGraph cg) {
|
public CgPanel(CallGraph cg) {
|
||||||
|
|
|
@ -30,6 +30,7 @@ import com.ibm.wala.ipa.cha.IClassHierarchy;
|
||||||
|
|
||||||
public class ChaPanel extends JSplitPane {
|
public class ChaPanel extends JSplitPane {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -9058908127737757320L;
|
||||||
private final IClassHierarchy cha;
|
private final IClassHierarchy cha;
|
||||||
|
|
||||||
public ChaPanel(IClassHierarchy cha) {
|
public ChaPanel(IClassHierarchy cha) {
|
||||||
|
|
|
@ -32,6 +32,7 @@ import com.ibm.wala.ssa.IR;
|
||||||
import com.ibm.wala.util.collections.HashMapFactory;
|
import com.ibm.wala.util.collections.HashMapFactory;
|
||||||
|
|
||||||
public class IrViewer extends JPanel{
|
public class IrViewer extends JPanel{
|
||||||
|
private static final long serialVersionUID = -5668847442988389016L;
|
||||||
private JTextField methodName;
|
private JTextField methodName;
|
||||||
private DefaultListModel<String> irLineList = new DefaultListModel<>();
|
private DefaultListModel<String> irLineList = new DefaultListModel<>();
|
||||||
private JList<String> irLines;
|
private JList<String> irLines;
|
||||||
|
|
|
@ -54,6 +54,7 @@ import com.ibm.wala.util.intset.OrdinalSetMapping;
|
||||||
*/
|
*/
|
||||||
public class PaPanel extends JSplitPane {
|
public class PaPanel extends JSplitPane {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8120735305334110889L;
|
||||||
protected final PointerAnalysis<InstanceKey> pa;
|
protected final PointerAnalysis<InstanceKey> pa;
|
||||||
protected final CallGraph cg;
|
protected final CallGraph cg;
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@ import javax.swing.JScrollPane;
|
||||||
import javax.swing.JTextField;
|
import javax.swing.JTextField;
|
||||||
|
|
||||||
public class SourceViewer extends JPanel{
|
public class SourceViewer extends JPanel{
|
||||||
|
private static final long serialVersionUID = -1688405955293925453L;
|
||||||
private URL sourceURL;
|
private URL sourceURL;
|
||||||
private JTextField sourceCodeLocation;
|
private JTextField sourceCodeLocation;
|
||||||
private DefaultListModel<String> sourceCodeLinesList = new DefaultListModel<>();
|
private DefaultListModel<String> sourceCodeLinesList = new DefaultListModel<>();
|
||||||
|
|
|
@ -29,6 +29,7 @@ import com.ibm.wala.ipa.callgraph.propagation.PointerAnalysis;
|
||||||
*/
|
*/
|
||||||
public class WalaViewer extends JFrame {
|
public class WalaViewer extends JFrame {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -8580178580211053765L;
|
||||||
protected static final String DefaultMutableTreeNode = null;
|
protected static final String DefaultMutableTreeNode = null;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
|
||||||
org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
|
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=error
|
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=error
|
||||||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
||||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
||||||
|
@ -110,7 +110,7 @@ org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverridin
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
|
org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedImport=error
|
org.eclipse.jdt.core.compiler.problem.unusedImport=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedLabel=error
|
org.eclipse.jdt.core.compiler.problem.unusedLabel=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
|
org.eclipse.jdt.core.compiler.problem.unusedLocal=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=error
|
org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedParameter=error
|
org.eclipse.jdt.core.compiler.problem.unusedParameter=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
|
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
|
||||||
|
|
|
@ -63,6 +63,7 @@ import com.ibm.wala.util.strings.Atom;
|
||||||
public class DefaultInstantiationBehavior extends IInstantiationBehavior {
|
public class DefaultInstantiationBehavior extends IInstantiationBehavior {
|
||||||
|
|
||||||
/* package-private */ static final class BehviourValue implements Serializable {
|
/* package-private */ static final class BehviourValue implements Serializable {
|
||||||
|
private static final long serialVersionUID = 190943987799306506L;
|
||||||
public final InstanceBehavior behaviour;
|
public final InstanceBehavior behaviour;
|
||||||
public final Exactness exactness;
|
public final Exactness exactness;
|
||||||
public final BehviourValue cacheFrom;
|
public final BehviourValue cacheFrom;
|
||||||
|
@ -81,6 +82,7 @@ public class DefaultInstantiationBehavior extends IInstantiationBehavior {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* package-private */ static final class BehaviorKey<T> implements Serializable {
|
/* package-private */ static final class BehaviorKey<T> implements Serializable {
|
||||||
|
private static final long serialVersionUID = -1932639921432060660L;
|
||||||
// T is expected to be TypeName or Atom
|
// T is expected to be TypeName or Atom
|
||||||
final T base;
|
final T base;
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,8 @@ import com.ibm.wala.types.TypeName;
|
||||||
* @author Tobias Blaschke <code@tobiasblaschke.de>
|
* @author Tobias Blaschke <code@tobiasblaschke.de>
|
||||||
*/
|
*/
|
||||||
public abstract class IInstantiationBehavior implements Serializable {
|
public abstract class IInstantiationBehavior implements Serializable {
|
||||||
|
private static final long serialVersionUID = -3698760758700891479L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The handling for a variable occurring in the AndroidModel.
|
* The handling for a variable occurring in the AndroidModel.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -63,6 +63,7 @@ import com.ibm.wala.util.strings.Atom;
|
||||||
public class LoadedInstantiationBehavior extends IInstantiationBehavior {
|
public class LoadedInstantiationBehavior extends IInstantiationBehavior {
|
||||||
|
|
||||||
private static final class BehviourValue implements Serializable {
|
private static final class BehviourValue implements Serializable {
|
||||||
|
private static final long serialVersionUID = -7558845015122601212L;
|
||||||
public final InstanceBehavior behaviour;
|
public final InstanceBehavior behaviour;
|
||||||
public final Exactness exactness;
|
public final Exactness exactness;
|
||||||
public final BehviourValue cacheFrom;
|
public final BehviourValue cacheFrom;
|
||||||
|
@ -86,6 +87,8 @@ public class LoadedInstantiationBehavior extends IInstantiationBehavior {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final class BehaviorKey<T> implements Serializable {
|
private static final class BehaviorKey<T> implements Serializable {
|
||||||
|
private static final long serialVersionUID = 73530;
|
||||||
|
|
||||||
// T is expected to be TypeName or Atom
|
// T is expected to be TypeName or Atom
|
||||||
final T base;
|
final T base;
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@ org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict
|
||||||
org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=error
|
org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
|
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=error
|
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=warning
|
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=error
|
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
|
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
|
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
|
||||||
|
|
|
@ -60,7 +60,7 @@ org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
|
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=error
|
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=error
|
||||||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
||||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
||||||
|
|
|
@ -46,7 +46,7 @@ org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=no_tag
|
||||||
org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
|
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=error
|
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=error
|
||||||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
||||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
||||||
|
|
|
@ -105,6 +105,8 @@ public class TaintTransferFunctions<E extends ISSABasicBlock> implements
|
||||||
// Java, you need type aliases.
|
// Java, you need type aliases.
|
||||||
private static class BlockPair<E extends ISSABasicBlock> extends
|
private static class BlockPair<E extends ISSABasicBlock> extends
|
||||||
Pair<BasicBlockInContext<E>, BasicBlockInContext<E>> {
|
Pair<BasicBlockInContext<E>, BasicBlockInContext<E>> {
|
||||||
|
private static final long serialVersionUID = 6838579950051954781L;
|
||||||
|
|
||||||
protected BlockPair(BasicBlockInContext<E> fst,
|
protected BlockPair(BasicBlockInContext<E> fst,
|
||||||
BasicBlockInContext<E> snd) {
|
BasicBlockInContext<E> snd) {
|
||||||
super(fst, snd);
|
super(fst, snd);
|
||||||
|
|
|
@ -154,36 +154,7 @@ public class EntryPoints {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void systemEntry(ClassHierarchy cha, @SuppressWarnings("unused") AndroidAnalysisContext loader) {
|
public void addTestEntry(ClassHierarchy cha) {
|
||||||
String[] systemEntyPoints = {
|
|
||||||
// "android.app.ActivityThread.main([Ljava/lang/String;)V"
|
|
||||||
// , "com.android.server.ServerThread.run()V"
|
|
||||||
//"android.location.LocationManager$ListenerTransport._handleMessage(Landroid/os/Message;)V"
|
|
||||||
// "android.location.LocationManager$ListenerTransport$1.handleMessage(Landroid/os/Message;)V"
|
|
||||||
// "android.os.Handler.handleMessage(Landroid/os/Message;)V",
|
|
||||||
// "android.os.Handler$Callback.handleMessage(Landroid/os/Message;)Z",
|
|
||||||
// "com.android.internal.os.HandlerCaller$Callback.executeMessage(Landroid/os/Message;)V"
|
|
||||||
// "android.os.Handler.dispatchMessage(Landroid/os/Message;)V",
|
|
||||||
// "android.view.View.dispatchTouchEvent(Landroid/view/MotionEvent;)Z",
|
|
||||||
// "android.view.View.onTouchEvent(Landroid/view/MotionEvent;)Z",
|
|
||||||
// "android.view.View.setOnClickListener(Landroid/view/View$OnClickListener;)V",
|
|
||||||
"com.android.server.ServerThread.run()V"
|
|
||||||
//"android.app.ActivityThread.main([Ljava/lang/String;)V"
|
|
||||||
};
|
|
||||||
|
|
||||||
for (int i = 0; i < systemEntyPoints.length; i++) {
|
|
||||||
MethodReference methodRef =
|
|
||||||
StringStuff.makeMethodReference(systemEntyPoints[i]);
|
|
||||||
|
|
||||||
for (IMethod im : cha.getPossibleTargets(methodRef)) {
|
|
||||||
|
|
||||||
entries.add(new DefaultEntrypoint(im, cha));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void addTestEntry(ClassHierarchy cha) {
|
|
||||||
String[] methodReferences = {
|
String[] methodReferences = {
|
||||||
// "Test.Apps.Outer$PrivateInnerClass.printNum()V",
|
// "Test.Apps.Outer$PrivateInnerClass.printNum()V",
|
||||||
//"Test.Apps.Outer$PublicInnerClass.printNum()V"
|
//"Test.Apps.Outer$PublicInnerClass.printNum()V"
|
||||||
|
|
|
@ -119,7 +119,7 @@ org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverridin
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
|
org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedImport=error
|
org.eclipse.jdt.core.compiler.problem.unusedImport=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedLabel=error
|
org.eclipse.jdt.core.compiler.problem.unusedLabel=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
|
org.eclipse.jdt.core.compiler.problem.unusedLocal=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=error
|
org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedParameter=error
|
org.eclipse.jdt.core.compiler.problem.unusedParameter=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
|
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
|
||||||
|
|
|
@ -122,7 +122,6 @@ public class TypeAnnotationsReader extends AnnotationsReader {
|
||||||
* </pre>
|
* </pre>
|
||||||
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.20"> JLS (SE8), 4.7.20</a>
|
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.20"> JLS (SE8), 4.7.20</a>
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("javadoc")
|
|
||||||
public TypeAnnotationAttribute[] getAllTypeAnnotations() throws InvalidClassFileException {
|
public TypeAnnotationAttribute[] getAllTypeAnnotations() throws InvalidClassFileException {
|
||||||
TypeAnnotationAttribute[] result = new TypeAnnotationAttribute[getAnnotationCount()];
|
TypeAnnotationAttribute[] result = new TypeAnnotationAttribute[getAnnotationCount()];
|
||||||
int offset = beginOffset + 8; // skip attribute_name_index,
|
int offset = beginOffset + 8; // skip attribute_name_index,
|
||||||
|
@ -167,7 +166,6 @@ public class TypeAnnotationsReader extends AnnotationsReader {
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("javadoc")
|
|
||||||
private Pair<TypeAnnotationAttribute, Integer> getTypeAttributeAndSize(int begin) throws InvalidClassFileException {
|
private Pair<TypeAnnotationAttribute, Integer> getTypeAttributeAndSize(int begin) throws InvalidClassFileException {
|
||||||
TargetType target_type = TargetType.fromValue(cr.getUnsignedByte(begin));
|
TargetType target_type = TargetType.fromValue(cr.getUnsignedByte(begin));
|
||||||
|
|
||||||
|
@ -411,7 +409,6 @@ public class TypeAnnotationsReader extends AnnotationsReader {
|
||||||
* </pre>
|
* </pre>
|
||||||
* @author Martin Hecker martin.hecker@kit.edu
|
* @author Martin Hecker martin.hecker@kit.edu
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("javadoc")
|
|
||||||
public static abstract class TypeAnnotationTarget {
|
public static abstract class TypeAnnotationTarget {
|
||||||
private final TargetInfo targetInfo;
|
private final TargetInfo targetInfo;
|
||||||
protected TypeAnnotationTarget(TargetInfo targetInfo) {
|
protected TypeAnnotationTarget(TargetInfo targetInfo) {
|
||||||
|
|
|
@ -60,7 +60,7 @@ org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
|
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=error
|
||||||
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=error
|
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=error
|
||||||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
|
||||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
||||||
|
|
|
@ -17,6 +17,8 @@ package com.ibm.wala.util;
|
||||||
@SuppressWarnings("javadoc")
|
@SuppressWarnings("javadoc")
|
||||||
public class CancelException extends Exception {
|
public class CancelException extends Exception {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 3728159810629412928L;
|
||||||
|
|
||||||
protected CancelException(String msg) {
|
protected CancelException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@ package com.ibm.wala.util;
|
||||||
*/
|
*/
|
||||||
public class WalaRuntimeException extends RuntimeException {
|
public class WalaRuntimeException extends RuntimeException {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -272544923431659418L;
|
||||||
/**
|
/**
|
||||||
* @param s a message describing the failure
|
* @param s a message describing the failure
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -18,6 +18,7 @@ import com.ibm.wala.util.debug.Assertions;
|
||||||
|
|
||||||
public class Pair<T,U> implements Serializable {
|
public class Pair<T,U> implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1861211857872739247L;
|
||||||
public final T fst;
|
public final T fst;
|
||||||
public final U snd;
|
public final U snd;
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,8 @@ import com.ibm.wala.util.intset.TunedMutableSparseIntSet;
|
||||||
*/
|
*/
|
||||||
public class SparseVector<T> implements IVector<T>, Serializable {
|
public class SparseVector<T> implements IVector<T>, Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -6220164684358954867L;
|
||||||
|
|
||||||
private final static int DEF_INITIAL_SIZE = 5;
|
private final static int DEF_INITIAL_SIZE = 5;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,6 +22,8 @@ import com.ibm.wala.util.math.Logs;
|
||||||
*/
|
*/
|
||||||
public class TwoLevelVector<T> implements IVector<T>, Serializable {
|
public class TwoLevelVector<T> implements IVector<T>, Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -835376054736611070L;
|
||||||
|
|
||||||
private static final int PAGE_SIZE = 4096;
|
private static final int PAGE_SIZE = 4096;
|
||||||
|
|
||||||
private static final int LOG_PAGE_SIZE = Logs.log2(PAGE_SIZE);
|
private static final int LOG_PAGE_SIZE = Logs.log2(PAGE_SIZE);
|
||||||
|
|
|
@ -20,6 +20,8 @@ import java.util.Set;
|
||||||
*/
|
*/
|
||||||
public abstract class SetOfClasses implements Serializable {
|
public abstract class SetOfClasses implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -3048222852073799533L;
|
||||||
|
|
||||||
public abstract boolean contains(String klassName);
|
public abstract boolean contains(String klassName);
|
||||||
|
|
||||||
public abstract void add(String klass);
|
public abstract void add(String klass);
|
||||||
|
|
|
@ -18,6 +18,7 @@ import com.ibm.wala.util.intset.SimpleIntVector;
|
||||||
*/
|
*/
|
||||||
public class Path extends SimpleIntVector {
|
public class Path extends SimpleIntVector {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 5622964158500601280L;
|
||||||
final int size;
|
final int size;
|
||||||
|
|
||||||
private Path(int defaultValue, int size) {
|
private Path(int defaultValue, int size) {
|
||||||
|
|
|
@ -22,6 +22,7 @@ import com.ibm.wala.util.intset.MutableMapping;
|
||||||
*/
|
*/
|
||||||
public class SlowNumberedNodeManager<T> implements NumberedNodeManager<T>, Serializable {
|
public class SlowNumberedNodeManager<T> implements NumberedNodeManager<T>, Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8956107128389624337L;
|
||||||
/**
|
/**
|
||||||
* A bijection between integer <-> node
|
* A bijection between integer <-> node
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -24,6 +24,8 @@ import com.ibm.wala.util.intset.BasicNaturalRelation;
|
||||||
*/
|
*/
|
||||||
public class SlowSparseNumberedGraph<T> extends AbstractNumberedGraph<T> implements Serializable {
|
public class SlowSparseNumberedGraph<T> extends AbstractNumberedGraph<T> implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 7014361126159594838L;
|
||||||
|
|
||||||
private final SlowNumberedNodeManager<T> nodeManager = new SlowNumberedNodeManager<>();
|
private final SlowNumberedNodeManager<T> nodeManager = new SlowNumberedNodeManager<>();
|
||||||
|
|
||||||
private final SparseNumberedEdgeManager<T> edgeManager;
|
private final SparseNumberedEdgeManager<T> edgeManager;
|
||||||
|
|
|
@ -28,6 +28,8 @@ import com.ibm.wala.util.intset.IntSetAction;
|
||||||
*/
|
*/
|
||||||
public final class SparseNumberedEdgeManager<T> implements NumberedEdgeManager<T>, Serializable {
|
public final class SparseNumberedEdgeManager<T> implements NumberedEdgeManager<T>, Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 6751048618312429623L;
|
||||||
|
|
||||||
private final NumberedNodeManager<T> nodeManager;
|
private final NumberedNodeManager<T> nodeManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -28,6 +28,8 @@ import com.ibm.wala.util.graph.Graph;
|
||||||
*/
|
*/
|
||||||
public class DFSAllPathsFinder<T> extends DFSPathFinder<T> {
|
public class DFSAllPathsFinder<T> extends DFSPathFinder<T> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 5413569289853649240L;
|
||||||
|
|
||||||
public DFSAllPathsFinder(Graph<T> G, Iterator<T> nodes, Predicate<T> f) {
|
public DFSAllPathsFinder(Graph<T> G, Iterator<T> nodes, Predicate<T> f) {
|
||||||
super(G, nodes, f);
|
super(G, nodes, f);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,7 @@ import com.ibm.wala.util.graph.NumberedGraph;
|
||||||
*/
|
*/
|
||||||
public abstract class DFSDiscoverTimeIterator<T> extends ArrayList<T> implements Iterator<T> {
|
public abstract class DFSDiscoverTimeIterator<T> extends ArrayList<T> implements Iterator<T> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 4238700455408861924L;
|
||||||
/**
|
/**
|
||||||
* an enumeration of all nodes to search from
|
* an enumeration of all nodes to search from
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -25,6 +25,8 @@ import com.ibm.wala.util.graph.Graph;
|
||||||
*/
|
*/
|
||||||
public abstract class DFSFinishTimeIterator<T> extends ArrayList<T> implements Iterator<T> {
|
public abstract class DFSFinishTimeIterator<T> extends ArrayList<T> implements Iterator<T> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8440061593631309429L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the current next element in finishing time order
|
* the current next element in finishing time order
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -16,6 +16,7 @@ import com.ibm.wala.util.graph.Graph;
|
||||||
|
|
||||||
abstract class GraphDFSDiscoverTimeIterator<T> extends DFSDiscoverTimeIterator<T> {
|
abstract class GraphDFSDiscoverTimeIterator<T> extends DFSDiscoverTimeIterator<T> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -5673397879499010863L;
|
||||||
/**
|
/**
|
||||||
* the graph being searched
|
* the graph being searched
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -26,6 +26,8 @@ import com.ibm.wala.util.debug.Assertions;
|
||||||
*/
|
*/
|
||||||
public final class BasicNaturalRelation implements IBinaryNaturalRelation, Serializable {
|
public final class BasicNaturalRelation implements IBinaryNaturalRelation, Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 4483720230344867621L;
|
||||||
|
|
||||||
private final static boolean VERBOSE = false;
|
private final static boolean VERBOSE = false;
|
||||||
|
|
||||||
private final static boolean DEBUG = false;
|
private final static boolean DEBUG = false;
|
||||||
|
|
|
@ -18,6 +18,7 @@ import com.ibm.wala.util.debug.UnimplementedError;
|
||||||
*/
|
*/
|
||||||
public class BimodalMutableIntSet implements MutableIntSet {
|
public class BimodalMutableIntSet implements MutableIntSet {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 7332332295529936562L;
|
||||||
MutableIntSet impl;
|
MutableIntSet impl;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -18,6 +18,8 @@ import java.io.Serializable;
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
abstract public class BitVectorBase<T extends BitVectorBase> implements Cloneable, Serializable {
|
abstract public class BitVectorBase<T extends BitVectorBase> implements Cloneable, Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1151811022797406841L;
|
||||||
|
|
||||||
protected final static boolean DEBUG = false;
|
protected final static boolean DEBUG = false;
|
||||||
|
|
||||||
protected final static int LOG_BITS_PER_UNIT = 5;
|
protected final static int LOG_BITS_PER_UNIT = 5;
|
||||||
|
|
|
@ -20,6 +20,8 @@ import com.ibm.wala.util.debug.UnimplementedError;
|
||||||
*/
|
*/
|
||||||
public final class BitVectorIntSet implements MutableIntSet {
|
public final class BitVectorIntSet implements MutableIntSet {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 7477243071826223843L;
|
||||||
|
|
||||||
// population count of -1 means needs to be computed again.
|
// population count of -1 means needs to be computed again.
|
||||||
private int populationCount = 0;
|
private int populationCount = 0;
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,8 @@ import com.ibm.wala.util.debug.Assertions;
|
||||||
*/
|
*/
|
||||||
class DebuggingMutableIntSet implements MutableIntSet {
|
class DebuggingMutableIntSet implements MutableIntSet {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 6879912730471879687L;
|
||||||
|
|
||||||
final MutableIntSet primaryImpl;
|
final MutableIntSet primaryImpl;
|
||||||
|
|
||||||
final MutableIntSet secondaryImpl;
|
final MutableIntSet secondaryImpl;
|
||||||
|
|
|
@ -15,6 +15,7 @@ import java.util.NoSuchElementException;
|
||||||
|
|
||||||
public class EmptyIntSet implements IntSet {
|
public class EmptyIntSet implements IntSet {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 5116475799916663164L;
|
||||||
public static EmptyIntSet instance = new EmptyIntSet();
|
public static EmptyIntSet instance = new EmptyIntSet();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -23,6 +23,8 @@ import com.ibm.wala.util.collections.HashMapFactory;
|
||||||
*/
|
*/
|
||||||
public class MutableMapping<T> implements OrdinalSetMapping<T>, Serializable {
|
public class MutableMapping<T> implements OrdinalSetMapping<T>, Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 4011751404163534418L;
|
||||||
|
|
||||||
private static final int INITIAL_CAPACITY = 20;
|
private static final int INITIAL_CAPACITY = 20;
|
||||||
|
|
||||||
private final static int MAX_SIZE = Integer.MAX_VALUE / 4;
|
private final static int MAX_SIZE = Integer.MAX_VALUE / 4;
|
||||||
|
|
|
@ -20,6 +20,8 @@ import com.ibm.wala.util.debug.UnimplementedError;
|
||||||
*/
|
*/
|
||||||
public class MutableSharedBitVectorIntSet implements MutableIntSet {
|
public class MutableSharedBitVectorIntSet implements MutableIntSet {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -6630888692508092370L;
|
||||||
|
|
||||||
private final static boolean DEBUG = false;
|
private final static boolean DEBUG = false;
|
||||||
|
|
||||||
private final static boolean PARANOID = false;
|
private final static boolean PARANOID = false;
|
||||||
|
|
|
@ -23,6 +23,8 @@ import com.ibm.wala.util.debug.Assertions;
|
||||||
*/
|
*/
|
||||||
public class MutableSparseIntSet extends SparseIntSet implements MutableIntSet {
|
public class MutableSparseIntSet extends SparseIntSet implements MutableIntSet {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1479453398189400698L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If forced to grow the backing array .. then by how much
|
* If forced to grow the backing array .. then by how much
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -14,6 +14,7 @@ package com.ibm.wala.util.intset;
|
||||||
*/
|
*/
|
||||||
public final class OffsetBitVector extends BitVectorBase<OffsetBitVector> {
|
public final class OffsetBitVector extends BitVectorBase<OffsetBitVector> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -5846568678514886375L;
|
||||||
int offset;
|
int offset;
|
||||||
|
|
||||||
private static int wordDiff(int offset1, int offset2) {
|
private static int wordDiff(int offset1, int offset2) {
|
||||||
|
|
|
@ -14,6 +14,8 @@ import com.ibm.wala.util.collections.CompoundIntIterator;
|
||||||
import com.ibm.wala.util.collections.EmptyIntIterator;
|
import com.ibm.wala.util.collections.EmptyIntIterator;
|
||||||
|
|
||||||
public class SemiSparseMutableIntSet implements MutableIntSet {
|
public class SemiSparseMutableIntSet implements MutableIntSet {
|
||||||
|
private static final long serialVersionUID = 8647721176321526013L;
|
||||||
|
|
||||||
private static final boolean DEBUG = true;
|
private static final boolean DEBUG = true;
|
||||||
|
|
||||||
private static final double FIX_SPARSE_MOD = 12;
|
private static final double FIX_SPARSE_MOD = 12;
|
||||||
|
|
|
@ -18,6 +18,8 @@ import java.util.Arrays;
|
||||||
*/
|
*/
|
||||||
public class SimpleIntVector implements IntVector, Serializable {
|
public class SimpleIntVector implements IntVector, Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -7909547846468543777L;
|
||||||
|
|
||||||
private final static int MAX_SIZE = Integer.MAX_VALUE / 4;
|
private final static int MAX_SIZE = Integer.MAX_VALUE / 4;
|
||||||
|
|
||||||
private final static float GROWTH_FACTOR = 1.5f;
|
private final static float GROWTH_FACTOR = 1.5f;
|
||||||
|
|
|
@ -23,6 +23,8 @@ import com.ibm.wala.util.debug.UnimplementedError;
|
||||||
*/
|
*/
|
||||||
public class SparseIntSet implements IntSet {
|
public class SparseIntSet implements IntSet {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 2394141733718319022L;
|
||||||
|
|
||||||
private final static int SINGLETON_CACHE_SIZE = 5000;
|
private final static int SINGLETON_CACHE_SIZE = 5000;
|
||||||
|
|
||||||
private final static SparseIntSet[] singletonCache = new SparseIntSet[SINGLETON_CACHE_SIZE];
|
private final static SparseIntSet[] singletonCache = new SparseIntSet[SINGLETON_CACHE_SIZE];
|
||||||
|
|
|
@ -22,6 +22,7 @@ import java.io.Serializable;
|
||||||
*/
|
*/
|
||||||
public class SparseIntVector implements IntVector, Serializable {
|
public class SparseIntVector implements IntVector, Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -2428993854689991888L;
|
||||||
private final static int INITIAL_SIZE = 5;
|
private final static int INITIAL_SIZE = 5;
|
||||||
private final double EXPANSION = 1.5;
|
private final double EXPANSION = 1.5;
|
||||||
int maxIndex = -1;
|
int maxIndex = -1;
|
||||||
|
|
|
@ -18,6 +18,8 @@ package com.ibm.wala.util.intset;
|
||||||
*/
|
*/
|
||||||
public class TunedMutableSparseIntSet extends MutableSparseIntSet {
|
public class TunedMutableSparseIntSet extends MutableSparseIntSet {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -1559172158241923881L;
|
||||||
|
|
||||||
private final int initialSize;
|
private final int initialSize;
|
||||||
|
|
||||||
private final float expansion;
|
private final float expansion;
|
||||||
|
|
|
@ -15,6 +15,8 @@ package com.ibm.wala.util.intset;
|
||||||
*/
|
*/
|
||||||
public class TunedSimpleIntVector extends SimpleIntVector {
|
public class TunedSimpleIntVector extends SimpleIntVector {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -1380867351543398351L;
|
||||||
|
|
||||||
private final int initialSize;
|
private final int initialSize;
|
||||||
|
|
||||||
private final float expansion;
|
private final float expansion;
|
||||||
|
|
|
@ -20,6 +20,8 @@ import com.ibm.wala.util.math.Logs;
|
||||||
*/
|
*/
|
||||||
public class TwoLevelIntVector implements IntVector, Serializable {
|
public class TwoLevelIntVector implements IntVector, Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -7383053435395846217L;
|
||||||
|
|
||||||
private static final int PAGE_SIZE = 4096;
|
private static final int PAGE_SIZE = 4096;
|
||||||
|
|
||||||
private static final int LOG_PAGE_SIZE = Logs.log2(PAGE_SIZE);
|
private static final int LOG_PAGE_SIZE = Logs.log2(PAGE_SIZE);
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<?pde version="3.8"?><target name="WALA Eclipse Luna Target Platform" sequenceNumber="130">
|
||||||
|
<locations>
|
||||||
|
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
|
||||||
|
<unit id="org.eclipse.emf.sdk.feature.group" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.wst.web_ui.feature.feature.group" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.wst.jsdt.feature.feature.group" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.wst.jsdt.ui" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.sdk.ide" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.jdt.source.feature.group" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.osgi" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.e4.rcp.feature.group" version="0.0.0"/>
|
||||||
|
<repository location="http://download.eclipse.org/releases/neon"/>
|
||||||
|
</location>
|
||||||
|
</locations>
|
||||||
|
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||||
|
</target>
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
||||||
|
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>com.ibm.wala.target</groupId>
|
||||||
|
<artifactId>targets</artifactId>
|
||||||
|
<version>1.4.3-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
<artifactId>e46</artifactId>
|
||||||
|
<packaging>eclipse-target-definition</packaging>
|
||||||
|
</project>
|
|
@ -0,0 +1,18 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<?pde version="3.8"?><target name="WALA Eclipse Luna Target Platform" sequenceNumber="130">
|
||||||
|
<locations>
|
||||||
|
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
|
||||||
|
<unit id="org.eclipse.emf.sdk.feature.group" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.wst.web_ui.feature.feature.group" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.wst.jsdt.feature.feature.group" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.wst.jsdt.ui" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.sdk.ide" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.jdt.source.feature.group" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.osgi" version="0.0.0"/>
|
||||||
|
<unit id="org.eclipse.e4.rcp.feature.group" version="0.0.0"/>
|
||||||
|
<repository location="http://download.eclipse.org/releases/oxygen"/>
|
||||||
|
</location>
|
||||||
|
</locations>
|
||||||
|
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||||
|
</target>
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
||||||
|
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>com.ibm.wala.target</groupId>
|
||||||
|
<artifactId>targets</artifactId>
|
||||||
|
<version>1.4.3-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
<artifactId>e47</artifactId>
|
||||||
|
<packaging>eclipse-target-definition</packaging>
|
||||||
|
</project>
|
|
@ -10,7 +10,7 @@ if [ "$TRAVIS_REPO_SLUG" == "wala/WALA" ] &&
|
||||||
git clone --quiet https://${GH_TOKEN}@github.com/wala/javadoc > /dev/null
|
git clone --quiet https://${GH_TOKEN}@github.com/wala/javadoc > /dev/null
|
||||||
|
|
||||||
cd javadoc
|
cd javadoc
|
||||||
git rm -rf *
|
git rm -rf --quiet *
|
||||||
cp -Rf $HOME/build/wala/WALA/target/site/apidocs/* .
|
cp -Rf $HOME/build/wala/WALA/target/site/apidocs/* .
|
||||||
git add -f .
|
git add -f .
|
||||||
git commit -m "Latest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
|
git commit -m "Latest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
|
||||||
|
|
Loading…
Reference in New Issue