From 0f47a8e48b47c86cced777deccdbad7682becac9 Mon Sep 17 00:00:00 2001
From: gprat <guylaine.prat@c-s.fr>
Date: Tue, 30 Jun 2020 18:04:26 +0200
Subject: [PATCH] Remove useless parenthesis

---
 checkstyle.xml                                            | 5 -----
 .../refraction/AtmosphericComputationParameters.java      | 8 ++------
 2 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/checkstyle.xml b/checkstyle.xml
index f7f6883b..b6b597bb 100644
--- a/checkstyle.xml
+++ b/checkstyle.xml
@@ -94,11 +94,6 @@
           <property name="onCommentFormat" value="CHECKSTYLE\: resume MultipleStringLiterals check"/>
           <property name="checkFormat" value="MultipleStringLiteralsCheck"/>
         </module>
-        <module name="SuppressionCommentFilter">
-          <property name="offCommentFormat" value="CHECKSTYLE\: stop UnnecessaryParentheses check"/>
-          <property name="onCommentFormat" value="CHECKSTYLE\: resume UnnecessaryParentheses check"/>
-          <property name="checkFormat" value="UnnecessaryParentheses"/>
-        </module>
     </module>
     <module name="RegexpHeader">
       <property name="headerFile" value="${checkstyle.header.file}" />
diff --git a/src/main/java/org/orekit/rugged/refraction/AtmosphericComputationParameters.java b/src/main/java/org/orekit/rugged/refraction/AtmosphericComputationParameters.java
index bdd6dd2d..2b30c63e 100644
--- a/src/main/java/org/orekit/rugged/refraction/AtmosphericComputationParameters.java
+++ b/src/main/java/org/orekit/rugged/refraction/AtmosphericComputationParameters.java
@@ -94,13 +94,9 @@ public class AtmosphericComputationParameters {
         }
         this.nbLineGrid = (maxLine - minLine + 1 - 2 * MARGIN_LINE) / this.lineStep;
 
-        // CHECKSTYLE: stop UnnecessaryParentheses check
-
         // Compute the linear grids in pixel (u index) and line (v index)
-        this.uGrid = GridCreation.createLinearGrid(0, (sensorNbPxs - 1), this.nbPixelGrid);
-        this.vGrid = GridCreation.createLinearGrid((minLine + MARGIN_LINE), (maxLine - MARGIN_LINE), this.nbLineGrid);
-
-        // CHECKSTYLE: resume UnnecessaryParentheses check
+        this.uGrid = GridCreation.createLinearGrid(0, sensorNbPxs - 1, this.nbPixelGrid);
+        this.vGrid = GridCreation.createLinearGrid(minLine + MARGIN_LINE, maxLine - MARGIN_LINE, this.nbLineGrid);
 
     }
 
-- 
GitLab