|
@@ -38,7 +38,7 @@ public class FormattedMessage implements Message {
|
|
* Constructs with a locale, a pattern and a single parameter.
|
|
* Constructs with a locale, a pattern and a single parameter.
|
|
*
|
|
*
|
|
* @param locale The locale
|
|
* @param locale The locale
|
|
- * @param messagePattern The message pattern.
|
|
|
|
|
|
+ * @param messagePattern The msg pattern.
|
|
* @param arg The parameter.
|
|
* @param arg The parameter.
|
|
* @since 2.6
|
|
* @since 2.6
|
|
*/
|
|
*/
|
|
@@ -50,7 +50,7 @@ public class FormattedMessage implements Message {
|
|
* Constructs with a locale, a pattern and two parameters.
|
|
* Constructs with a locale, a pattern and two parameters.
|
|
*
|
|
*
|
|
* @param locale The locale
|
|
* @param locale The locale
|
|
- * @param messagePattern The message pattern.
|
|
|
|
|
|
+ * @param messagePattern The msg pattern.
|
|
* @param arg1 The first parameter.
|
|
* @param arg1 The first parameter.
|
|
* @param arg2 The second parameter.
|
|
* @param arg2 The second parameter.
|
|
* @since 2.6
|
|
* @since 2.6
|
|
@@ -64,7 +64,7 @@ public class FormattedMessage implements Message {
|
|
* Constructs with a locale, a pattern and a parameter array.
|
|
* Constructs with a locale, a pattern and a parameter array.
|
|
*
|
|
*
|
|
* @param locale The locale
|
|
* @param locale The locale
|
|
- * @param messagePattern The message pattern.
|
|
|
|
|
|
+ * @param messagePattern The msg pattern.
|
|
* @param arguments The parameter.
|
|
* @param arguments The parameter.
|
|
* @since 2.6
|
|
* @since 2.6
|
|
*/
|
|
*/
|
|
@@ -77,7 +77,7 @@ public class FormattedMessage implements Message {
|
|
* Constructs with a locale, a pattern, a parameter array, and a throwable.
|
|
* Constructs with a locale, a pattern, a parameter array, and a throwable.
|
|
*
|
|
*
|
|
* @param locale The Locale
|
|
* @param locale The Locale
|
|
- * @param messagePattern The message pattern.
|
|
|
|
|
|
+ * @param messagePattern The msg pattern.
|
|
* @param arguments The parameter.
|
|
* @param arguments The parameter.
|
|
* @param throwable The throwable
|
|
* @param throwable The throwable
|
|
* @since 2.6
|
|
* @since 2.6
|
|
@@ -93,7 +93,7 @@ public class FormattedMessage implements Message {
|
|
/**
|
|
/**
|
|
* Constructs with a pattern and a single parameter.
|
|
* Constructs with a pattern and a single parameter.
|
|
*
|
|
*
|
|
- * @param messagePattern The message pattern.
|
|
|
|
|
|
+ * @param messagePattern The msg pattern.
|
|
* @param arg The parameter.
|
|
* @param arg The parameter.
|
|
*/
|
|
*/
|
|
public FormattedMessage(final String messagePattern, final Object arg) {
|
|
public FormattedMessage(final String messagePattern, final Object arg) {
|
|
@@ -103,7 +103,7 @@ public class FormattedMessage implements Message {
|
|
/**
|
|
/**
|
|
* Constructs with a pattern and two parameters.
|
|
* Constructs with a pattern and two parameters.
|
|
*
|
|
*
|
|
- * @param messagePattern The message pattern.
|
|
|
|
|
|
+ * @param messagePattern The msg pattern.
|
|
* @param arg1 The first parameter.
|
|
* @param arg1 The first parameter.
|
|
* @param arg2 The second parameter.
|
|
* @param arg2 The second parameter.
|
|
*/
|
|
*/
|
|
@@ -114,7 +114,7 @@ public class FormattedMessage implements Message {
|
|
/**
|
|
/**
|
|
* Constructs with a pattern and a parameter array.
|
|
* Constructs with a pattern and a parameter array.
|
|
*
|
|
*
|
|
- * @param messagePattern The message pattern.
|
|
|
|
|
|
+ * @param messagePattern The msg pattern.
|
|
* @param arguments The parameter.
|
|
* @param arguments The parameter.
|
|
*/
|
|
*/
|
|
public FormattedMessage(final String messagePattern, final Object... arguments) {
|
|
public FormattedMessage(final String messagePattern, final Object... arguments) {
|
|
@@ -124,7 +124,7 @@ public class FormattedMessage implements Message {
|
|
/**
|
|
/**
|
|
* Constructs with a pattern, a parameter array, and a throwable.
|
|
* Constructs with a pattern, a parameter array, and a throwable.
|
|
*
|
|
*
|
|
- * @param messagePattern The message pattern.
|
|
|
|
|
|
+ * @param messagePattern The msg pattern.
|
|
* @param arguments The parameter.
|
|
* @param arguments The parameter.
|
|
* @param throwable The throwable
|
|
* @param throwable The throwable
|
|
*/
|
|
*/
|
|
@@ -160,9 +160,9 @@ public class FormattedMessage implements Message {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Gets the message pattern.
|
|
|
|
|
|
+ * Gets the msg pattern.
|
|
*
|
|
*
|
|
- * @return the message pattern.
|
|
|
|
|
|
+ * @return the msg pattern.
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public String getFormat() {
|
|
public String getFormat() {
|
|
@@ -170,9 +170,9 @@ public class FormattedMessage implements Message {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Gets the formatted message.
|
|
|
|
|
|
+ * Gets the formatted msg.
|
|
*
|
|
*
|
|
- * @return the formatted message.
|
|
|
|
|
|
+ * @return the formatted msg.
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public String getFormattedMessage() {
|
|
public String getFormattedMessage() {
|
|
@@ -194,7 +194,7 @@ public class FormattedMessage implements Message {
|
|
return new MessageFormatMessage(locale, msgPattern, args);
|
|
return new MessageFormatMessage(locale, msgPattern, args);
|
|
}
|
|
}
|
|
} catch (final Exception ignored) {
|
|
} catch (final Exception ignored) {
|
|
- // Obviously, the message is not a proper pattern for MessageFormat.
|
|
|
|
|
|
+ // Obviously, the msg is not a proper pattern for MessageFormat.
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
if (MSG_PATTERN.matcher(msgPattern).find()) {
|
|
if (MSG_PATTERN.matcher(msgPattern).find()) {
|
|
@@ -207,9 +207,9 @@ public class FormattedMessage implements Message {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Gets the message parameters.
|
|
|
|
|
|
+ * Gets the msg parameters.
|
|
*
|
|
*
|
|
- * @return the message parameters.
|
|
|
|
|
|
+ * @return the msg parameters.
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public Object[] getParameters() {
|
|
public Object[] getParameters() {
|