1 /* 2 MagicNumber 3 ignoreNumbers = (default)-1, 0, 1, 2 4 ignoreHashCodeMethod = (default)false 5 ignoreAnnotation = (default)false 6 ignoreFieldDeclaration = (default)false 7 ignoreAnnotationElementDefaults = false 8 constantWaiverParentToken = (default)TYPECAST, METHOD_CALL, EXPR, ARRAY_INIT, UNARY_MINUS, \ 9 UNARY_PLUS, ELIST, STAR, ASSIGN, PLUS, MINUS, DIV, LITERAL_NEW, \ 10 SR, BSR, SL, BXOR, BOR, BAND, BNOT, QUESTION, COLON, EQUAL, NOT_EQUAL, \ 11 GE, GT, LE, LT, MOD 12 tokens = (default)NUM_DOUBLE, NUM_FLOAT, NUM_INT, NUM_LONG 13 14 15 */ 16 17 package com.puppycrawl.tools.checkstyle.checks.coding.magicnumber; 18 19 @interface InputMagicNumberAnnotationElement { 20 int value() default 10; // violation 21 int[] value2() default {11}; // violation 22 }