1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 14:55:41 +02:00

StringBuffer.indexOf() 1.4.x only.

This commit is contained in:
Alain Magloire 2003-04-14 17:57:47 +00:00
parent 692b6647df
commit dd873c7f2b

View file

@ -309,8 +309,9 @@ public class CDebugUtils
public static String getFunctionName( IFunction function ) public static String getFunctionName( IFunction function )
{ {
StringBuffer name = new StringBuffer( function.getElementName() ); String functionName = function.getElementName();
if ( name.indexOf( "::" ) != -1 ) StringBuffer name = new StringBuffer( functionName );
if ( functionName.indexOf( "::" ) != -1 )
{ {
String[] params = function.getParameterTypes(); String[] params = function.getParameterTypes();
name.append( '(' ); name.append( '(' );