View | Details | Raw Unified | Return to bug 96858 | Differences between
and this patch

Collapse All | Expand All

(-)model/org/eclipse/jdt/internal/core/util/KeyToSignature.java (-8 / +5 lines)
Lines 16-25 Link Here
16
import org.eclipse.jdt.core.compiler.CharOperation;
16
import org.eclipse.jdt.core.compiler.CharOperation;
17
import org.eclipse.jdt.internal.compiler.ast.Wildcard;
17
import org.eclipse.jdt.internal.compiler.ast.Wildcard;
18
18
19
/*
20
 * Converts a binding key into a signature 
21
 */
22
// TODO (jerome) handle methods and fields
23
public class KeyToSignature extends BindingKeyParser {
19
public class KeyToSignature extends BindingKeyParser {
24
	
20
	
25
	public static final int SIGNATURE = 0;
21
	public static final int SIGNATURE = 0;
Lines 173-178 Link Here
173
	}
169
	}
174
170
175
	public void consumeType() {
171
	public void consumeType() {
172
		// remove main type if needed
173
		if (this.mainTypeStart != -1) {
174
			this.signature.replace(this.mainTypeStart, this.mainTypeEnd, ""); //$NON-NLS-1$
175
		}
176
		// parameter types
176
		int length = this.typeParameters.size();
177
		int length = this.typeParameters.size();
177
		if (length > 0) {
178
		if (length > 0) {
178
			StringBuffer typeParametersSig = new StringBuffer();
179
			StringBuffer typeParametersSig = new StringBuffer();
Lines 186-195 Link Here
186
			this.signature.insert(this.typeSigStart, typeParametersSig);
187
			this.signature.insert(this.typeSigStart, typeParametersSig);
187
			this.typeParameters = new ArrayList();
188
			this.typeParameters = new ArrayList();
188
		}
189
		}
189
		// remove main type if needed
190
		if (this.mainTypeStart != -1) {
191
			this.signature.replace(this.mainTypeStart, this.mainTypeEnd, ""); //$NON-NLS-1$
192
		}
193
		this.signature.append(';');
190
		this.signature.append(';');
194
	}
191
	}
195
	
192
	

Return to bug 96858