1 /*xml 2 <module name="Checker"> 3 <module name="TreeWalker"> 4 <module name="AvoidStaticImport"> 5 <property name="excludes" value="java.lang.System.out,java.lang.Math.*"/> 6 </module> 7 </module> 8 </module> 9 */ 10 11 package com.puppycrawl.tools.checkstyle.checks.imports.avoidstaticimport; 12 13 // xdoc section -- start 14 import static java.lang.Math.*; // OK 15 import static java.lang.System.out; // OK 16 import static java.lang.Integer.parseInt; // violation, 'Using a static member import should be avoided.' 17 import java.io.*; // OK 18 import java.util.*; // OK 19 // xdoc section -- end 20 21 class Example2{}