You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2015/03/16 21:30:02 UTC

[2/3] [math] Add missing @Override tags, add final for member variables where applicable.

Add missing @Override tags, add final for member variables where applicable.


Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/b7d8801c
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/b7d8801c
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/b7d8801c

Branch: refs/heads/master
Commit: b7d8801c368778e370ef98832a1c6201e8197207
Parents: 9e26d99
Author: Thomas Neidhart <th...@gmail.com>
Authored: Mon Mar 16 21:26:05 2015 +0100
Committer: Thomas Neidhart <th...@gmail.com>
Committed: Mon Mar 16 21:26:05 2015 +0100

----------------------------------------------------------------------
 .../apache/commons/math4/exception/MathArithmeticException.java   | 1 +
 .../commons/math4/exception/MathIllegalArgumentException.java     | 1 +
 .../apache/commons/math4/exception/MathIllegalStateException.java | 1 +
 .../org/apache/commons/math4/exception/MathRuntimeException.java  | 1 +
 .../math4/exception/MathUnsupportedOperationException.java        | 1 +
 .../org/apache/commons/math4/exception/NullArgumentException.java | 3 ++-
 .../org/apache/commons/math4/exception/util/DummyLocalizable.java | 2 ++
 .../org/apache/commons/math4/exception/util/LocalizedFormats.java | 2 ++
 8 files changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/b7d8801c/src/main/java/org/apache/commons/math4/exception/MathArithmeticException.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/exception/MathArithmeticException.java b/src/main/java/org/apache/commons/math4/exception/MathArithmeticException.java
index d753ad5..7425bc5 100644
--- a/src/main/java/org/apache/commons/math4/exception/MathArithmeticException.java
+++ b/src/main/java/org/apache/commons/math4/exception/MathArithmeticException.java
@@ -58,6 +58,7 @@ public class MathArithmeticException extends ArithmeticException
     }
 
     /** {@inheritDoc} */
+    @Override
     public ExceptionContext getContext() {
         return context;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/b7d8801c/src/main/java/org/apache/commons/math4/exception/MathIllegalArgumentException.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/exception/MathIllegalArgumentException.java b/src/main/java/org/apache/commons/math4/exception/MathIllegalArgumentException.java
index e975031..efb7482 100644
--- a/src/main/java/org/apache/commons/math4/exception/MathIllegalArgumentException.java
+++ b/src/main/java/org/apache/commons/math4/exception/MathIllegalArgumentException.java
@@ -46,6 +46,7 @@ public class MathIllegalArgumentException extends IllegalArgumentException
     }
 
     /** {@inheritDoc} */
+    @Override
     public ExceptionContext getContext() {
         return context;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/b7d8801c/src/main/java/org/apache/commons/math4/exception/MathIllegalStateException.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/exception/MathIllegalStateException.java b/src/main/java/org/apache/commons/math4/exception/MathIllegalStateException.java
index d353848..76bb280 100644
--- a/src/main/java/org/apache/commons/math4/exception/MathIllegalStateException.java
+++ b/src/main/java/org/apache/commons/math4/exception/MathIllegalStateException.java
@@ -70,6 +70,7 @@ public class MathIllegalStateException extends IllegalStateException
     }
 
     /** {@inheritDoc} */
+    @Override
     public ExceptionContext getContext() {
         return context;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/b7d8801c/src/main/java/org/apache/commons/math4/exception/MathRuntimeException.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/exception/MathRuntimeException.java b/src/main/java/org/apache/commons/math4/exception/MathRuntimeException.java
index 4dafc2c..56fff8e 100644
--- a/src/main/java/org/apache/commons/math4/exception/MathRuntimeException.java
+++ b/src/main/java/org/apache/commons/math4/exception/MathRuntimeException.java
@@ -47,6 +47,7 @@ public class MathRuntimeException extends RuntimeException
     }
 
     /** {@inheritDoc} */
+    @Override
     public ExceptionContext getContext() {
         return context;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/b7d8801c/src/main/java/org/apache/commons/math4/exception/MathUnsupportedOperationException.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/exception/MathUnsupportedOperationException.java b/src/main/java/org/apache/commons/math4/exception/MathUnsupportedOperationException.java
index bf32e31..ad45b60 100644
--- a/src/main/java/org/apache/commons/math4/exception/MathUnsupportedOperationException.java
+++ b/src/main/java/org/apache/commons/math4/exception/MathUnsupportedOperationException.java
@@ -54,6 +54,7 @@ public class MathUnsupportedOperationException extends UnsupportedOperationExcep
     }
 
     /** {@inheritDoc} */
+    @Override
     public ExceptionContext getContext() {
         return context;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/b7d8801c/src/main/java/org/apache/commons/math4/exception/NullArgumentException.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/exception/NullArgumentException.java b/src/main/java/org/apache/commons/math4/exception/NullArgumentException.java
index 5577042..06a3f80 100644
--- a/src/main/java/org/apache/commons/math4/exception/NullArgumentException.java
+++ b/src/main/java/org/apache/commons/math4/exception/NullArgumentException.java
@@ -59,11 +59,12 @@ public class NullArgumentException extends NullPointerException
         context = new ExceptionContext(this);
         context.addMessage(pattern, arguments);
     }
-    
+
     /**
      * {@inheritDoc}
      * @since 4.0
      */
+    @Override
     public ExceptionContext getContext() {
         return context;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/b7d8801c/src/main/java/org/apache/commons/math4/exception/util/DummyLocalizable.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/exception/util/DummyLocalizable.java b/src/main/java/org/apache/commons/math4/exception/util/DummyLocalizable.java
index 97aa51b..16c67f5 100644
--- a/src/main/java/org/apache/commons/math4/exception/util/DummyLocalizable.java
+++ b/src/main/java/org/apache/commons/math4/exception/util/DummyLocalizable.java
@@ -39,11 +39,13 @@ public class DummyLocalizable implements Localizable {
     }
 
     /** {@inheritDoc} */
+    @Override
     public String getSourceString() {
         return source;
     }
 
     /** {@inheritDoc} */
+    @Override
     public String getLocalizedString(Locale locale) {
         return source;
     }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/b7d8801c/src/main/java/org/apache/commons/math4/exception/util/LocalizedFormats.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/exception/util/LocalizedFormats.java b/src/main/java/org/apache/commons/math4/exception/util/LocalizedFormats.java
index 6d300ab..547bfe3 100644
--- a/src/main/java/org/apache/commons/math4/exception/util/LocalizedFormats.java
+++ b/src/main/java/org/apache/commons/math4/exception/util/LocalizedFormats.java
@@ -379,11 +379,13 @@ public enum LocalizedFormats implements Localizable {
     }
 
     /** {@inheritDoc} */
+    @Override
     public String getSourceString() {
         return sourceFormat;
     }
 
     /** {@inheritDoc} */
+    @Override
     public String getLocalizedString(final Locale locale) {
         try {
             final String path = LocalizedFormats.class.getName().replaceAll("\\.", "/");