|
Last Published: 2026-08-30
|
Version: 14.1.0
toTop
About
Checkstyle
Release Notes
Consulting
Sponsoring
Documentation
Getting Started
Configuration
Property Types
System Properties
XPath
Running
Ant Task
Command Line
Result Reports
Checks
Annotations
Block Checks
Class Design
Coding
ArrayTrailingComma
AvoidDoubleBraceInitialization
AvoidInlineConditionals
AvoidNoArgumentSuperConstructorCall
ConstructorsDeclarationGrouping
CovariantEquals
DeclarationOrder
DefaultComesLast
EmptyStatement
EqualsAvoidNull
EqualsHashCode
ExplicitInitialization
ExpressionOverBlockLambda
FallThrough
FinalLocalVariable
HiddenField
IllegalCatch
IllegalInstantiation
IllegalSymbol
IllegalThrows
IllegalToken
IllegalTokenText
IllegalType
InnerAssignment
MagicNumber
MatchXpath
MissingCtor
MissingNullCaseInSwitch
MissingSwitchDefault
ModifiedControlVariable
MultipleStringLiterals
MultipleVariableDeclarations
NestedForDepth
NestedIfDepth
NestedTryDepth
NoArrayTrailingComma
NoClone
NoEnumTrailingComma
NoFinalizer
OneStatementPerLine
OverloadMethodsDeclarationOrder
PackageDeclaration
ParameterAssignment
PatternVariableAssignment
RequireThis
ReturnCount
SimplifyBooleanExpression
SimplifyBooleanReturn
StringLiteralEquality
SuperClone
SuperFinalize
TextBlockGoogleStyle
UnnecessaryNullCheckWithInstanceOf
UnnecessaryParentheses
UnnecessarySemicolonAfterOuterTypeDeclaration
UnnecessarySemicolonAfterTypeMemberDeclaration
UnnecessarySemicolonInEnumeration
UnnecessarySemicolonInTryWithResources
UnnecessaryTypeArgumentsWithRecordPattern
UnusedCatchParameterShouldBeUnnamed
UnusedLambdaParameterShouldBeUnnamed
UnusedLocalVariable
UnusedPrivateField
UnusedTryResourceShouldBeUnnamed
UseEnhancedSwitch
VariableDeclarationUsageDistance
WhenShouldBeUsed
Headers
Imports
Javadoc Comments
Metrics
Miscellaneous
Modifiers
Modules
Naming Conventions
Regexp
Size Violations
Whitespace
Filters
File Filters
Style Configurations
Google's Style
OpenJDK's Style
Sun's Style
Documentation Comments Style
Developers
Extending Checkstyle
Writing Checks
Writing Javadoc Checks
Writing Filters
Writing File Filters
Writing Listeners
Contributing
Beginning Development
Eclipse IDE
NetBeans IDE
IntelliJ IDE
Javadoc
Project Documentation
Project Information
Project Reports
DeclarationOrder
Since Checkstyle 3.2
On This Page
Description
Properties
Examples
Default configuration
Ignore validation of constructors
Ignore modifiers
Example of Usage
Violation Messages
Fully Qualified Name
Parent Module
Description
Checks that the parts of a class, record, or interface declaration appear in the order suggested by the