You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2011/03/16 12:07:05 UTC
svn commit: r1082124 - in
/commons/proper/math/trunk/src/main/java/org/apache/commons/math:
MathException.java MathRuntimeException.java
exception/MathRuntimeException.java exception/MathThrowable.java
Author: erans
Date: Wed Mar 16 11:07:05 2011
New Revision: 1082124
URL: http://svn.apache.org/viewvc?rev=1082124&view=rev
Log:
MATH-542
Removed unnecessary method, as the case is taken care of with the other
"addMessage" method (with varargs).
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathException.java
commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathRuntimeException.java
commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathRuntimeException.java
commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathThrowable.java
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathException.java?rev=1082124&r1=1082123&r2=1082124&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathException.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathException.java Wed Mar 16 11:07:05 2011
@@ -133,11 +133,6 @@ public class MathException extends Excep
}
/** {@inheritDoc} */
- public void addMessage(Localizable pat) {
- throw new UnsupportedOperationException("This class is deprecated; calling this method is a bug.");
- }
-
- /** {@inheritDoc} */
public void addMessage(Localizable pat,
Object ... args) {
throw new UnsupportedOperationException("This class is deprecated; calling this method is a bug.");
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathRuntimeException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathRuntimeException.java?rev=1082124&r1=1082123&r2=1082124&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathRuntimeException.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathRuntimeException.java Wed Mar 16 11:07:05 2011
@@ -126,11 +126,6 @@ public class MathRuntimeException extend
}
/** {@inheritDoc} */
- public void addMessage(Localizable pat) {
- throw new UnsupportedOperationException("This class is deprecated; calling this method is a bug.");
- }
-
- /** {@inheritDoc} */
public void addMessage(Localizable pat,
Object ... args) {
throw new UnsupportedOperationException("This class is deprecated; calling this method is a bug.");
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathRuntimeException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathRuntimeException.java?rev=1082124&r1=1082123&r2=1082124&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathRuntimeException.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathRuntimeException.java Wed Mar 16 11:07:05 2011
@@ -67,11 +67,6 @@ public class MathRuntimeException extend
}
/** {@inheritDoc} */
- public void addMessage(Localizable pattern) {
- messages.add(new SerializablePair<Localizable, Object[]>(pattern, (Object[]) null));
- }
-
- /** {@inheritDoc} */
public void addMessage(Localizable pattern,
Object ... arguments) {
messages.add(new SerializablePair<Localizable, Object[]>(pattern,
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathThrowable.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathThrowable.java?rev=1082124&r1=1082123&r2=1082124&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathThrowable.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathThrowable.java Wed Mar 16 11:07:05 2011
@@ -31,13 +31,6 @@ public interface MathThrowable {
/**
* Sets a message.
*
- * @param pattern Message.
- */
- void addMessage(Localizable pattern);
-
- /**
- * Sets a message.
- *
* @param pattern Message pattern.
* @param arguments Values for replacing the placeholders in the message
* pattern.
@@ -91,5 +84,4 @@ public interface MathThrowable {
* @return localized message
*/
String getLocalizedMessage();
-
}