[DOCS-131] Checkstyle violation Created: 10/Sep/20  Updated: 10/Sep/20  Resolved: 10/Sep/20

Status: Resolved
Project: docs
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Thiện Nguyễn Minh Assignee: Thanh Ha (zxiiro)
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Untitled.png    

 Description   

version: Magnesium
page: developer-guide/developing-apps-on-the-opendaylight-controller

When i use " mvn clean install" in step 4: Build the example project, i found "Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (default) on project example-it: You have 1 Checkstyle violation." 
Can you help me to fix it? 
Thanh you very much!



 Comments   
Comment by Thanh Ha (zxiiro) [ 10/Sep/20 ]

Look at the first instance of [ERROR] in your screenshot. You can see that checkstyle is catching the line 15 in ExampleTest.java that you have an unused import for "org.junit.Ignore".

Checkstyle is checking to make sure you are not importing Java libraries that are not being used in your code so you must make sure all your imports are either used or not imported at all. In this case you can probably just delete the line and rebuild.

Comment by Thanh Ha (zxiiro) [ 10/Sep/20 ]

Closing as this is not related to documentation.

Generated at Wed Feb 07 19:58:45 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.