Fix 1 coding violation

For beginners, we recommend starting with the task Setup development environment.


  • You'll need to have an account on GitHub. You might also want to take a look at Git and GitHub interface documentations.
  • You will need a least basic knowledge of Java programming language to understand what is asked


Go to http://sonar.xwiki.org/issues/search#resolved=false|severities=BLOCKER%2CCRITICAL%2CMAJOR|projectUuids=f3aae72a-d56b-42fe-b578-e229aac56491%2C897a7e96-6a12-4f35-8777-68cd5c9d5875%2C1c81cbae-4d41-47fc-bbe5-341da3345fd0 and fix coding violation listed there.

Modified code should follow the official XWiki codestyle and build fine with Maven: see http://dev.xwiki.org/xwiki/bin/view/Community/JavaCodeStyle and http://dev.xwiki.org/xwiki/bin/view/Community/Building.

Note that some of them actually are false positive so in case of doubt you should ask in the chat. This task is really not a blind replacement of some code by what Sonar suggest you really need to understand what you are doing so be careful.

Expected Outcome:

The student will create a pull request with the changes. The commit message must be of the following form [codestyle] (you can find the reason in sonar) as in:

[codestyle] Remove unnecessary constructors

All the repositories are located on https://github.com/xwiki/.

The student should comment in the GCI task with:

  • the link to this pull request
  • the link to the Sonar issue fixed

More Work Available:

Task tags

  • sonar
  • java

Students who completed this task

Arun Pattni, Margaret Morehead, 1337_siddh, Elysia, Rohit Tanikella, Jacob Juric, Enigmatrix, Srijan Jha, Piotr Łazik, Akshit Dewan, David Lamptey, Gonzalo Urán, ZQ, PiyushGupta

Task type

  • code Code
  • done_all Quality Assurance