Manual:Coding conventions/Java

This page describes the coding conventions used within files of the man>Special:MyLanguage/Manual:Code|MediaWiki codebase written in Java.

See also the man>Special:MyLanguage/Manual:Coding conventions#All languages|general conventions that apply to all program languages, including Java.

MediaWiki Java code follows the [https://google.github.io/styleguide/javaguide.html Google Java Style].

A xml>Special:MyLanguage/Coding conventions/Java/checkstyle.xml|Checkstyle configuration file is used for verification by the [https://maven.apache.org/plugins/maven-checkstyle-plugin/ Maven Checkstyle Plugin].