Just in case it is required:

* Either just allow the single exception, then create a
src/checkstyle/suppressions.xml file in the maven module, please see the
example I added in kerby-kerb/kerb-crypto/src/checkstyle/suppressions.xml
* Or disable it globally by commenting out the "IllegalImport" check in
docs/kerby-checkstyle.xml

Kind Regards,
Stefan


On 07/07/2015 05:03 AM, Xu, Yaning wrote:
> Thanks for Kai's suggestion, this may be a good solution.
> 
> Regards,
> 
> Yaning
> 
> -----Original Message-----
> From: Zheng, Kai [mailto:[email protected]] 
> Sent: Tuesday, July 07, 2015 10:56 AM
> To: [email protected]
> Subject: RE: How to make checkstyle ignore "Import from illegal package"
> 
> Hi Yaning,
> 
> I remembered we have a class Md4.java in the crypto module. Would you check 
> if it can be used in the place, thanks.
> 
> Regards,
> Kai
> 
> -----Original Message-----
> From: Xu, Yaning [mailto:[email protected]] 
> Sent: Tuesday, July 07, 2015 10:32 AM
> To: [email protected]
> Subject: How to make checkstyle ignore "Import from illegal package"
> 
> Hi all,
> 
>                 When I run "mvn checkstyle:check", there is an error in 
> Rc4Maker -" (imports) IllegalImport: Import from illegal package - 
> sun.security.provider.MD4". However, we indeed need to import it.
> 
>                 So how can I make checkstyle igore it?
> 
> 
> Regards,
> 
> Yaning
> 

Reply via email to