Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2005, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2005, 2011 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 234-241
Link Here
|
234 |
public void consumeSecondaryType(char[] simpleTypeName) { |
234 |
public void consumeSecondaryType(char[] simpleTypeName) { |
235 |
this.signature.append('~'); |
235 |
this.signature.append('~'); |
236 |
this.mainTypeStart = this.signature.lastIndexOf(".") + 1; //$NON-NLS-1$ |
236 |
this.mainTypeStart = this.signature.lastIndexOf(".") + 1; //$NON-NLS-1$ |
237 |
if (this.mainTypeStart == 0) |
237 |
if (this.mainTypeStart == 0) { |
238 |
this.mainTypeStart = 1; // default package |
238 |
this.mainTypeStart = 1; // default package for the 'L' |
|
|
239 |
int i = 0; |
240 |
// we need to preserve the array and the 'L' if needed |
241 |
while (this.signature.charAt(i) == Signature.C_ARRAY) { |
242 |
this.mainTypeStart ++; |
243 |
i++; |
244 |
} |
245 |
} |
239 |
this.mainTypeEnd = this.signature.length(); |
246 |
this.mainTypeEnd = this.signature.length(); |
240 |
this.signature.append(simpleTypeName); |
247 |
this.signature.append(simpleTypeName); |
241 |
} |
248 |
} |