From 5d915eb6c6d80de8c3f2209b6f5daf203573e25a Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Wed, 9 Aug 2006 22:18:43 +0000 Subject: [PATCH] Format method for legibility (added some spaces in expressions.) git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@430167 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/org/apache/commons/lang/RandomStringUtilsTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/org/apache/commons/lang/RandomStringUtilsTest.java b/src/test/org/apache/commons/lang/RandomStringUtilsTest.java index 47d5e76be..1ba87694b 100644 --- a/src/test/org/apache/commons/lang/RandomStringUtilsTest.java +++ b/src/test/org/apache/commons/lang/RandomStringUtilsTest.java @@ -309,9 +309,9 @@ public class RandomStringUtilsTest extends junit.framework.TestCase { private double chiSquare(int[] expected, int[] observed) { double sumSq = 0.0d; double dev = 0.0d; - for (int i = 0; i< observed.length; i++) { - dev = (double)(observed[i] - expected[i]); - sumSq += dev*dev/(double)expected[i]; + for (int i = 0; i < observed.length; i++) { + dev = (double) (observed[i] - expected[i]); + sumSq += dev * dev / (double) expected[i]; } return sumSq; }