Query module NonFinalImmutableField

name
Non-final immutable field
description
A field of immutable type that is assigned to only in a constructor or static initializer of its declaring type, but is not declared ‘final’, may lead to defects and makes code less readable.
kind
problem
problem.severity
recommendation
precision
medium
id
java/non-final-immutable-field
tags
reliability

Imports

java

Provides all default Java QL imports.

Classes

AnyAssignment

A binary or unary assignment.

ImmutableField
Initialization