org.eclipse.mat.util.MessageUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of haha Show documentation
Show all versions of haha Show documentation
Java library to automate the analysis of Android heap dumps.
package org.eclipse.mat.util;
import java.text.MessageFormat;
import org.eclipse.mat.hprof.Messages;
public final class MessageUtil {
public static String format(Messages message, Object... objects) {
if (objects.length == 0) {
return message.pattern;
}
return MessageFormat.format(message.pattern, objects);
}
private MessageUtil() {
throw new AssertionError();
}
}