tweak comments

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3467 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
sjfink 2009-04-16 19:03:55 +00:00
parent 4a6fab4409
commit 26ed4e00ed
2 changed files with 10 additions and 35 deletions

View File

@ -21,14 +21,9 @@ import com.ibm.wala.util.strings.ImmutableByteArray;
import com.ibm.wala.util.strings.StringStuff;
/**
* We've introduced this class to canonicalize Atoms that represent package names.
*
* We've introduced this class to canonicalize Atoms that represent package
* names.
*
* NB: All package names should use '/' and not '.' as a separator. eg.
* Ljava/lang/Class
*
* @author sfink
* NB: All package names should use '/' and not '.' as a separator. eg. Ljava/lang/Class
*/
public final class TypeName implements Serializable {
@ -124,8 +119,7 @@ public final class TypeName implements Serializable {
}
/**
* @param s
* a String like Ljava/lang/Object
* @param s a String like Ljava/lang/Object
* @return the corresponding TypeName
* @throws IllegalArgumentException if s is null
*/
@ -168,9 +162,8 @@ public final class TypeName implements Serializable {
}
/**
* @return the dimensionality of the type. By convention, class types have
* dimensionality 0, primitves -1, and arrays the number of [ in their
* descriptor.
* @return the dimensionality of the type. By convention, class types have dimensionality 0, primitves -1, and arrays the number
* of [ in their descriptor.
*/
public final int getDimensionality() {
return key.dim;
@ -206,10 +199,7 @@ public final class TypeName implements Serializable {
}
/**
* @author sfink
*
* 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 {
/**
@ -234,22 +224,12 @@ public final class TypeName implements Serializable {
/**
* This should be the only constructor
*
* @param packageName
* @param className
* @param dim
* @param innermostPrimitive
*/
private TypeNameKey(Atom packageName, Atom className, short dim, boolean innermostPrimitive) {
this.packageName = packageName;
this.className = className;
this.dim = dim;
this.innermostPrimitive = innermostPrimitive;
/*
* if (Assertions.verifyAssertions) { if (className.contains((byte) ';')) {
* Assertions._assert(false, "invalid class name: " + className); } }
*/
}
@Override

View File

@ -24,11 +24,6 @@ import com.ibm.wala.util.collections.HashMapFactory;
* </ul>
* Resolving a TypeReference to a Type can be an expensive operation. Therefore we canonicalize TypeReference instances
* and cache the result of resolution.
*
* @author Bowen Alpern
* @author Dave Grove
* @author Derek Lieber
* @author Stephen Fink
*/
public final class TypeReference implements Serializable {