Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 278172 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/wst/jsdt/core/infer/InferEngine.java (-1 / +13 lines)
Lines 1340-1346 Link Here
1340
				{
1340
				{
1341
					char []name={};
1341
					char []name={};
1342
					for (int j = 0; j < param.types.length; j++) {
1342
					for (int j = 0; j < param.types.length; j++) {
1343
						char []typeName=param.types[j].getSimpleTypeName();
1343
						//changePrimitiveToObject just changes the first character of a primitive name to upper case.
1344
						char []typeName=changePrimitiveToObject(param.types[j].getSimpleTypeName());
1344
						if (j==0)
1345
						if (j==0)
1345
							name=typeName;
1346
							name=typeName;
1346
						else
1347
						else
Lines 1355-1362 Link Here
1355
			}
1356
			}
1356
		}
1357
		}
1357
	}
1358
	}
1359
	
1360
	public char[] changePrimitiveToObject(char[] name) {
1358
1361
1362
		//Changes the first character of the name of the primitive types to uppercase. This will allow future reference to the object wrapper instead of the primitive type.
1363
		String type = String.valueOf(name);
1364
		if(type.equals("int") || type.equals("boolean") || type.equals("char") || type.equals("double")|| type.equals("float") || type.equals("long") || type.equals("short"))
1365
			name[0] = Character.toUpperCase(name[0]);
1366
		
1367
		return name;
1368
		
1369
	}
1359
1370
1371
	
1360
1372
1361
	public boolean visit(
1373
	public boolean visit(
1362
    		IAllocationExpression allocationExpression) {
1374
    		IAllocationExpression allocationExpression) {

Return to bug 278172