add context for another Arrays method
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2315 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
eb9268fc91
commit
e4d890cb77
|
@ -60,6 +60,7 @@ public class ContainerContextSelector implements ContextSelector {
|
|||
|
||||
private final static TypeReference Arrays = TypeReference.findOrCreate(ClassLoaderReference.Primordial, "Ljava/util/Arrays");
|
||||
private final static MethodReference ArraysAsList = MethodReference.findOrCreate(Arrays, "asList", "([Ljava/lang/Object;)Ljava/util/List;");
|
||||
private final static MethodReference ArraysCopyOfRange = MethodReference.findOrCreate(Arrays, "copyOfRange", "([CII)[C");
|
||||
|
||||
/**
|
||||
* The governing class hierarchy.
|
||||
|
@ -125,6 +126,9 @@ public class ContainerContextSelector implements ContextSelector {
|
|||
if (m.equals(ArraysAsList)) {
|
||||
return true;
|
||||
}
|
||||
if (m.equals(ArraysCopyOfRange)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue