From 8b7f2a69cf482c59851dd4944ec37381a3b9c8fe Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Sun, 22 Jul 2012 17:22:05 +0000 Subject: [PATCH] Removed unnecessary return statements, reported by pmd. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364369 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/math3/stat/regression/SimpleRegression.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/org/apache/commons/math3/stat/regression/SimpleRegression.java b/src/main/java/org/apache/commons/math3/stat/regression/SimpleRegression.java index 2026d03cf..0e780b7ae 100644 --- a/src/main/java/org/apache/commons/math3/stat/regression/SimpleRegression.java +++ b/src/main/java/org/apache/commons/math3/stat/regression/SimpleRegression.java @@ -154,7 +154,6 @@ public class SimpleRegression implements Serializable, UpdatingMultipleLinearReg sumX += x; sumY += y; n++; - return; } @@ -195,7 +194,6 @@ public class SimpleRegression implements Serializable, UpdatingMultipleLinearReg sumY -= y; n--; } - return; } /** @@ -224,7 +222,6 @@ public class SimpleRegression implements Serializable, UpdatingMultipleLinearReg } addData(data[i][0], data[i][1]); } - return; } /** @@ -240,7 +237,6 @@ public class SimpleRegression implements Serializable, UpdatingMultipleLinearReg throw new ModelSpecificationException(LocalizedFormats.INVALID_REGRESSION_OBSERVATION,x!=null?x.length:0, 1); } addData( x[0], y ); - return; } /** @@ -274,7 +270,6 @@ public class SimpleRegression implements Serializable, UpdatingMultipleLinearReg for( int i = 0 ; i < x.length ; i++){ addData( x[i][0], y[i] ); } - return; } /**