diff options
author | Noel Grandin <noel@peralex.com> | 2015-02-11 13:20:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-02-23 09:26:58 +0200 |
commit | ba233e87efddf0a6751b35784dca1c805364ff3b (patch) | |
tree | 9d7c8a4256e688c2d47cb6ecf580ac196c4da2c0 /nlpsolver/ThirdParty | |
parent | a2fa9e2468aa5c4fd4b610c5d0ebc8959e87a072 (diff) |
remove unnecessary parenthesis in return statements
found with
$ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;'
Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
Diffstat (limited to 'nlpsolver/ThirdParty')
-rw-r--r-- | nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java index 0eb1e2a7eeac..b59b0f8b19ed 100644 --- a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java +++ b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java @@ -36,7 +36,7 @@ public class RandomGenerator { public static int intRangeRandom(int lowLimit, int upLimit) { int num = (int) Math .floor(doubleRangeRandom(lowLimit, upLimit + 1) - 1E-10); - return (num); + return num; } /** @@ -50,7 +50,7 @@ public class RandomGenerator { */ public static double doubleRangeRandom(double lowLimit, double upLimit) { double num = lowLimit + Math.random() * (upLimit - lowLimit); - return (num); + return num; } public static int[] randomSelection(int maxNum, int times) { @@ -87,4 +87,4 @@ public class RandomGenerator { } return indices; } -}
\ No newline at end of file +} |