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
|
||||
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.unusedPrivateMember=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.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.unnecessaryElse=ignore
|
||||
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.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
DELEGATES_PREFERENCE=delegateValidatorList
|
||||
USER_BUILD_PREFERENCE=enabledBuildValidatorList
|
||||
USER_MANUAL_PREFERENCE=enabledManualValidatorList
|
||||
USER_PREFERENCE=overrideGlobalPreferencestruedisableAllValidationfalseversion1.2.700.v201610061600
|
||||
USER_PREFERENCE=overrideGlobalPreferencestruedisableAllValidationfalseversion1.2.700.v201508251749
|
||||
eclipse.preferences.version=1
|
||||
override=true
|
||||
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.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
|
||||
|
|
|
@ -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.missingOverrideAnnotation=error
|
||||
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.noEffectAssignment=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.unusedPrivateMember=warning
|
||||
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.source=1.7
|
||||
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;
|
||||
class FieldBasedHeapGraph extends SlowSparseNumberedGraph<Object> implements HeapGraph<ObjectVertex> {
|
||||
|
||||
private static final long serialVersionUID = -3544629644808422215L;
|
||||
|
||||
private <X> X ensureNode(X n) {
|
||||
if (!containsNode(n)) {
|
||||
addNode(n);
|
||||
|
|
|
@ -1010,7 +1010,6 @@ public class JavaScriptLoader extends CAstAbstractModuleLoader {
|
|||
bootstrapFileNames.add(prologueFileName);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
protected TranslatorToCAst getTranslatorToCAst(final CAst ast, ModuleEntry 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.missingOverrideAnnotation=error
|
||||
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.noEffectAssignment=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.unusedPrivateMember=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.source=1.7
|
||||
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 class Error extends WalaException {
|
||||
private static final long serialVersionUID = -8440950320425119751L;
|
||||
public final Set<Warning> warning;
|
||||
|
||||
public Error(Set<Warning> message) {
|
||||
|
|
|
@ -39,6 +39,7 @@ public class CAstFunctions {
|
|||
public static Iterator<CAstNode> iterateNodes(final CAstNode tree) {
|
||||
return new DFSDiscoverTimeIterator<CAstNode>() {
|
||||
|
||||
private static final long serialVersionUID = -627203481092871529L;
|
||||
private final Map<Object, Iterator<? extends CAstNode>> pendingChildren = HashMapFactory.make();
|
||||
|
||||
@Override
|
||||
|
|
|
@ -59,6 +59,8 @@ public class CAstPattern {
|
|||
|
||||
public static class Segments extends TreeMap<String,Object> {
|
||||
|
||||
private static final long serialVersionUID = 4119719848336209576L;
|
||||
|
||||
public CAstNode getSingle(String name) {
|
||||
assert containsKey(name) : 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.missingOverrideAnnotation=error
|
||||
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.noEffectAssignment=error
|
||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
||||
|
|
|
@ -37,7 +37,6 @@ public final class TwoLevelVectorTest extends WalaTestCase {
|
|||
|
||||
// --- Test cases
|
||||
|
||||
@SuppressWarnings("static-method")
|
||||
@Test public void testCase1() {
|
||||
final TwoLevelVector<Integer> tlVector = new TwoLevelVector<>();
|
||||
tlVector.iterator();
|
||||
|
|
|
@ -74,6 +74,8 @@ public class ContextSensitiveReachingDefs {
|
|||
private class ReachingDefsDomain extends MutableMapping<Pair<CGNode, Integer>> implements
|
||||
TabulationDomain<Pair<CGNode, Integer>, BasicBlockInContext<IExplodedBasicBlock>> {
|
||||
|
||||
private static final long serialVersionUID = 4014252274660361965L;
|
||||
|
||||
@Override
|
||||
public boolean hasPriorityOver(PathEdge<BasicBlockInContext<IExplodedBasicBlock>> p1,
|
||||
PathEdge<BasicBlockInContext<IExplodedBasicBlock>> p2) {
|
||||
|
|
|
@ -78,6 +78,8 @@ public class StaticInitializer {
|
|||
private class InitializerDomain extends MutableMapping<IClass> implements
|
||||
TabulationDomain<IClass, BasicBlockInContext<IExplodedBasicBlock>> {
|
||||
|
||||
private static final long serialVersionUID = -1897766113586243833L;
|
||||
|
||||
@Override
|
||||
public boolean hasPriorityOver(PathEdge<BasicBlockInContext<IExplodedBasicBlock>> p1,
|
||||
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.missingOverrideAnnotation=error
|
||||
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.noEffectAssignment=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.unusedImport=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.unusedParameter=error
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
|
||||
|
|
|
@ -35,7 +35,6 @@ public class IntraproceduralNullPointerAnalysis {
|
|||
this.ir = ir;
|
||||
|
||||
final int maxVarNum = ir.getSymbolTable().getMaxValueNumber();
|
||||
final int[] paramValNum = ir.getParameterValueNumbers();
|
||||
SSACFG cfg = ir.getControlFlowGraph();
|
||||
final NullPointerFrameWork<ISSABasicBlock> problem = new NullPointerFrameWork<ISSABasicBlock>(
|
||||
cfg, ir);
|
||||
|
|
|
@ -135,7 +135,6 @@ public class IntraprocNullPointerAnalysis<T extends ISSABasicBlock> {
|
|||
} else {
|
||||
final List<T> catched = searchNodesWithPathToCatchAll(cfg);
|
||||
final NullPointerFrameWork<T> problem = new NullPointerFrameWork<T>(cfg, ir);
|
||||
final int[] paramValNum = ir.getParameterValueNumbers();
|
||||
|
||||
solver = new NullPointerSolver<T>(problem, maxVarNum, cfg.entry(), ir, initialState);
|
||||
|
||||
|
|
|
@ -261,7 +261,6 @@ public class NullPointerState extends AbstractVariable<NullPointerState> {
|
|||
/* (non-Javadoc)
|
||||
* @see com.ibm.wala.fixedpoint.impl.AbstractOperator#evaluate(com.ibm.wala.fixpoint.IVariable, com.ibm.wala.fixpoint.IVariable[])
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
@Override
|
||||
public byte evaluate(NullPointerState lhs, NullPointerState[] rhs) {
|
||||
boolean changed = false;
|
||||
|
|
|
@ -19,6 +19,7 @@ import com.ibm.wala.util.CancelException;
|
|||
*/
|
||||
public class TabulationCancelException extends CancelException {
|
||||
|
||||
private static final long serialVersionUID = 4073189707860241945L;
|
||||
private final Result result;
|
||||
|
||||
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());
|
||||
|
||||
Comparator<Object> c = new Comparator<Object>() {
|
||||
@SuppressWarnings("rawtypes")
|
||||
@Override
|
||||
public int compare(Object o1, Object o2) {
|
||||
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> {
|
||||
|
||||
private static final long serialVersionUID = -988075488958891635L;
|
||||
|
||||
/*
|
||||
* @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 {
|
||||
|
||||
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.cfa.CallerSiteContext;
|
||||
import com.ibm.wala.ipa.cha.IClassHierarchy;
|
||||
import com.ibm.wala.ssa.DefUse;
|
||||
import com.ibm.wala.ssa.IR;
|
||||
import com.ibm.wala.ssa.ISSABasicBlock;
|
||||
import com.ibm.wala.ssa.SSAAbstractInvokeInstruction;
|
||||
|
@ -261,7 +260,6 @@ public abstract class AbstractDemandFlowGraph extends AbstractFlowGraph {
|
|||
return;
|
||||
}
|
||||
|
||||
DefUse du = node.getDU();
|
||||
addNodeInstructionConstraints(node, ir);
|
||||
addNodePassthruExceptionConstraints(node, ir);
|
||||
addNodeConstantConstraints(node, ir);
|
||||
|
|
|
@ -95,6 +95,8 @@ import com.ibm.wala.util.ref.ReferenceCleanser;
|
|||
*/
|
||||
public class SimpleDemandPointerFlowGraph extends SlowSparseNumberedGraph<Object> {
|
||||
|
||||
private static final long serialVersionUID = 5208052568163692029L;
|
||||
|
||||
private final static boolean DEBUG = false;
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,6 +20,8 @@ import com.ibm.wala.util.CancelException;
|
|||
*/
|
||||
public class CallGraphBuilderCancelException extends CancelException {
|
||||
|
||||
private static final long serialVersionUID = -3071193971009314659L;
|
||||
|
||||
private final CallGraph cg;
|
||||
|
||||
private final PointerAnalysis<InstanceKey> pointerAnalysis;
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
package com.ibm.wala.ipa.callgraph.cha;
|
||||
|
||||
import java.lang.ref.SoftReference;
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
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.Predicate;
|
||||
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.HashMapFactory;
|
||||
import com.ibm.wala.util.collections.HashSetFactory;
|
||||
import com.ibm.wala.util.collections.Iterator2Collection;
|
||||
import com.ibm.wala.util.collections.IteratorUtil;
|
||||
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.graph.NumberedEdgeManager;
|
||||
import com.ibm.wala.util.intset.IntSet;
|
||||
|
@ -138,17 +137,24 @@ public class CHACallGraph extends BasicCallGraph<CHAContextInterpreter> {
|
|||
return cha;
|
||||
}
|
||||
|
||||
private final Map<CallSiteReference, Set<IMethod>> targetCache = HashMapFactory.make();
|
||||
|
||||
private Iterator<IMethod> getPossibleTargets(CallSiteReference site) {
|
||||
if (site.isDispatch()) {
|
||||
return cha.getPossibleTargets(site.getDeclaredTarget()).iterator();
|
||||
} else {
|
||||
IMethod m = cha.resolveMethod(site.getDeclaredTarget());
|
||||
if (m != null) {
|
||||
return new NonNullSingletonIterator<IMethod>(m);
|
||||
Set<IMethod> result = targetCache.get(site);
|
||||
if (result == null) {
|
||||
if (site.isDispatch()) {
|
||||
result = cha.getPossibleTargets(site.getDeclaredTarget());
|
||||
} 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
|
||||
|
|
|
@ -24,6 +24,7 @@ import com.ibm.wala.ipa.cha.IClassHierarchy;
|
|||
*/
|
||||
public class AllApplicationEntrypoints extends HashSet<Entrypoint> {
|
||||
|
||||
private static final long serialVersionUID = 6541081454519490199L;
|
||||
private final static boolean DEBUG = false;
|
||||
|
||||
/**
|
||||
|
|
|
@ -834,7 +834,6 @@ public abstract class PropagationCallGraphBuilder implements CallGraphBuilder<In
|
|||
if (rhs.size() == 0) {
|
||||
return NOT_CHANGED;
|
||||
}
|
||||
final PointerKey object = rhs.getPointerKey();
|
||||
|
||||
PointsToSetVariable def = getFixedSet();
|
||||
final PointerKey dVal = def.getPointerKey();
|
||||
|
@ -922,7 +921,6 @@ public abstract class PropagationCallGraphBuilder implements CallGraphBuilder<In
|
|||
if (rhs.size() == 0) {
|
||||
return NOT_CHANGED;
|
||||
}
|
||||
PointerKey object = rhs.getPointerKey();
|
||||
|
||||
PointsToSetVariable val = getFixedSet();
|
||||
PointerKey pVal = val.getPointerKey();
|
||||
|
@ -1013,7 +1011,6 @@ public abstract class PropagationCallGraphBuilder implements CallGraphBuilder<In
|
|||
if (ref.size() == 0) {
|
||||
return NOT_CHANGED;
|
||||
}
|
||||
final PointerKey object = ref.getPointerKey();
|
||||
PointsToSetVariable def = getFixedSet();
|
||||
final PointerKey dVal = def.getPointerKey();
|
||||
|
||||
|
@ -1130,7 +1127,6 @@ public abstract class PropagationCallGraphBuilder implements CallGraphBuilder<In
|
|||
if (rhs.size() == 0) {
|
||||
return NOT_CHANGED;
|
||||
}
|
||||
final PointerKey object = rhs.getPointerKey();
|
||||
|
||||
PointsToSetVariable val = getFixedSet();
|
||||
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
|
||||
// associated with the instruction
|
||||
final CallSiteReference site = instruction.getCallSite();
|
||||
IntSet params = getRelevantParameters(caller, site);
|
||||
final Set<CGNode> targets = HashSetFactory.make();
|
||||
VoidFunction<InstanceKey[]> f = new VoidFunction<InstanceKey[]>() {
|
||||
@Override
|
||||
|
|
|
@ -20,6 +20,8 @@ import com.ibm.wala.util.collections.Pair;
|
|||
*/
|
||||
public final class CallSite extends Pair<CallSiteReference, CGNode> {
|
||||
|
||||
private static final long serialVersionUID = -5277592800329960642L;
|
||||
|
||||
public CallSite(CallSiteReference site, CGNode node) {
|
||||
super(site, node);
|
||||
if (site == null) {
|
||||
|
|
|
@ -207,6 +207,8 @@ public class SDG<T extends InstanceKey> extends AbstractNumberedGraph<Statement>
|
|||
|
||||
private class Nodes extends SlowNumberedNodeManager<Statement> {
|
||||
|
||||
private static final long serialVersionUID = -1450214776332091211L;
|
||||
|
||||
@Override
|
||||
public boolean containsNode(Statement 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.
|
||||
*/
|
||||
private final static class TypeNameKey implements Serializable {
|
||||
private static final long serialVersionUID = -8284030936836318929L;
|
||||
|
||||
/**
|
||||
* The package, like "java/lang". null means the unnamed package.
|
||||
*/
|
||||
|
|
|
@ -16,6 +16,8 @@ package com.ibm.wala.util;
|
|||
*/
|
||||
public class CancelRuntimeException extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = 5859062345002606705L;
|
||||
|
||||
protected CancelRuntimeException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
|
|
@ -147,6 +147,8 @@ public class ProgressMaster implements IProgressMonitor {
|
|||
|
||||
public static class TooMuchMemoryUsed extends Exception {
|
||||
|
||||
private static final long serialVersionUID = -7174940833610292692L;
|
||||
|
||||
}
|
||||
|
||||
private class Timeout extends Thread {
|
||||
|
|
|
@ -54,6 +54,8 @@ package com.ibm.wala.util.ssa;
|
|||
* @author Tobias Blaschke <code@tobiasblaschke.de>
|
||||
*/
|
||||
public class ClassLookupException extends RuntimeException {
|
||||
private static final long serialVersionUID = 7551139209041666026L;
|
||||
|
||||
public ClassLookupException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@ import com.ibm.wala.ssa.IR;
|
|||
|
||||
public class CgPanel extends JSplitPane{
|
||||
|
||||
private static final long serialVersionUID = -4094408933344852549L;
|
||||
private final CallGraph cg;
|
||||
|
||||
public CgPanel(CallGraph cg) {
|
||||
|
|
|
@ -30,6 +30,7 @@ import com.ibm.wala.ipa.cha.IClassHierarchy;
|
|||
|
||||
public class ChaPanel extends JSplitPane {
|
||||
|
||||
private static final long serialVersionUID = -9058908127737757320L;
|
||||
private final IClassHierarchy cha;
|
||||
|
||||
public ChaPanel(IClassHierarchy cha) {
|
||||
|
|
|
@ -32,6 +32,7 @@ import com.ibm.wala.ssa.IR;
|
|||
import com.ibm.wala.util.collections.HashMapFactory;
|
||||
|
||||
public class IrViewer extends JPanel{
|
||||
private static final long serialVersionUID = -5668847442988389016L;
|
||||
private JTextField methodName;
|
||||
private DefaultListModel<String> irLineList = new DefaultListModel<>();
|
||||
private JList<String> irLines;
|
||||
|
|
|
@ -54,6 +54,7 @@ import com.ibm.wala.util.intset.OrdinalSetMapping;
|
|||
*/
|
||||
public class PaPanel extends JSplitPane {
|
||||
|
||||
private static final long serialVersionUID = 8120735305334110889L;
|
||||
protected final PointerAnalysis<InstanceKey> pa;
|
||||
protected final CallGraph cg;
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ import javax.swing.JScrollPane;
|
|||
import javax.swing.JTextField;
|
||||
|
||||
public class SourceViewer extends JPanel{
|
||||
private static final long serialVersionUID = -1688405955293925453L;
|
||||
private URL sourceURL;
|
||||
private JTextField sourceCodeLocation;
|
||||
private DefaultListModel<String> sourceCodeLinesList = new DefaultListModel<>();
|
||||
|
|
|
@ -29,6 +29,7 @@ import com.ibm.wala.ipa.callgraph.propagation.PointerAnalysis;
|
|||
*/
|
||||
public class WalaViewer extends JFrame {
|
||||
|
||||
private static final long serialVersionUID = -8580178580211053765L;
|
||||
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.missingOverrideAnnotation=error
|
||||
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.noEffectAssignment=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.unusedImport=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.unusedParameter=error
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
|
||||
|
|
|
@ -63,6 +63,7 @@ import com.ibm.wala.util.strings.Atom;
|
|||
public class DefaultInstantiationBehavior extends IInstantiationBehavior {
|
||||
|
||||
/* package-private */ static final class BehviourValue implements Serializable {
|
||||
private static final long serialVersionUID = 190943987799306506L;
|
||||
public final InstanceBehavior behaviour;
|
||||
public final Exactness exactness;
|
||||
public final BehviourValue cacheFrom;
|
||||
|
@ -81,6 +82,7 @@ public class DefaultInstantiationBehavior extends IInstantiationBehavior {
|
|||
}
|
||||
|
||||
/* package-private */ static final class BehaviorKey<T> implements Serializable {
|
||||
private static final long serialVersionUID = -1932639921432060660L;
|
||||
// T is expected to be TypeName or Atom
|
||||
final T base;
|
||||
|
||||
|
|
|
@ -51,6 +51,8 @@ import com.ibm.wala.types.TypeName;
|
|||
* @author Tobias Blaschke <code@tobiasblaschke.de>
|
||||
*/
|
||||
public abstract class IInstantiationBehavior implements Serializable {
|
||||
private static final long serialVersionUID = -3698760758700891479L;
|
||||
|
||||
/**
|
||||
* 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 {
|
||||
|
||||
private static final class BehviourValue implements Serializable {
|
||||
private static final long serialVersionUID = -7558845015122601212L;
|
||||
public final InstanceBehavior behaviour;
|
||||
public final Exactness exactness;
|
||||
public final BehviourValue cacheFrom;
|
||||
|
@ -86,6 +87,8 @@ public class LoadedInstantiationBehavior extends IInstantiationBehavior {
|
|||
}
|
||||
|
||||
private static final class BehaviorKey<T> implements Serializable {
|
||||
private static final long serialVersionUID = 73530;
|
||||
|
||||
// T is expected to be TypeName or Atom
|
||||
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.unnecessaryElse=ignore
|
||||
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.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=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.missingOverrideAnnotation=error
|
||||
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.noEffectAssignment=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.missingOverrideAnnotation=error
|
||||
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.noEffectAssignment=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.
|
||||
private static class BlockPair<E extends ISSABasicBlock> extends
|
||||
Pair<BasicBlockInContext<E>, BasicBlockInContext<E>> {
|
||||
private static final long serialVersionUID = 6838579950051954781L;
|
||||
|
||||
protected BlockPair(BasicBlockInContext<E> fst,
|
||||
BasicBlockInContext<E> snd) {
|
||||
super(fst, snd);
|
||||
|
|
|
@ -154,36 +154,7 @@ public class EntryPoints {
|
|||
}
|
||||
}
|
||||
|
||||
private void systemEntry(ClassHierarchy cha, @SuppressWarnings("unused") AndroidAnalysisContext loader) {
|
||||
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) {
|
||||
public void addTestEntry(ClassHierarchy cha) {
|
||||
String[] methodReferences = {
|
||||
// "Test.Apps.Outer$PrivateInnerClass.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.unusedImport=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.unusedParameter=error
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
|
||||
|
|
|
@ -122,7 +122,6 @@ public class TypeAnnotationsReader extends AnnotationsReader {
|
|||
* </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>
|
||||
*/
|
||||
@SuppressWarnings("javadoc")
|
||||
public TypeAnnotationAttribute[] getAllTypeAnnotations() throws InvalidClassFileException {
|
||||
TypeAnnotationAttribute[] result = new TypeAnnotationAttribute[getAnnotationCount()];
|
||||
int offset = beginOffset + 8; // skip attribute_name_index,
|
||||
|
@ -167,7 +166,6 @@ public class TypeAnnotationsReader extends AnnotationsReader {
|
|||
* </pre>
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("javadoc")
|
||||
private Pair<TypeAnnotationAttribute, Integer> getTypeAttributeAndSize(int begin) throws InvalidClassFileException {
|
||||
TargetType target_type = TargetType.fromValue(cr.getUnsignedByte(begin));
|
||||
|
||||
|
@ -411,7 +409,6 @@ public class TypeAnnotationsReader extends AnnotationsReader {
|
|||
* </pre>
|
||||
* @author Martin Hecker martin.hecker@kit.edu
|
||||
*/
|
||||
@SuppressWarnings("javadoc")
|
||||
public static abstract class TypeAnnotationTarget {
|
||||
private final 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.missingOverrideAnnotation=error
|
||||
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.noEffectAssignment=error
|
||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=error
|
||||
|
|
|
@ -17,6 +17,8 @@ package com.ibm.wala.util;
|
|||
@SuppressWarnings("javadoc")
|
||||
public class CancelException extends Exception {
|
||||
|
||||
private static final long serialVersionUID = 3728159810629412928L;
|
||||
|
||||
protected CancelException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@ package com.ibm.wala.util;
|
|||
*/
|
||||
public class WalaRuntimeException extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = -272544923431659418L;
|
||||
/**
|
||||
* @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 {
|
||||
|
||||
private static final long serialVersionUID = 1861211857872739247L;
|
||||
public final T fst;
|
||||
public final U snd;
|
||||
|
||||
|
|
|
@ -28,6 +28,8 @@ import com.ibm.wala.util.intset.TunedMutableSparseIntSet;
|
|||
*/
|
||||
public class SparseVector<T> implements IVector<T>, Serializable {
|
||||
|
||||
private static final long serialVersionUID = -6220164684358954867L;
|
||||
|
||||
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 {
|
||||
|
||||
private static final long serialVersionUID = -835376054736611070L;
|
||||
|
||||
private static final int PAGE_SIZE = 4096;
|
||||
|
||||
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 {
|
||||
|
||||
private static final long serialVersionUID = -3048222852073799533L;
|
||||
|
||||
public abstract boolean contains(String klassName);
|
||||
|
||||
public abstract void add(String klass);
|
||||
|
|
|
@ -18,6 +18,7 @@ import com.ibm.wala.util.intset.SimpleIntVector;
|
|||
*/
|
||||
public class Path extends SimpleIntVector {
|
||||
|
||||
private static final long serialVersionUID = 5622964158500601280L;
|
||||
final 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 {
|
||||
|
||||
private static final long serialVersionUID = 8956107128389624337L;
|
||||
/**
|
||||
* 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 {
|
||||
|
||||
private static final long serialVersionUID = 7014361126159594838L;
|
||||
|
||||
private final SlowNumberedNodeManager<T> nodeManager = new SlowNumberedNodeManager<>();
|
||||
|
||||
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 {
|
||||
|
||||
private static final long serialVersionUID = 6751048618312429623L;
|
||||
|
||||
private final NumberedNodeManager<T> nodeManager;
|
||||
|
||||
/**
|
||||
|
|
|
@ -28,6 +28,8 @@ import com.ibm.wala.util.graph.Graph;
|
|||
*/
|
||||
public class DFSAllPathsFinder<T> extends DFSPathFinder<T> {
|
||||
|
||||
private static final long serialVersionUID = 5413569289853649240L;
|
||||
|
||||
public DFSAllPathsFinder(Graph<T> G, Iterator<T> nodes, Predicate<T> 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> {
|
||||
|
||||
private static final long serialVersionUID = 4238700455408861924L;
|
||||
/**
|
||||
* 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> {
|
||||
|
||||
private static final long serialVersionUID = 8440061593631309429L;
|
||||
|
||||
/**
|
||||
* 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> {
|
||||
|
||||
private static final long serialVersionUID = -5673397879499010863L;
|
||||
/**
|
||||
* the graph being searched
|
||||
*/
|
||||
|
|
|
@ -26,6 +26,8 @@ import com.ibm.wala.util.debug.Assertions;
|
|||
*/
|
||||
public final class BasicNaturalRelation implements IBinaryNaturalRelation, Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4483720230344867621L;
|
||||
|
||||
private final static boolean VERBOSE = false;
|
||||
|
||||
private final static boolean DEBUG = false;
|
||||
|
|
|
@ -18,6 +18,7 @@ import com.ibm.wala.util.debug.UnimplementedError;
|
|||
*/
|
||||
public class BimodalMutableIntSet implements MutableIntSet {
|
||||
|
||||
private static final long serialVersionUID = 7332332295529936562L;
|
||||
MutableIntSet impl;
|
||||
|
||||
/*
|
||||
|
|
|
@ -18,6 +18,8 @@ import java.io.Serializable;
|
|||
@SuppressWarnings("rawtypes")
|
||||
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 int LOG_BITS_PER_UNIT = 5;
|
||||
|
|
|
@ -20,6 +20,8 @@ import com.ibm.wala.util.debug.UnimplementedError;
|
|||
*/
|
||||
public final class BitVectorIntSet implements MutableIntSet {
|
||||
|
||||
private static final long serialVersionUID = 7477243071826223843L;
|
||||
|
||||
// population count of -1 means needs to be computed again.
|
||||
private int populationCount = 0;
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@ import com.ibm.wala.util.debug.Assertions;
|
|||
*/
|
||||
class DebuggingMutableIntSet implements MutableIntSet {
|
||||
|
||||
private static final long serialVersionUID = 6879912730471879687L;
|
||||
|
||||
final MutableIntSet primaryImpl;
|
||||
|
||||
final MutableIntSet secondaryImpl;
|
||||
|
|
|
@ -15,6 +15,7 @@ import java.util.NoSuchElementException;
|
|||
|
||||
public class EmptyIntSet implements IntSet {
|
||||
|
||||
private static final long serialVersionUID = 5116475799916663164L;
|
||||
public static EmptyIntSet instance = new EmptyIntSet();
|
||||
|
||||
@Override
|
||||
|
|
|
@ -23,6 +23,8 @@ import com.ibm.wala.util.collections.HashMapFactory;
|
|||
*/
|
||||
public class MutableMapping<T> implements OrdinalSetMapping<T>, Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4011751404163534418L;
|
||||
|
||||
private static final int INITIAL_CAPACITY = 20;
|
||||
|
||||
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 {
|
||||
|
||||
private static final long serialVersionUID = -6630888692508092370L;
|
||||
|
||||
private final static boolean DEBUG = 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 {
|
||||
|
||||
private static final long serialVersionUID = 1479453398189400698L;
|
||||
|
||||
/**
|
||||
* 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> {
|
||||
|
||||
private static final long serialVersionUID = -5846568678514886375L;
|
||||
int offset;
|
||||
|
||||
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;
|
||||
|
||||
public class SemiSparseMutableIntSet implements MutableIntSet {
|
||||
private static final long serialVersionUID = 8647721176321526013L;
|
||||
|
||||
private static final boolean DEBUG = true;
|
||||
|
||||
private static final double FIX_SPARSE_MOD = 12;
|
||||
|
|
|
@ -18,6 +18,8 @@ import java.util.Arrays;
|
|||
*/
|
||||
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 float GROWTH_FACTOR = 1.5f;
|
||||
|
|
|
@ -23,6 +23,8 @@ import com.ibm.wala.util.debug.UnimplementedError;
|
|||
*/
|
||||
public class SparseIntSet implements IntSet {
|
||||
|
||||
private static final long serialVersionUID = 2394141733718319022L;
|
||||
|
||||
private final static int SINGLETON_CACHE_SIZE = 5000;
|
||||
|
||||
private final static SparseIntSet[] singletonCache = new SparseIntSet[SINGLETON_CACHE_SIZE];
|
||||
|
|
|
@ -22,6 +22,7 @@ import java.io.Serializable;
|
|||
*/
|
||||
public class SparseIntVector implements IntVector, Serializable {
|
||||
|
||||
private static final long serialVersionUID = -2428993854689991888L;
|
||||
private final static int INITIAL_SIZE = 5;
|
||||
private final double EXPANSION = 1.5;
|
||||
int maxIndex = -1;
|
||||
|
|
|
@ -18,6 +18,8 @@ package com.ibm.wala.util.intset;
|
|||
*/
|
||||
public class TunedMutableSparseIntSet extends MutableSparseIntSet {
|
||||
|
||||
private static final long serialVersionUID = -1559172158241923881L;
|
||||
|
||||
private final int initialSize;
|
||||
|
||||
private final float expansion;
|
||||
|
|
|
@ -15,6 +15,8 @@ package com.ibm.wala.util.intset;
|
|||
*/
|
||||
public class TunedSimpleIntVector extends SimpleIntVector {
|
||||
|
||||
private static final long serialVersionUID = -1380867351543398351L;
|
||||
|
||||
private final int initialSize;
|
||||
|
||||
private final float expansion;
|
||||
|
|
|
@ -20,6 +20,8 @@ import com.ibm.wala.util.math.Logs;
|
|||
*/
|
||||
public class TwoLevelIntVector implements IntVector, Serializable {
|
||||
|
||||
private static final long serialVersionUID = -7383053435395846217L;
|
||||
|
||||
private static final int PAGE_SIZE = 4096;
|
||||
|
||||
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
|
||||
|
||||
cd javadoc
|
||||
git rm -rf *
|
||||
git rm -rf --quiet *
|
||||
cp -Rf $HOME/build/wala/WALA/target/site/apidocs/* .
|
||||
git add -f .
|
||||
git commit -m "Latest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
|
||||
|
|
Loading…
Reference in New Issue