1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 21:05:37 +02:00

compilation warnings

This commit is contained in:
Andrew Gvozdev 2011-04-07 14:45:59 +00:00
parent 4d0e215d55
commit 234560eef4
6 changed files with 11 additions and 11 deletions

View file

@ -189,7 +189,7 @@ public class CfgScannerConfigUtil {
if ( ! (tool instanceof Tool) ) {
String msg = MessageFormat.format(ManagedMakeMessages.getString("CfgScannerConfigUtil_ErrorNotSupported"), //$NON-NLS-1$
new String[] { Tool.class.getName() });
new Object[] { Tool.class.getName() });
throw new UnsupportedOperationException(msg);
}
@ -221,7 +221,7 @@ public class CfgScannerConfigUtil {
if ( ! (inputType instanceof InputType) ) {
String msg = MessageFormat.format(ManagedMakeMessages.getString("CfgScannerConfigUtil_ErrorNotSupported"), //$NON-NLS-1$
new String[] { InputType.class.getName() });
new Object[] { InputType.class.getName() });
throw new UnsupportedOperationException(msg);
}

View file

@ -39,10 +39,10 @@ public class BuildModelMessages {
}
public static String getFormattedString(String key, String arg) {
return MessageFormat.format(getResourceString(key), new String[] { arg });
return MessageFormat.format(getResourceString(key), (Object[]) new String[] { arg });
}
public static String getFormattedString(String key, String[] args) {
return MessageFormat.format(getResourceString(key), args);
return MessageFormat.format(getResourceString(key), (Object[]) args);
}
}

View file

@ -450,7 +450,7 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
ManagedBuildManager.putConfigElement(this, element);
// id
String idAttribute = SafeStringInterner.safeIntern(element.getAttribute(IBuildObject.ID));;
String idAttribute = SafeStringInterner.safeIntern(element.getAttribute(IBuildObject.ID));
setId(idAttribute);
// Get the name

View file

@ -46,11 +46,11 @@ public class ManagedMakeMessages {
}
public static String getFormattedString(String key, String arg) {
return MessageFormat.format(getResourceString(key), new String[] { arg });
return MessageFormat.format(getResourceString(key), new Object[] { arg });
}
public static String getFormattedString(String key, String[] args) {
return MessageFormat.format(getResourceString(key), args);
return MessageFormat.format(getResourceString(key), (Object[]) args);
}
/**

View file

@ -38,10 +38,10 @@ public class DataProviderMessages {
}
public static String getFormattedString(String key, String arg) {
return MessageFormat.format(getResourceString(key), new String[] { arg });
return MessageFormat.format(getResourceString(key), new Object[] { arg });
}
public static String getFormattedString(String key, String[] args) {
return MessageFormat.format(getResourceString(key), args);
return MessageFormat.format(getResourceString(key), (Object[]) args);
}
}

View file

@ -47,10 +47,10 @@ public class ConverterMessages {
}
public static String getFormattedString(String key, String arg) {
return MessageFormat.format(getResourceString(key), new String[] { arg });
return MessageFormat.format(getResourceString(key), new Object[] { arg });
}
public static String getFormattedString(String key, String[] args) {
return MessageFormat.format(getResourceString(key), args);
return MessageFormat.format(getResourceString(key), (Object[]) args);
}
}