Skip to main content
assistive.skiplink.to.breadcrumbs
assistive.skiplink.to.header.menu
assistive.skiplink.to.action.menu
assistive.skiplink.to.quick.search
Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
SEI CERT Oracle Coding Standard for Java
Pages
Boards
Space shortcuts
Dashboard
Secure Coding Home
Android
C
C++
Java
Perl
Page tree
Browse pages
Configure
Space tools
View Page
A
t
tachments (0)
Page History
Page Information
View in Hierarchy
View Source
Export to PDF
Export to Word
Pages
…
SEI CERT Oracle Coding Standard for Java
2 Rules
Rule 05. Object Orientation (OBJ)
OBJ01-J. Limit accessibility of fields
Page Information
Title:
OBJ01-J. Limit accessibility of fields
Author:
Fred Long
Sep 13, 2007
Last Changed by:
David Svoboda
Sep 30, 2021
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/LjdGBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT Oracle Coding Standard for Java (4)
Page:
OBJ58-J. Limit the extensibility of classes and methods with invariants
Page:
LCK00-J. Use private final lock objects to synchronize classes that may interact with untrusted code
Page:
OBJ13-J. Ensure that references to mutable objects are not exposed
Page:
OBJ10-J. Do not use public static nonfinal fields
Hierarchy
Parent Page
Page:
Rule 05. Object Orientation (OBJ)
Labels
Global Labels (4)
draft
android-applicable
rule
obj
Recent Changes
Time
Editor
Sep 30, 2021 08:38
David Svoboda
View Changes
Dec 12, 2019 10:32
Robert Schiela
View Changes
Added clarification about the immutability of String.
Dec 10, 2019 13:31
David Svoboda
View Changes
removed last statement from final CS
Jan 03, 2019 03:47
Alexandre GIGLEUX
View Changes
Nov 16, 2017 14:43
Will Snavely
View Page History
Outgoing Links
External Links (8)
https://rules.sonarsource.com/java/RSPEC-2386
www.oracle.com/technetwork/java/seccodeguide-139067.html
cwe.mitre.org/
https://www.securecoding.cert.org/confluence/display/java/O…
cwe.mitre.org/data/definitions/766.html
docs.oracle.com/javase/specs/jls/se8/html/jls-4.html#jls-4.…
dl.acm.org/citation.cfm?doid=1814217.1814224
docs.oracle.com/javase/specs/jls/se8/html/jls-6.html#jls-6.…
SEI CERT C++ Coding Standard (2)
Home page:
SEI CERT C++ Coding Standard
Page:
VOID OOP00-CPP. Declare data members private
SEI CERT Oracle Coding Standard for Java (10)
Home page:
SEI CERT Oracle Coding Standard for Java
Page:
SonarQube_V
Page:
Rec. AA. References
Page:
Rule AA. References
Page:
SonarQube
Page:
OBJ02-J. Preserve dependencies in subclasses when changing superclasses
Page:
Rule BB. Glossary
Page:
Rule 05. Object Orientation (OBJ)
Page:
OBJ05-J. Do not return references to private mutable class members
Page:
OBJ56-J. Provide sensitive mutable classes with unmodifiable wrappers
Overview
Content Tools
{"serverDuration": 97, "requestCorrelationId": "b905f535b28d780f"}