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
Mar 15, 2022
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
Mar 15, 2022 09:46
David Svoboda
View Changes
Mar 11, 2020 12:55
David Svoboda
View Changes
Nov 21, 2018 14:11
Derek Leung
View Changes
Nov 20, 2018 14:34
Derek Leung
View Changes
Nov 20, 2018 13:50
Derek Leung
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": 76, "requestCorrelationId": "33c5c1b8e7b7c02c"}