mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 20:05:35 +02:00
Bug 341731 - Use String.format instead of Message.format
Change-Id: I11aab806dcb279ba7916d98dfc1202e9143ba77d Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
parent
2a935a9926
commit
92ef95ddeb
2 changed files with 2 additions and 4 deletions
|
@ -77,8 +77,6 @@ import org.eclipse.core.runtime.IStatus;
|
||||||
import org.eclipse.core.runtime.Status;
|
import org.eclipse.core.runtime.Status;
|
||||||
import org.osgi.framework.BundleContext;
|
import org.osgi.framework.BundleContext;
|
||||||
|
|
||||||
import com.ibm.icu.text.MessageFormat;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class implements a debugger expression evaluator as a DSF service. The
|
* This class implements a debugger expression evaluator as a DSF service. The
|
||||||
* primary interface that clients of this class should use is IExpressions.
|
* primary interface that clients of this class should use is IExpressions.
|
||||||
|
@ -861,7 +859,7 @@ public class MIExpressions extends AbstractDsfService implements IMIExpressions,
|
||||||
String alias = expr;
|
String alias = expr;
|
||||||
String methodName = fThreadToTopMethodName.get(threadDmc);
|
String methodName = fThreadToTopMethodName.get(threadDmc);
|
||||||
if (methodName != null) {
|
if (methodName != null) {
|
||||||
alias = MessageFormat.format(Messages.MIExpressions_ReturnValueAlias,
|
alias = String.format(Messages.MIExpressions_ReturnValueAlias,
|
||||||
methodName + "()"); //$NON-NLS-1$
|
methodName + "()"); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,4 +14,4 @@ Breakpoint_attribute_problem=Breakpoint attribute problem: {0}
|
||||||
Breakpoint_installation_failed=installation failed
|
Breakpoint_installation_failed=installation failed
|
||||||
|
|
||||||
MIExpressions_NotAvailableBecauseChildOfDynamicVarobj=N/A (child of pretty-printed object)
|
MIExpressions_NotAvailableBecauseChildOfDynamicVarobj=N/A (child of pretty-printed object)
|
||||||
MIExpressions_ReturnValueAlias={0} returned
|
MIExpressions_ReturnValueAlias=%s returned
|
||||||
|
|
Loading…
Add table
Reference in a new issue