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 06. Methods (MET)
Page Information
Title:
Rule 06. Methods (MET)
Author:
Dhruv Mohindra
Jul 17, 2008
Last Changed by:
David Svoboda
Aug 07, 2025
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/ETZGBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT Oracle Coding Standard for Java (7)
Page:
MET05-J. Ensure that constructors do not call overridable methods
Page:
MET00-J. Validate method arguments
Page:
MET02-J. Do not use deprecated or obsolete classes or methods
Page:
MET06-J. Do not invoke overridable methods in clone()
Page:
MET03-J. Methods that perform a security check must be declared private or final
Page:
MET04-J. Do not increase the accessibility of overridden or hidden methods
Page:
MET01-J. Never use assertions to validate method arguments
Hierarchy
Parent Page
Page:
2 Rules
Children (14)
Page:
MET00-J. Validate method arguments
Page:
MET01-J. Never use assertions to validate method arguments
Page:
MET02-J. Do not use deprecated or obsolete classes or methods
Page:
MET03-J. Methods that perform a security check must be declared private or final
Page:
MET04-J. Do not increase the accessibility of overridden or hidden methods
Page:
MET05-J. Ensure that constructors do not call overridable methods
Page:
MET06-J. Do not invoke overridable methods in clone()
Page:
MET07-J. Never declare a class method that hides a method declared in a superclass or superinterface
Page:
MET08-J. Preserve the equality contract when overriding the equals() method
Page:
MET09-J. Classes that define an equals() method must also define a hashCode() method
Show all...
Page:
MET10-J. Follow the general contract when implementing the compareTo() method
Page:
MET11-J. Ensure that keys used in comparison operations are immutable
Page:
MET12-J. Do not use finalizers
Page:
MET13-J. Do not assume that reassigning method arguments modifies the calling environment
Hide...
Labels
Global Labels (3)
met
rule-list
section
Recent Changes
Time
Editor
Aug 07, 2025 08:17
David Svoboda
View Changes
Aug 06, 2025 18:07
David Svoboda
View Changes
Aug 06, 2025 17:26
David Svoboda
View Changes
Aug 06, 2025 17:21
David Svoboda
View Changes
REM cost reform
Aug 12, 2024 09:55
Robert Schiela
no op
View Page History
Outgoing Links
External Links (3)
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
SEI CERT Oracle Coding Standard for Java (1)
Home page:
SEI CERT Oracle Coding Standard for Java
Overview
Content Tools
{"serverDuration": 95, "requestCorrelationId": "ed880c4536913967"}