Added checkstyle filter for declaration orders in FastMath.

FastMath uses very large tables which are located at end of class for
better readability. this is not a standard layout, but is well suited
for this case, hence we explicitly suppress checkstyle warning for these
tables.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1179948 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2011-10-07 07:26:26 +00:00
parent 0251da64fd
commit d079f625be
2 changed files with 8 additions and 1 deletions

View File

@ -183,6 +183,11 @@
<property name="onCommentFormat" value="CHECKSTYLE\: resume IllegalCatch"/> <property name="onCommentFormat" value="CHECKSTYLE\: resume IllegalCatch"/>
<property name="checkFormat" value="IllegalCatch"/> <property name="checkFormat" value="IllegalCatch"/>
</module> </module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CHECKSTYLE\: stop DeclarationOrder"/>
<property name="onCommentFormat" value="CHECKSTYLE\: resume DeclarationOrder"/>
<property name="checkFormat" value="DeclarationOrder"/>
</module>
</module> </module>

View File

@ -3656,7 +3656,7 @@ public class FastMath {
// ===================================== large static tables ==================================== // ===================================== large static tables ====================================
//CHECKSTYLE: stop DeclarationOrder
/** Index of exp(0) in the array of integer exponentials. */ /** Index of exp(0) in the array of integer exponentials. */
static final int EXP_INT_TABLE_MAX_INDEX = 750; static final int EXP_INT_TABLE_MAX_INDEX = 750;
@ -9851,4 +9851,6 @@ public class FastMath {
} }
} }
//CHECKSTYLE: resume DeclarationOrder
} }