GitHub
CERT Secure Coding

OBJ12-J. Respect object-based annotations

This rule is a stub.

Noncompliant Code Example

This noncompliant code example shows an example where ...

Non-compliant code

Compliant Solution

In this compliant solution, ...

Compliant code

Risk Assessment

If object-based annotations are not respected then ...

Rule Severity Likelihood Detectable Repairable Priority Level
OBJ12-J Low Probable No No P2 L3

Automated Detection

ToolVersionCheckerDescription
Security Reviewer - Static Reviewer

6.02

CWE561J13, CWE561J11Full Implementation

Bibliography

[ FindBugs 2008 ]JCIP: Fields of immutable classes should be final
NP: Method call passes null to a nonnull parameter

NP: Method may return null, but is declared @NonNull
NP: Parameter must be nonnull but is marked as nullable