commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1054289 - in /commons/proper/math: branches/MATH_2_X/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java trunk/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java
Date Sat, 01 Jan 2011 21:06:30 GMT
Author: psteitz
Date: Sat Jan  1 21:06:29 2011
New Revision: 1054289

URL: http://svn.apache.org/viewvc?rev=1054289&view=rev
Log:
Fixed checkstyle errors: hidden fields, missing javadoc.

Modified:
    commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java

Modified: commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java?rev=1054289&r1=1054288&r2=1054289&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java
(original)
+++ commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java
Sat Jan  1 21:06:29 2011
@@ -313,15 +313,21 @@ public class ExponentialDistributionImpl
      */
     @Override
     protected double calculateNumericalVariance() {
-        final double mean = getMean();
-        return mean * mean;
+        final double m = getMean();
+        return m * m;
     }
 
+    /**
+     * {@inheritDoc}
+     */
     @Override
     public boolean isSupportLowerBoundInclusive() {
         return true;
     }
 
+    /**
+     * {@inheritDoc}
+     */
     @Override
     public boolean isSupportUpperBoundInclusive() {
         return false;

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java?rev=1054289&r1=1054288&r2=1054289&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java
Sat Jan  1 21:06:29 2011
@@ -271,15 +271,21 @@ public class ExponentialDistributionImpl
      */
     @Override
     protected double calculateNumericalVariance() {
-        final double mean = getMean();
-        return mean * mean;
+        final double m = getMean();
+        return m * m;
     }
 
+    /**
+     * {@inheritDoc}
+     */
     @Override
     public boolean isSupportLowerBoundInclusive() {
         return true;
     }
 
+    /**
+     * {@inheritDoc}
+     */
     @Override
     public boolean isSupportUpperBoundInclusive() {
         return false;



Mime
View raw message