a few bug fixes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@952 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
18cd95f325
commit
3a756fb6a0
|
@ -19,9 +19,17 @@ import com.ibm.wala.util.debug.Assertions;
|
|||
/**
|
||||
* UNDER CONSTRUCTION
|
||||
*
|
||||
* <verbatim> TypeArgument: WildcardIndicator? FieldTypeSignature *
|
||||
* <verbatim>
|
||||
* TypeArgument:
|
||||
* WildcardIndicator? FieldTypeSignature
|
||||
* *
|
||||
*
|
||||
* WildcardIndicator: + - </verbatim>
|
||||
* WildcardIndicator:
|
||||
* +
|
||||
* -
|
||||
*
|
||||
*
|
||||
* </verbatim>
|
||||
*
|
||||
* @author sjfink
|
||||
*
|
||||
|
@ -42,6 +50,9 @@ public class TypeArgument extends Signature {
|
|||
public boolean isWildcard() {
|
||||
return true;
|
||||
}
|
||||
public String toString() {
|
||||
return "*";
|
||||
}
|
||||
};
|
||||
|
||||
private TypeArgument(String s) {
|
||||
|
@ -140,6 +151,11 @@ public class TypeArgument extends Signature {
|
|||
args.add(typeArgs.substring(off, i));
|
||||
continue;
|
||||
}
|
||||
case (byte) '*': {
|
||||
// a wildcard
|
||||
args.add("*");
|
||||
continue;
|
||||
}
|
||||
case (byte) '>': // end of argument list
|
||||
int size = args.size();
|
||||
if (size == 0) {
|
||||
|
|
Loading…
Reference in New Issue