[{"data":1,"prerenderedAt":3498},["ShallowReactive",2],{"global-navigation":3,"page-\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet12-j":28,"surround-\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet12-j":1932,"sidebar-sei-cert-oracle-coding-standard-for-java":1939},[4,8],{"title":5,"path":6,"_path":6,"fromAppConfig":7},"Home","\u002F",true,{"title":9,"path":10,"children":11,"_path":27,"fromAppConfig":7},"Coding Standards","\u002Fcoding-standards\u002F",[12,15,18,21,24],{"title":13,"path":14},"Android Coding Standard","\u002Fandroid-secure-coding-standard\u002F",{"title":16,"path":17},"C Coding Standard","\u002Fsei-cert-c-coding-standard\u002F",{"title":19,"path":20},"C++ Coding Standard","\u002Fsei-cert-cpp-coding-standard\u002F",{"title":22,"path":23},"Java Coding Standard","\u002Fsei-cert-oracle-coding-standard-for-java\u002F",{"title":25,"path":26},"Perl Coding Standard","\u002Fsei-cert-perl-coding-standard\u002F","\u002Fcoding-standards",{"id":29,"title":30,"body":31,"description":41,"extension":1920,"meta":1921,"navigation":7,"path":1928,"seo":1929,"stem":1930,"__hash__":1931},"content\u002F6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F14.met12-j.md","MET12-J. Do not use finalizers",{"type":32,"value":33,"toc":1906},"minimark",[34,38,42,45,62,88,126,134,139,150,165,170,187,192,206,209,214,254,345,349,359,421,428,439,454,459,499,1001,1004,1056,1060,1080,1084,1091,1104,1162,1181,1265,1295,1303,1307,1315,1382,1386,1651,1656,1679,1683,1742,1746,1878,1881,1902],[35,36,30],"h1",{"id":37},"met12-j-do-not-use-finalizers",[39,40,41],"p",{},"The garbage collector invokes object finalizer methods after it determines that the object is unreachable but before it reclaims the object's storage. Execution of the finalizer provides an opportunity to release resources such as open streams, files, and network connections that might not otherwise be released automatically through the normal action of the garbage collector.",[39,43,44],{},"A sufficient number of problems are associated with finalizers to restrict their use to exceptional conditions:",[46,47,48],"ul",{},[49,50,51,52,56,57,61],"li",{},"There is no fixed time at which finalizers must be executed because time of execution depends on the Java Virtual Machine (JVM). The only guarantee is that any finalizer method that executes will do so sometime after the associated object has become unreachable (detected during the first cycle of garbage collection) and sometime before the garbage collector reclaims the associated object's storage (during the garbage collector's second cycle). Execution of an object's finalizer may be delayed for an ",[53,54,55],"em",{},"arbitrarily"," long time after the object becomes unreachable. Consequently, invoking time-critical functionality such as closing file handles in an object's ",[58,59,60],"code",{},"finalize()"," method is problematic.",[46,63,64],{},[49,65,66,67,70,71,70,74,77,78,81,82,87],{},"The JVM may terminate without invoking the finalizer on some or all unreachable objects. Consequently, attempts to update critical persistent state from finalizer methods can fail without warning. Similarly, Java lacks any guarantee that finalizers will execute on process termination. Methods such as ",[58,68,69],{},"System.gc()"," , ",[58,72,73],{},"System.runFinalization()",[58,75,76],{},"System.runFinalizersOnExit()"," , and ",[58,79,80],{},"Runtime.runFinalizersOnExit()"," either lack such guarantees or have been deprecated because of lack of safety and potential for ",[83,84,86],"a",{"href":85},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-deadlock","deadlock"," .",[46,89,90],{},[49,91,92,93,96,97,103,104,108,109,118,121,122,87],{},"According to ",[53,94,95],{},"The Java Language Specification"," (JLS), ",[83,98,102],{"href":99,"rel":100},"http:\u002F\u002Fjava.sun.com\u002Fdocs\u002Fbooks\u002Fjls\u002Fthird_edition\u002Fhtml\u002Fexecution.html#12.6.2",[101],"nofollow","§12.6, \"Finalization of Class Instances\""," [ ",[83,105,107],{"href":106},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-JLS15","JLS 2015"," ]:",[110,111,112],"blockquote",{},[39,113,114,115,117],{},"The Java programming language imposes no ordering on ",[58,116,60],{}," method calls. Finalizers [of different objects] may be called in any order, or even concurrently.",[119,120],"br",{},"One consequence is that slow-running finalizers can delay execution of other finalizers in the queue. Further, the lack of guaranteed ordering can lead to substantial difficulty in maintaining desired program ",[83,123,125],{"href":124},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-invariant","invariants",[46,127,128],{},[49,129,130,131,133],{},"Uncaught exceptions thrown during finalization are ignored. When an exception thrown in a finalizer propagates beyond the ",[58,132,60],{}," method, the process itself immediately stops and consequently fails to accomplish its sole purpose. This termination of the finalization process may or may not prevent all subsequent finalization from executing. The JLS fails to define this behavior, leaving it to the individual implementations.",[46,135,136],{},[49,137,138],{},"Coding errors that result in memory leaks can cause objects to incorrectly remain reachable; consequently, their finalizers are never invoked.",[46,140,141],{},[49,142,143,144,146,147,149],{},"A programmer can unintentionally resurrect an object's reference in the ",[58,145,60],{}," method. When this occurs, the garbage collector must determine yet again whether the object is free to be deallocated. Further, because the ",[58,148,60],{}," method has executed once, the garbage collector cannot invoke it a second time.",[46,151,152],{},[49,153,154,155,159,160,164],{},"Garbage collection usually depends on memory availability and usage rather than on the scarcity of some other particular resource. Consequently, when memory is readily available, a scarce resource may be exhausted in spite of the presence of a finalizer that could release the scarce resource if it were executed. See ",[83,156,158],{"href":157},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio04-j","FIO04-J. Release resources when they are no longer needed"," and ",[83,161,163],{"href":162},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps00-j","TPS00-J. Use thread pools to enable graceful degradation of service during traffic bursts"," for more details on handling scarce resources correctly.",[46,166,167],{},[49,168,169],{},"It is a common myth that finalizers aid garbage collection. On the contrary, they increase garbage-collection time and introduce space overheads. Finalizers interfere with the operation of modern generational garbage collectors by extending the lifetimes of many objects. Incorrectly programmed finalizers could also attempt to finalize reachable objects, which is always counterproductive and can violate program invariants.",[46,171,172],{},[49,173,174,175,177,178,181,182,186],{},"Use of finalizers can introduce synchronization issues even when the remainder of the program is single-threaded. The ",[58,176,60],{}," methods are invoked by the garbage collector from one or more threads of its choice; these threads are typically distinct from the ",[58,179,180],{},"main()"," thread, although this property is not guaranteed. When a finalizer is necessary, any required cleanup data structures must be protected from concurrent access. See the JavaOne presentation by Hans J. Boehm [ ",[83,183,185],{"href":184},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-Boehm05","Boehm 2005"," ] for additional information.",[46,188,189],{},[49,190,191],{},"Use of locks or other synchronization-based mechanisms within a finalizer can cause deadlock or starvation. This possibility arises because neither the invocation order nor the specific executing thread or threads for finalizers can be guaranteed or controlled.",[39,193,194,195,200,201,205],{},"Object finalizers have also been ",[83,196,199],{"href":197,"rel":198},"https:\u002F\u002Fdocs.oracle.com\u002Fjavase\u002F9\u002Fdocs\u002Fapi\u002Fjava\u002Flang\u002FObject.html#finalize--",[101],"deprecated since Java 9"," . See ",[83,202,204],{"href":203},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet02-j","MET02-J. Do not use deprecated or obsolete classes or methods"," for more information.",[39,207,208],{},"Because of these problems, finalizers must not be used in new classes.",[210,211,213],"h2",{"id":212},"noncompliant-code-example-superclasss-finalizer","Noncompliant Code Example (Superclass's finalizer)",[39,215,216,217,220,221,223,224,226,227,229,230,233,234,236,237,240,241,243,244,247,248,250,251,253],{},"Superclasses that use finalizers impose additional constraints on their extending classes. Consider an example from JDK 1.5 and earlier. The following noncompliant code example allocates a 16 MB buffer used to back a Swing ",[58,218,219],{},"JFrame"," object. Although the ",[58,222,219],{}," APIs lack ",[58,225,60],{}," methods, ",[58,228,219],{}," extends ",[58,231,232],{},"AWT.Frame"," , which does have a ",[58,235,60],{}," method. When a ",[58,238,239],{},"MyFrame"," object becomes unreachable, the garbage collector cannot reclaim the storage for the byte buffer because code in the inherited ",[58,242,60],{}," method might refer to it. Consequently, the byte buffer must persist ",[53,245,246],{},"at least"," until the inherited ",[58,249,60],{}," method for class ",[58,252,239],{}," completes its execution and cannot be reclaimed until the following garbage-collection cycle.",[255,256,258],"code-block",{"quality":257},"bad",[259,260,265],"pre",{"className":261,"code":262,"language":263,"meta":264,"style":264},"language-java shiki shiki-themes github-light github-dark monokai","class MyFrame extends JFrame {\n  private byte[] buffer = new byte[16 * 1024 * 1024];\n  \u002F\u002F Persists for at least two GC cycles\n}\n","java","",[58,266,267,291,332,339],{"__ignoreMap":264},[268,269,272,276,280,283,287],"span",{"class":270,"line":271},"line",1,[268,273,275],{"class":274},"sC2Qs","class",[268,277,279],{"class":278},"sz2Vg"," MyFrame",[268,281,282],{"class":274}," extends",[268,284,286],{"class":285},"s30JN"," JFrame",[268,288,290],{"class":289},"sMOD_"," {\n",[268,292,294,297,301,304,307,310,312,315,319,322,325,327,329],{"class":270,"line":293},2,[268,295,296],{"class":274},"  private",[268,298,300],{"class":299},"sq6CD"," byte",[268,302,303],{"class":289},"[] buffer ",[268,305,306],{"class":274},"=",[268,308,309],{"class":274}," new",[268,311,300],{"class":299},[268,313,314],{"class":289},"[",[268,316,318],{"class":317},"s7F3e","16",[268,320,321],{"class":274}," *",[268,323,324],{"class":317}," 1024",[268,326,321],{"class":274},[268,328,324],{"class":317},[268,330,331],{"class":289},"];\n",[268,333,335],{"class":270,"line":334},3,[268,336,338],{"class":337},"s8-w5","  \u002F\u002F Persists for at least two GC cycles\n",[268,340,342],{"class":270,"line":341},4,[268,343,344],{"class":289},"}\n",[210,346,348],{"id":347},"compliant-solution-superclasss-finalizer","Compliant Solution (Superclass's finalizer)",[39,350,351,352,354,355,358],{},"When a superclass defines a ",[58,353,60],{}," method, make sure to decouple the objects that can be immediately garbage collected from those that must depend on the finalizer. This compliant solution ensures that the ",[58,356,357],{},"buffer"," can be reclaimed as soon as the object becomes unreachable.",[255,360,362],{"quality":361},"good",[259,363,365],{"className":261,"code":364,"language":263,"meta":264,"style":264},"class MyFrame {\n  private JFrame frame;\n  private byte[] buffer = new byte[16 * 1024 * 1024]; \u002F\u002F Now decoupled\n}\n",[58,366,367,375,385,417],{"__ignoreMap":264},[268,368,369,371,373],{"class":270,"line":271},[268,370,275],{"class":274},[268,372,279],{"class":278},[268,374,290],{"class":289},[268,376,377,379,382],{"class":270,"line":293},[268,378,296],{"class":274},[268,380,286],{"class":381},"sk8M1",[268,383,384],{"class":289}," frame;\n",[268,386,387,389,391,393,395,397,399,401,403,405,407,409,411,414],{"class":270,"line":334},[268,388,296],{"class":274},[268,390,300],{"class":299},[268,392,303],{"class":289},[268,394,306],{"class":274},[268,396,309],{"class":274},[268,398,300],{"class":299},[268,400,314],{"class":289},[268,402,318],{"class":317},[268,404,321],{"class":274},[268,406,324],{"class":317},[268,408,321],{"class":274},[268,410,324],{"class":317},[268,412,413],{"class":289},"]; ",[268,415,416],{"class":337},"\u002F\u002F Now decoupled\n",[268,418,419],{"class":270,"line":341},[268,420,344],{"class":289},[210,422,424,425,427],{"id":423},"noncompliant-code-example-systemrunfinalizersonexit","Noncompliant Code Example ( ",[58,426,76],{}," )",[39,429,430,431,433,434,438],{},"This noncompliant code example uses the ",[58,432,76],{}," method to simulate a garbage-collection run. Note that this method is deprecated because of ",[83,435,437],{"href":436},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-thr","thread-safety"," issues.",[39,440,441,442,446,447,70,450,453],{},"According to the Java API [ ",[83,443,445],{"href":444},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-API14","API 2014"," ] class ",[58,448,449],{},"System",[58,451,452],{},"runFinalizersOnExit()"," method documentation,",[110,455,456],{},[39,457,458],{},"Enable or disable finalization on exit; doing so specifies that the finalizers of all objects that have finalizers that have not yet been automatically invoked are to be run before the Java runtime exits. By default, finalization on exit is disabled.",[39,460,461,462,465,466,469,470,472,473,476,477,480,481,484,485,487,488,490,491,495,496,87],{},"The class ",[58,463,464],{},"SubClass"," overrides the ",[58,467,468],{},"protected"," ",[58,471,60],{}," method and performs cleanup activities. Subsequently, it calls ",[58,474,475],{},"super.finalize()"," to make sure its superclass is also finalized. The unsuspecting ",[58,478,479],{},"BaseClass"," calls the ",[58,482,483],{},"doLogic()"," method, which happens to be overridden in the ",[58,486,464],{}," . This resurrects a reference to ",[58,489,464],{}," that not only prevents it from being garbage-collected but also prevents it from calling its finalizer to close new resources that may have been allocated by the called method. As detailed in ",[83,492,494],{"href":493},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet05-j","MET05-J. Ensure that constructors do not call overridable methods"," , if the subclass's finalizer has terminated key resources, invoking its methods from the superclass might result in the observation of an object in an inconsistent state. In some cases, this can result in ",[58,497,498],{},"NullPointerException",[255,500,501],{"quality":257},[259,502,504],{"className":261,"code":503,"language":263,"meta":264,"style":264},"class BaseClass {\n  protected void finalize() throws Throwable {\n    System.out.println(\"Superclass finalize!\");\n    doLogic();\n  }\n\n  public void doLogic() throws Throwable {\n    System.out.println(\"This is super-class!\");\n  }\n}\n\nclass SubClass extends BaseClass {\n  private Date d; \u002F\u002F Mutable instance field\n\n  protected SubClass() {\n    d = new Date();\n  }\n\n  protected void finalize() throws Throwable {\n    System.out.println(\"Subclass finalize!\");\n    try {\n      \u002F\u002F  Cleanup resources\n      d = null;\n    } finally {\n      super.finalize();  \u002F\u002F Call BaseClass's finalizer\n    }\n  }\n\n  public void doLogic() throws Throwable {\n    \u002F\u002F Any resource allocations made here will persist\n\n    \u002F\u002F Inconsistent object state\n    System.out.println(\n        \"This is sub-class! The date object is: \" + d);\n    \u002F\u002F 'd' is already null\n  }\n}\n\npublic class BadUse {\n  public static void main(String[] args) {\n    try {\n      BaseClass bc = new SubClass();\n      \u002F\u002F Artificially simulate finalization (do not do this)\n      System.runFinalizersOnExit(true);\n    } catch (Throwable t) {\n      \u002F\u002F Handle error\n    }\n  }\n}\n",[58,505,506,515,538,556,564,570,576,595,609,614,619,624,638,652,657,667,681,686,691,708,722,730,736,750,761,780,786,791,796,813,819,824,830,840,852,858,863,868,873,887,915,922,939,945,961,980,986,991,996],{"__ignoreMap":264},[268,507,508,510,513],{"class":270,"line":271},[268,509,275],{"class":274},[268,511,512],{"class":278}," BaseClass",[268,514,290],{"class":289},[268,516,517,520,523,527,530,533,536],{"class":270,"line":293},[268,518,519],{"class":274},"  protected",[268,521,522],{"class":299}," void",[268,524,526],{"class":525},"srTi1"," finalize",[268,528,529],{"class":289},"() ",[268,531,532],{"class":274},"throws",[268,534,535],{"class":381}," Throwable",[268,537,290],{"class":289},[268,539,540,543,546,549,553],{"class":270,"line":334},[268,541,542],{"class":289},"    System.out.",[268,544,545],{"class":525},"println",[268,547,548],{"class":289},"(",[268,550,552],{"class":551},"sstjo","\"Superclass finalize!\"",[268,554,555],{"class":289},");\n",[268,557,558,561],{"class":270,"line":341},[268,559,560],{"class":525},"    doLogic",[268,562,563],{"class":289},"();\n",[268,565,567],{"class":270,"line":566},5,[268,568,569],{"class":289},"  }\n",[268,571,573],{"class":270,"line":572},6,[268,574,575],{"emptyLinePlaceholder":7},"\n",[268,577,579,582,584,587,589,591,593],{"class":270,"line":578},7,[268,580,581],{"class":274},"  public",[268,583,522],{"class":299},[268,585,586],{"class":525}," doLogic",[268,588,529],{"class":289},[268,590,532],{"class":274},[268,592,535],{"class":381},[268,594,290],{"class":289},[268,596,598,600,602,604,607],{"class":270,"line":597},8,[268,599,542],{"class":289},[268,601,545],{"class":525},[268,603,548],{"class":289},[268,605,606],{"class":551},"\"This is super-class!\"",[268,608,555],{"class":289},[268,610,612],{"class":270,"line":611},9,[268,613,569],{"class":289},[268,615,617],{"class":270,"line":616},10,[268,618,344],{"class":289},[268,620,622],{"class":270,"line":621},11,[268,623,575],{"emptyLinePlaceholder":7},[268,625,627,629,632,634,636],{"class":270,"line":626},12,[268,628,275],{"class":274},[268,630,631],{"class":278}," SubClass",[268,633,282],{"class":274},[268,635,512],{"class":285},[268,637,290],{"class":289},[268,639,641,643,646,649],{"class":270,"line":640},13,[268,642,296],{"class":274},[268,644,645],{"class":381}," Date",[268,647,648],{"class":289}," d; ",[268,650,651],{"class":337},"\u002F\u002F Mutable instance field\n",[268,653,655],{"class":270,"line":654},14,[268,656,575],{"emptyLinePlaceholder":7},[268,658,660,662,664],{"class":270,"line":659},15,[268,661,519],{"class":274},[268,663,631],{"class":525},[268,665,666],{"class":289},"() {\n",[268,668,670,673,675,677,679],{"class":270,"line":669},16,[268,671,672],{"class":289},"    d ",[268,674,306],{"class":274},[268,676,309],{"class":274},[268,678,645],{"class":525},[268,680,563],{"class":289},[268,682,684],{"class":270,"line":683},17,[268,685,569],{"class":289},[268,687,689],{"class":270,"line":688},18,[268,690,575],{"emptyLinePlaceholder":7},[268,692,694,696,698,700,702,704,706],{"class":270,"line":693},19,[268,695,519],{"class":274},[268,697,522],{"class":299},[268,699,526],{"class":525},[268,701,529],{"class":289},[268,703,532],{"class":274},[268,705,535],{"class":381},[268,707,290],{"class":289},[268,709,711,713,715,717,720],{"class":270,"line":710},20,[268,712,542],{"class":289},[268,714,545],{"class":525},[268,716,548],{"class":289},[268,718,719],{"class":551},"\"Subclass finalize!\"",[268,721,555],{"class":289},[268,723,725,728],{"class":270,"line":724},21,[268,726,727],{"class":274},"    try",[268,729,290],{"class":289},[268,731,733],{"class":270,"line":732},22,[268,734,735],{"class":337},"      \u002F\u002F  Cleanup resources\n",[268,737,739,742,744,747],{"class":270,"line":738},23,[268,740,741],{"class":289},"      d ",[268,743,306],{"class":274},[268,745,746],{"class":317}," null",[268,748,749],{"class":289},";\n",[268,751,753,756,759],{"class":270,"line":752},24,[268,754,755],{"class":289},"    } ",[268,757,758],{"class":274},"finally",[268,760,290],{"class":289},[268,762,764,768,771,774,777],{"class":270,"line":763},25,[268,765,767],{"class":766},"sP7S_","      super",[268,769,770],{"class":289},".",[268,772,773],{"class":525},"finalize",[268,775,776],{"class":289},"();  ",[268,778,779],{"class":337},"\u002F\u002F Call BaseClass's finalizer\n",[268,781,783],{"class":270,"line":782},26,[268,784,785],{"class":289},"    }\n",[268,787,789],{"class":270,"line":788},27,[268,790,569],{"class":289},[268,792,794],{"class":270,"line":793},28,[268,795,575],{"emptyLinePlaceholder":7},[268,797,799,801,803,805,807,809,811],{"class":270,"line":798},29,[268,800,581],{"class":274},[268,802,522],{"class":299},[268,804,586],{"class":525},[268,806,529],{"class":289},[268,808,532],{"class":274},[268,810,535],{"class":381},[268,812,290],{"class":289},[268,814,816],{"class":270,"line":815},30,[268,817,818],{"class":337},"    \u002F\u002F Any resource allocations made here will persist\n",[268,820,822],{"class":270,"line":821},31,[268,823,575],{"emptyLinePlaceholder":7},[268,825,827],{"class":270,"line":826},32,[268,828,829],{"class":337},"    \u002F\u002F Inconsistent object state\n",[268,831,833,835,837],{"class":270,"line":832},33,[268,834,542],{"class":289},[268,836,545],{"class":525},[268,838,839],{"class":289},"(\n",[268,841,843,846,849],{"class":270,"line":842},34,[268,844,845],{"class":551},"        \"This is sub-class! The date object is: \"",[268,847,848],{"class":274}," +",[268,850,851],{"class":289}," d);\n",[268,853,855],{"class":270,"line":854},35,[268,856,857],{"class":337},"    \u002F\u002F 'd' is already null\n",[268,859,861],{"class":270,"line":860},36,[268,862,569],{"class":289},[268,864,866],{"class":270,"line":865},37,[268,867,344],{"class":289},[268,869,871],{"class":270,"line":870},38,[268,872,575],{"emptyLinePlaceholder":7},[268,874,876,879,882,885],{"class":270,"line":875},39,[268,877,878],{"class":274},"public",[268,880,881],{"class":274}," class",[268,883,884],{"class":278}," BadUse",[268,886,290],{"class":289},[268,888,890,892,895,897,900,902,905,908,912],{"class":270,"line":889},40,[268,891,581],{"class":274},[268,893,894],{"class":274}," static",[268,896,522],{"class":299},[268,898,899],{"class":525}," main",[268,901,548],{"class":289},[268,903,904],{"class":299},"String",[268,906,907],{"class":289},"[] ",[268,909,911],{"class":910},"sTHNf","args",[268,913,914],{"class":289},") {\n",[268,916,918,920],{"class":270,"line":917},41,[268,919,727],{"class":274},[268,921,290],{"class":289},[268,923,925,928,931,933,935,937],{"class":270,"line":924},42,[268,926,927],{"class":381},"      BaseClass",[268,929,930],{"class":289}," bc ",[268,932,306],{"class":274},[268,934,309],{"class":274},[268,936,631],{"class":525},[268,938,563],{"class":289},[268,940,942],{"class":270,"line":941},43,[268,943,944],{"class":337},"      \u002F\u002F Artificially simulate finalization (do not do this)\n",[268,946,948,951,954,956,959],{"class":270,"line":947},44,[268,949,950],{"class":289},"      System.",[268,952,953],{"class":525},"runFinalizersOnExit",[268,955,548],{"class":289},[268,957,958],{"class":317},"true",[268,960,555],{"class":289},[268,962,964,966,969,972,975,978],{"class":270,"line":963},45,[268,965,755],{"class":289},[268,967,968],{"class":274},"catch",[268,970,971],{"class":289}," (",[268,973,974],{"class":381},"Throwable",[268,976,977],{"class":910}," t",[268,979,914],{"class":289},[268,981,983],{"class":270,"line":982},46,[268,984,985],{"class":337},"      \u002F\u002F Handle error\n",[268,987,989],{"class":270,"line":988},47,[268,990,785],{"class":289},[268,992,994],{"class":270,"line":993},48,[268,995,569],{"class":289},[268,997,999],{"class":270,"line":998},49,[268,1000,344],{"class":289},[39,1002,1003],{},"This code outputs:",[259,1005,1007],{"className":261,"code":1006,"language":263,"meta":264,"style":264},"Subclass finalize!\nSuperclass finalize!\nThis is sub-class! The date object is: null\n",[58,1008,1009,1019,1028],{"__ignoreMap":264},[268,1010,1011,1014,1016],{"class":270,"line":271},[268,1012,1013],{"class":381},"Subclass",[268,1015,526],{"class":289},[268,1017,1018],{"class":274},"!\n",[268,1020,1021,1024,1026],{"class":270,"line":293},[268,1022,1023],{"class":381},"Superclass",[268,1025,526],{"class":289},[268,1027,1018],{"class":274},[268,1029,1030,1033,1036,1039,1041,1044,1047,1050,1053],{"class":270,"line":334},[268,1031,1032],{"class":381},"This",[268,1034,1035],{"class":289}," is sub",[268,1037,1038],{"class":274},"-",[268,1040,275],{"class":289},[268,1042,1043],{"class":274},"!",[268,1045,1046],{"class":381}," The",[268,1048,1049],{"class":289}," date object is",[268,1051,1052],{"class":274},":",[268,1054,1055],{"class":317}," null\n",[210,1057,1059],{"id":1058},"compliant-solution","Compliant Solution",[39,1061,1062,1063,1067,1068,1071,1072,1076,1077,1079],{},"Joshua Bloch [ ",[83,1064,1066],{"href":1065},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-Bloch08","Bloch 2008"," ] suggests implementing a ",[58,1069,1070],{},"stop()"," method explicitly such that it leaves the class in an unusable state beyond its lifetime. A private field within the class can signal whether the class is unusable. All the class methods must check this field prior to operating on the class. This is akin to the \"initialized flag\"–compliant solution discussed in ",[83,1073,1075],{"href":1074},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj11-j","OBJ11-J. Be wary of letting constructors throw exceptions"," . As always, a good place to call the termination logic is in the ",[58,1078,758],{}," block.",[210,1081,1083],{"id":1082},"exceptions","Exceptions",[39,1085,1086,1090],{},[1087,1088,1089],"strong",{},"MET12-J-EX0:"," Finalizers may be used when working with native code because the garbage collector cannot reclaim memory used by code written in another language and because the lifetime of the object is often unknown. Again, the native process must not perform any critical jobs that require immediate resource deallocation.",[39,1092,1093,1094,1096,1097,1100,1101,1103],{},"Any subclass that overrides ",[58,1095,60],{}," must explicitly invoke the method for its superclass as well. There is no automatic ",[53,1098,1099],{},"chaining"," with ",[58,1102,773],{}," . The correct way to handle it is as follows:",[255,1105,1106],{"quality":361},[259,1107,1109],{"className":261,"code":1108,"language":263,"meta":264,"style":264},"protected void finalize() throws Throwable {\n  try {\n    \u002F\u002F...\n  } finally {\n    super.finalize();\n  }\n}\n",[58,1110,1111,1122,1129,1134,1143,1154,1158],{"__ignoreMap":264},[268,1112,1113,1115,1117,1119],{"class":270,"line":271},[268,1114,468],{"class":274},[268,1116,522],{"class":299},[268,1118,526],{"class":525},[268,1120,1121],{"class":289},"() throws Throwable {\n",[268,1123,1124,1127],{"class":270,"line":293},[268,1125,1126],{"class":274},"  try",[268,1128,290],{"class":289},[268,1130,1131],{"class":270,"line":334},[268,1132,1133],{"class":337},"    \u002F\u002F...\n",[268,1135,1136,1139,1141],{"class":270,"line":341},[268,1137,1138],{"class":289},"  } ",[268,1140,758],{"class":274},[268,1142,290],{"class":289},[268,1144,1145,1148,1150,1152],{"class":270,"line":566},[268,1146,1147],{"class":766},"    super",[268,1149,770],{"class":289},[268,1151,773],{"class":525},[268,1153,563],{"class":289},[268,1155,1156],{"class":270,"line":572},[268,1157,569],{"class":289},[268,1159,1160],{"class":270,"line":578},[268,1161,344],{"class":289},[39,1163,1164,1165,1167,1168,1171,1172,1174,1175,1177,1178,1180],{},"A more expensive solution is to declare an anonymous class so that the ",[58,1166,60],{}," method is guaranteed to run for the superclass. This solution is applicable to public nonfinal classes. \"The finalizer guardian forces ",[58,1169,1170],{},"super.finalize"," to be called if a subclass overrides ",[58,1173,60],{}," and does not explicitly call ",[58,1176,1170],{}," \" [ ",[83,1179,107],{"href":106}," ].",[255,1182,1183],{"quality":361},[259,1184,1186],{"className":261,"code":1185,"language":263,"meta":264,"style":264},"public class Foo {\n  \u002F\u002F The finalizeGuardian object finalizes the outer Foo object\n  private final Object finalizerGuardian = new Object() {\n    protected void finalize() throws Throwable {\n      \u002F\u002F Finalize outer Foo object\n    }\n  };\n  \u002F\u002F...\n}\n",[58,1187,1188,1199,1204,1225,1242,1247,1251,1256,1261],{"__ignoreMap":264},[268,1189,1190,1192,1194,1197],{"class":270,"line":271},[268,1191,878],{"class":274},[268,1193,881],{"class":274},[268,1195,1196],{"class":278}," Foo",[268,1198,290],{"class":289},[268,1200,1201],{"class":270,"line":293},[268,1202,1203],{"class":337},"  \u002F\u002F The finalizeGuardian object finalizes the outer Foo object\n",[268,1205,1206,1208,1211,1214,1217,1219,1221,1223],{"class":270,"line":334},[268,1207,296],{"class":274},[268,1209,1210],{"class":274}," final",[268,1212,1213],{"class":381}," Object",[268,1215,1216],{"class":289}," finalizerGuardian ",[268,1218,306],{"class":274},[268,1220,309],{"class":274},[268,1222,1213],{"class":525},[268,1224,666],{"class":289},[268,1226,1227,1230,1232,1234,1236,1238,1240],{"class":270,"line":341},[268,1228,1229],{"class":274},"    protected",[268,1231,522],{"class":299},[268,1233,526],{"class":525},[268,1235,529],{"class":289},[268,1237,532],{"class":274},[268,1239,535],{"class":381},[268,1241,290],{"class":289},[268,1243,1244],{"class":270,"line":566},[268,1245,1246],{"class":337},"      \u002F\u002F Finalize outer Foo object\n",[268,1248,1249],{"class":270,"line":572},[268,1250,785],{"class":289},[268,1252,1253],{"class":270,"line":578},[268,1254,1255],{"class":289},"  };\n",[268,1257,1258],{"class":270,"line":597},[268,1259,1260],{"class":337},"  \u002F\u002F...\n",[268,1262,1263],{"class":270,"line":611},[268,1264,344],{"class":289},[39,1266,1267,1268,1271,1272,1275,1276,1278,1279,1281,1282,1284,1285,1287,1288,1290,1291,1294],{},"The ordering problem can be dangerous when dealing with native code. For example, if object ",[58,1269,1270],{},"A"," references object ",[58,1273,1274],{},"B"," (either directly or reflectively) and the latter gets finalized first, ",[58,1277,1270],{}," 's finalizer may end up dereferencing dangling native pointers. To impose an explicit ordering on finalizers, make sure that ",[58,1280,1274],{}," remains reachable until ",[58,1283,1270],{}," 's finalizer has concluded. This can be achieved by adding a reference to ",[58,1286,1274],{}," in some global state variable and removing it when ",[58,1289,1270],{}," 's finalizer executes. An alternative is to use the ",[58,1292,1293],{},"java.lang.ref"," references.",[39,1296,1297,1300,1301,87],{},[1087,1298,1299],{},"MET12-J-EX1:"," A class may use an empty final finalizer to prevent a finalizer attack, as specified in ",[83,1302,1075],{"href":1074},[210,1304,1306],{"id":1305},"risk-assessment","Risk Assessment",[39,1308,1309,1310,1314],{},"Improper use of finalizers can result in resurrection of garbage-collection-ready objects and result in ",[83,1311,1313],{"href":1312},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-denial-of-service","denial-of-service"," vulnerabilities.",[1316,1317,1318,1319,1318,1349],"table",{},"\n  ",[1320,1321,1322,1323,1318],"thead",{},"\n    ",[1324,1325,1326,1327,1326,1331,1326,1334,1326,1337,1326,1340,1326,1343,1326,1346,1322],"tr",{},"\n      ",[1328,1329,1330],"th",{},"Rule",[1328,1332,1333],{},"Severity",[1328,1335,1336],{},"Likelihood",[1328,1338,1339],{},"Detectable",[1328,1341,1342],{},"Repairable",[1328,1344,1345],{},"Priority",[1328,1347,1348],{},"Level",[1350,1351,1322,1352,1318],"tbody",{},[1324,1353,1326,1354,1326,1358,1326,1361,1326,1364,1326,1367,1326,1370,1326,1377,1322],{},[1355,1356,1357],"td",{},"MET12-J",[1355,1359,1360],{},"Medium",[1355,1362,1363],{},"Probable",[1355,1365,1366],{},"Yes",[1355,1368,1369],{},"No",[1355,1371,1373],{"style":1372},"color: #f1c40f;",[1374,1375,1376],"b",{},"P8",[1355,1378,1379],{"style":1372},[1374,1380,1381],{},"L2",[210,1383,1385],{"id":1384},"automated-detection","Automated Detection",[1316,1387,1390],{"className":1388},[1389],"wrapped",[1350,1391,1392,1408,1476,1519,1593],{},[1324,1393,1396,1399,1402,1405],{"className":1394},[1395],"header",[1328,1397,1398],{},"Tool",[1328,1400,1401],{},"Version",[1328,1403,1404],{},"Checker",[1328,1406,1407],{},"Description",[1324,1409,1412,1418,1421,1473],{"className":1410},[1411],"odd",[1355,1413,1414],{},[83,1415,1417],{"href":1416},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fcoverity","Coverity",[1355,1419,1420],{},"7.5",[1355,1422,1423],{},[39,1424,1425,1428,1430,1433,1435,1438,1440,1443,1445,1448,1450,1453,1455,1458,1460,1463,1465,1468,1470],{},[1087,1426,1427],{},"CALL_SUPER",[119,1429],{},[1087,1431,1432],{},"DC.THREADING",[119,1434],{},[1087,1436,1437],{},"FB.FI_EMPTY",[119,1439],{},[1087,1441,1442],{},"FB.FI_EXPLICIT_INVOCATION",[119,1444],{},[1087,1446,1447],{},"FB.FI_FINALIZER_NULLS_FIELDS",[119,1449],{},[1087,1451,1452],{},"FB.FI_FINALIZER_ONLY_NULLS_FIELDS",[119,1454],{},[1087,1456,1457],{},"FB.FI_MISSING_SUPER_CALL",[119,1459],{},[1087,1461,1462],{},"FB.FI_NULLIFY_SUPER",[119,1464],{},[1087,1466,1467],{},"FB.FI_USELESS",[119,1469],{},[1087,1471,1472],{},"FB.FI_PUBLIC_SHOULD_BE_ PROTECTED",[1355,1474,1475],{},"Implemented",[1324,1477,1480,1486,1496,1515],{"className":1478},[1479],"even",[1355,1481,1482],{},[83,1483,1485],{"href":1484},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fklocwork","Klocwork",[1355,1487,1488],{},[1489,1490,1493],"div",{"className":1491},[1492],"content-wrapper",[39,1494,1495],{},"2025.2",[1355,1497,1498],{},[39,1499,1500],{},[1087,1501,1502,1503,1505,1506,1508,1509,1511,1512,1514],{},"JD.UMC.RUNFIN",[119,1504],{},"\nSV.EXPOSE.FIN",[119,1507],{},"\nFIN.EMPTY",[119,1510],{},"\nFIN.NOSUPER",[119,1513],{},"\nJD.UMC.FINALIZE",[1355,1516,1517],{},[119,1518],{},[1324,1520,1522,1528,1533,1566],{"className":1521},[1411],[1355,1523,1524],{},[83,1525,1527],{"href":1526},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fparasoft","Parasoft Jtest",[1355,1529,1530],{},[1489,1531,1495],{"className":1532},[1492],[1355,1534,1535],{},[39,1536,1537,469,1542],{},[1087,1538,1539,1540],{},"CERT.MET12.MNDF",[119,1541],{},[1087,1543,1544,1545,1547,1548,1550,1551,1553,1554,1556,1557,1559,1560,1562,1563,1565],{},"CERT.MET12.FCF",[119,1546],{},"\nCERT.MET12.FM",[119,1549],{},"\nCERT.MET12.IFF",[119,1552],{},"\nCERT.MET12.NCF",[119,1555],{},"\nCERT.MET12.OF",[119,1558],{},"\nCERT.MET12.EF",[119,1561],{},"\nCERT.MET12.FCSF",[119,1564],{},"\nCERT.MET12.MFP",[1355,1567,1568,1569,1571,1572,1574,1575,1577,1578,1580,1581,1583,1584,1586,1587,1589,1590,1592],{},"Do not define 'finalize()' method in bean classes",[119,1570],{},"\nCall 'super.finalize()' from 'finalize()'",[119,1573],{},"\nDo not use 'finalize()' methods to unregister listeners",[119,1576],{},"\nCall 'super.finalize()' in the \"finally\" block of 'finalize()' methods",[119,1579],{},"\nDo not call 'finalize()' explicitly",[119,1582],{},"\nDo not overload the 'finalize()' method",[119,1585],{},"\nAvoid empty 'finalize()' methods",[119,1588],{},"\nAvoid redundant 'finalize()' methods which only call the superclass' 'finalize()' method",[119,1591],{},"\nGive \"finalize()\" methods \"protected\" access",[1324,1594,1596,1602,1608,1632],{"className":1595},[1479],[1355,1597,1598],{},[83,1599,1601],{"href":1600},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fsonarqube","SonarQube",[1355,1603,1604],{},[1489,1605,1607],{"className":1606},[1492],"9.9",[1355,1609,1610],{},[1087,1611,1612,469,1616,469,1620,469,1624,469,1628],{},[83,1613,1615],{"href":1614},"https:\u002F\u002Frules.sonarsource.com\u002Fjava\u002FRSPEC-1113","S1113",[83,1617,1619],{"href":1618},"https:\u002F\u002Frules.sonarsource.com\u002Fjava\u002FRSPEC-1111","S1111",[83,1621,1623],{"href":1622},"https:\u002F\u002Frules.sonarsource.com\u002Fjava\u002FRSPEC-1174","S1174",[83,1625,1627],{"href":1626},"https:\u002F\u002Frules.sonarsource.com\u002Fjava\u002FRSPEC-2151","S2151",[83,1629,1631],{"href":1630},"https:\u002F\u002Frules.sonarsource.com\u002Fjava\u002FRSPEC-1114","S1114",[1355,1633,1634],{},[1087,1635,1636,469,1639,469,1642,469,1645,469,1648],{},[83,1637,1638],{"href":1614},"The Object.finalize() method should not be overriden",[83,1640,1641],{"href":1618},"The Object.finalize() method should not be called",[83,1643,1644],{"href":1622},"\"Object.finalize()\" should remain protected (versus public) when overriding",[83,1646,1647],{"href":1626},"\"runFinalizersOnExit\" should not be called",[83,1649,1650],{"href":1630},"\"super.finalize()\" should be called at the end of \"Object.finalize()\" implementations",[1652,1653,1655],"h3",{"id":1654},"related-vulnerabilities","Related Vulnerabilities",[39,1657,1658,1663,1664,1668,1669,1671,1672,1674,1675,1678],{},[83,1659,1662],{"href":1660,"rel":1661},"https:\u002F\u002Fissues.apache.org\u002Fjira\u002Fbrowse\u002FAXIS2-4163",[101],"AXIS2-4163"," describes a ",[83,1665,1667],{"href":1666},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-vuln","vulnerability"," in the ",[58,1670,60],{}," method in the Axis web services framework. The finalizer incorrectly calls ",[58,1673,475],{}," before doing its own cleanup, leading to errors in ",[58,1676,1677],{},"GlassFish"," when the garbage collector runs.",[210,1680,1682],{"id":1681},"related-guidelines","Related Guidelines",[1316,1684,1686,1695],{"className":1685},[1389],[1687,1688,1689,1693],"colgroup",{},[1690,1691],"col",{"style":1692},"width: 50%",[1690,1694],{"style":1692},[1350,1696,1697],{},[1324,1698,1700,1708],{"className":1699},[1411],[1355,1701,1702],{},[39,1703,1704],{},[83,1705,1707],{"href":1706},"http:\u002F\u002Fcwe.mitre.org\u002F","MITRE CWE",[1355,1709,1710,1720,1730],{},[39,1711,1712,1716,1717],{},[83,1713,1715],{"href":1714},"http:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F586.html","CWE-586"," , Explicit call to ",[58,1718,1719],{},"       Finalize()      ",[39,1721,1722,70,1726,1729],{},[83,1723,1725],{"href":1724},"http:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F583.html","CWE-583",[58,1727,1728],{},"       finalize()      "," Method Declared Public",[39,1731,1732,70,1736,1738,1739],{},[83,1733,1735],{"href":1734},"http:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F568.html","CWE-568",[58,1737,1728],{}," Method without ",[58,1740,1741],{},"       super.finalize()      ",[210,1743,1745],{"id":1744},"bibliography","Bibliography",[1316,1747,1749,1755],{"className":1748},[1389],[1687,1750,1751,1753],{},[1690,1752],{"style":1692},[1690,1754],{"style":1692},[1350,1756,1757,1785,1799,1814,1830,1846,1862],{},[1324,1758,1760,1768],{"className":1759},[1411],[1355,1761,1762],{},[39,1763,1764,1765,1767],{},"[ ",[83,1766,445],{"href":444}," ]",[1355,1769,1770],{},[39,1771,1772,469,1776,469,1779],{},[83,1773,1775],{"href":1774},"http:\u002F\u002Fdocs.oracle.com\u002Fjavase\u002F8\u002Fdocs\u002Fapi\u002F","Class",[58,1777,1778],{},"                        System        ",[83,1780,1782],{"href":1781},"http:\u002F\u002Fjava.sun.com\u002Fj2se\u002F1.4.2\u002Fdocs\u002Fapi\u002Fjava\u002Flang\u002FObject.html#finalize()",[58,1783,1784],{},"                finalize()       ",[1324,1786,1788,1794],{"className":1787},[1479],[1355,1789,1790],{},[39,1791,1764,1792,1767],{},[83,1793,1066],{"href":1065},[1355,1795,1796],{},[39,1797,1798],{},"Item 7, \"Avoid Finalizers\"",[1324,1800,1802,1808],{"className":1801},[1411],[1355,1803,1804],{},[39,1805,1764,1806,1767],{},[83,1807,185],{"href":184},[1355,1809,1810],{},[39,1811,1812],{},[119,1813],{},[1324,1815,1817,1825],{"className":1816},[1479],[1355,1818,1819],{},[39,1820,1764,1821,1767],{},[83,1822,1824],{"href":1823},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-Coomes07","Coomes 2007",[1355,1826,1827],{},[39,1828,1829],{},"\"'Sneaky' Memory Retention\"",[1324,1831,1833,1841],{"className":1832},[1411],[1355,1834,1835],{},[39,1836,1764,1837,1767],{},[83,1838,1840],{"href":1839},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-Darwin04","Darwin 2004",[1355,1842,1843],{},[39,1844,1845],{},"Section 9.5, \"The Finalize Method\"",[1324,1847,1849,1857],{"className":1848},[1479],[1355,1850,1851],{},[39,1852,1764,1853,1767],{},[83,1854,1856],{"href":1855},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-Flanagan05","Flanagan 2005",[1355,1858,1859],{},[39,1860,1861],{},"Section 3.3, \"Destroying and Finalizing Objects\"",[1324,1863,1865,1871],{"className":1864},[1411],[1355,1866,1867],{},[39,1868,1764,1869,1767],{},[83,1870,107],{"href":106},[1355,1872,1873],{},[39,1874,1875],{},[83,1876,102],{"href":1877},"http:\u002F\u002Fdocs.oracle.com\u002Fjavase\u002Fspecs\u002Fjls\u002Fse8\u002Fhtml\u002Fjls-12.html#jls-12.6",[1879,1880],"hr",{},[39,1882,1883,469,1890,469,1896],{},[83,1884,1886],{"href":1885},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet11-j",[1887,1888],"img",{"src":1889},"\u002Fattachments\u002F88487702\u002F88497198.png",[83,1891,1893],{"href":1892},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002F",[1887,1894],{"src":1895},"\u002Fattachments\u002F88487702\u002F88497196.png",[83,1897,1899],{"href":1898},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet13-j",[1887,1900],{"src":1901},"\u002Fattachments\u002F88487702\u002F88497197.png",[1903,1904,1905],"style",{},"html pre.shiki code .sC2Qs, html code.shiki .sC2Qs{--shiki-default:#D73A49;--shiki-dark:#F97583;--shiki-sepia:#F92672}html pre.shiki code .sz2Vg, html code.shiki .sz2Vg{--shiki-default:#6F42C1;--shiki-default-text-decoration:inherit;--shiki-dark:#B392F0;--shiki-dark-text-decoration:inherit;--shiki-sepia:#A6E22E;--shiki-sepia-text-decoration:underline}html pre.shiki code .s30JN, html code.shiki .s30JN{--shiki-default:#6F42C1;--shiki-default-font-style:inherit;--shiki-default-text-decoration:inherit;--shiki-dark:#B392F0;--shiki-dark-font-style:inherit;--shiki-dark-text-decoration:inherit;--shiki-sepia:#A6E22E;--shiki-sepia-font-style:italic;--shiki-sepia-text-decoration:underline}html pre.shiki code .sMOD_, html code.shiki .sMOD_{--shiki-default:#24292E;--shiki-dark:#E1E4E8;--shiki-sepia:#F8F8F2}html pre.shiki code .sq6CD, html code.shiki .sq6CD{--shiki-default:#D73A49;--shiki-default-font-style:inherit;--shiki-dark:#F97583;--shiki-dark-font-style:inherit;--shiki-sepia:#66D9EF;--shiki-sepia-font-style:italic}html pre.shiki code .s7F3e, html code.shiki .s7F3e{--shiki-default:#005CC5;--shiki-dark:#79B8FF;--shiki-sepia:#AE81FF}html pre.shiki code .s8-w5, html code.shiki .s8-w5{--shiki-default:#6A737D;--shiki-dark:#6A737D;--shiki-sepia:#88846F}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}html.sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}html pre.shiki code .sk8M1, html code.shiki .sk8M1{--shiki-default:#24292E;--shiki-default-font-style:inherit;--shiki-dark:#E1E4E8;--shiki-dark-font-style:inherit;--shiki-sepia:#66D9EF;--shiki-sepia-font-style:italic}html pre.shiki code .srTi1, html code.shiki .srTi1{--shiki-default:#6F42C1;--shiki-dark:#B392F0;--shiki-sepia:#A6E22E}html pre.shiki code .sstjo, html code.shiki .sstjo{--shiki-default:#032F62;--shiki-dark:#9ECBFF;--shiki-sepia:#E6DB74}html pre.shiki code .sP7S_, html code.shiki .sP7S_{--shiki-default:#005CC5;--shiki-dark:#79B8FF;--shiki-sepia:#FD971F}html pre.shiki code .sTHNf, html code.shiki .sTHNf{--shiki-default:#E36209;--shiki-default-font-style:inherit;--shiki-dark:#FFAB70;--shiki-dark-font-style:inherit;--shiki-sepia:#FD971F;--shiki-sepia-font-style:italic}",{"title":264,"searchDepth":293,"depth":293,"links":1907},[1908,1909,1910,1912,1913,1914,1915,1918,1919],{"id":212,"depth":293,"text":213},{"id":347,"depth":293,"text":348},{"id":423,"depth":293,"text":1911},"Noncompliant Code Example ( System.runFinalizersOnExit() )",{"id":1058,"depth":293,"text":1059},{"id":1082,"depth":293,"text":1083},{"id":1305,"depth":293,"text":1306},{"id":1384,"depth":293,"text":1385,"children":1916},[1917],{"id":1654,"depth":334,"text":1655},{"id":1681,"depth":293,"text":1682},{"id":1744,"depth":293,"text":1745},"md",{"tags":1922},[1923,1924,1925,1926,1927],"met","android-applicable","android","resource-exhaustion","rule","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet12-j",{"title":30,"description":41},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F14.met12-j","HC08YaudTqOfv2do3GBeGgVO79n9w_v24Pzicdv6lP0",[1933,1936],{"title":1934,"path":1885,"stem":1935,"children":-1},"MET11-J. Ensure that keys used in comparison operations are immutable","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F13.met11-j",{"title":1937,"path":1898,"stem":1938,"children":-1},"MET13-J. Do not assume that reassigning method arguments modifies the calling environment","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F15.met13-j",[1940],{"title":1941,"path":1942,"stem":1943,"children":1944},"SEI CERT Oracle Coding Standard for Java","\u002Fsei-cert-oracle-coding-standard-for-java","6.sei-cert-oracle-coding-standard-for-java\u002F1.index",[1945,1946,2086,2905,3304,3474],{"title":1941,"path":1942,"stem":1943},{"title":1947,"path":1948,"stem":1949,"children":1950},"Front Matter","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F1.index",[1951,1952,1956,1960,1964,2010,2048],{"title":1947,"path":1948,"stem":1949},{"title":1953,"path":1954,"stem":1955},"Rules versus Recommendations (Java)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frules-versus-recommendations-java","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F2.rules-versus-recommendations-java",{"title":1957,"path":1958,"stem":1959},"Acknowledgments","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Facknowledgments","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F3.acknowledgments",{"title":1961,"path":1962,"stem":1963},"Deprecations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Fdeprecations","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.deprecations",{"title":1965,"path":1966,"stem":1967,"children":1968},"Rec. Preface","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F01.index",[1969,1970,1974,1978,1982,1986,1990,1994,1998,2002,2006],{"title":1965,"path":1966,"stem":1967},{"title":1971,"path":1972,"stem":1973},"Scope","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fscope","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F02.scope",{"title":1975,"path":1976,"stem":1977},"Audience","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Faudience","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F03.audience",{"title":1979,"path":1980,"stem":1981},"Contents and Organization","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fcontents-and-organization","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F05.contents-and-organization",{"title":1983,"path":1984,"stem":1985},"Guidelines","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fguidelines","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F06.guidelines",{"title":1987,"path":1988,"stem":1989},"Usage","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fusage","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F07.usage",{"title":1991,"path":1992,"stem":1993},"System Qualities","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fsystem-qualities","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F08.system-qualities",{"title":1995,"path":1996,"stem":1997},"Priority and Levels","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fpriority-and-levels","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F09.priority-and-levels",{"title":1999,"path":2000,"stem":2001},"Automatically Generated Code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fautomatically-generated-code","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F10.automatically-generated-code",{"title":2003,"path":2004,"stem":2005},"Source Code Validation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fsource-code-validation","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F11.source-code-validation",{"title":2007,"path":2008,"stem":2009},"Tool Selection and Validation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Ftool-selection-and-validation","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F12.tool-selection-and-validation",{"title":2011,"path":2012,"stem":2013,"children":2014},"Rule. Introduction","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F01.index",[2015,2016,2020,2024,2028,2032,2036,2040,2044],{"title":2011,"path":2012,"stem":2013},{"title":2017,"path":2018,"stem":2019},"Input Validation and Data Sanitization","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Finput-validation-and-data-sanitization","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F02.input-validation-and-data-sanitization",{"title":2021,"path":2022,"stem":2023},"Leaking Sensitive Data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Fleaking-sensitive-data","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F03.leaking-sensitive-data",{"title":2025,"path":2026,"stem":2027},"Type Safety","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Ftype-safety","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F04.type-safety",{"title":2029,"path":2030,"stem":2031},"Leaking Capabilities","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Fleaking-capabilities","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F05.leaking-capabilities",{"title":2033,"path":2034,"stem":2035},"Denial of Service","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Fdenial-of-service","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F06.denial-of-service",{"title":2037,"path":2038,"stem":2039},"Libraries","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Flibraries","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F07.libraries",{"title":2041,"path":2042,"stem":2043},"Concurrency, Visibility, and Memory","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Fconcurrency-visibility-and-memory","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F08.concurrency-visibility-and-memory",{"title":2045,"path":2046,"stem":2047},"Privilege Escalation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Fprivilege-escalation","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F09.privilege-escalation",{"title":2049,"path":2050,"stem":2051,"children":2052},"Rule. Preface","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F01.index",[2053,2054,2057,2060,2063,2067,2070,2073,2076,2079,2083],{"title":2049,"path":2050,"stem":2051},{"title":1971,"path":2055,"stem":2056},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fscope","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F02.scope",{"title":1975,"path":2058,"stem":2059},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Faudience","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F03.audience",{"title":1979,"path":2061,"stem":2062},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fcontents-and-organization","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F04.contents-and-organization",{"title":2064,"path":2065,"stem":2066},"Identifiers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fidentifiers","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F05.identifiers",{"title":1987,"path":2068,"stem":2069},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fusage","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F06.usage",{"title":1991,"path":2071,"stem":2072},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fsystem-qualities","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F07.system-qualities",{"title":1995,"path":2074,"stem":2075},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fpriority-and-levels","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F08.priority-and-levels",{"title":1999,"path":2077,"stem":2078},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fautomatically-generated-code","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F09.automatically-generated-code",{"title":2080,"path":2081,"stem":2082},"Conformance Testing","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fconformance-testing","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F10.conformance-testing",{"title":2007,"path":2084,"stem":2085},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Ftool-selection-and-validation","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F11.tool-selection-and-validation",{"title":2087,"path":2088,"stem":2089,"children":2090},"Rules","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F01.index",[2091,2092,2096,2122,2140,2186,2224,2296,2350,2376,2430,2479,2533,2591,2651,2701,2741,2799,2829,2853,2875],{"title":2087,"path":2088,"stem":2089},{"title":2093,"path":2094,"stem":2095},"Android (DRD)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fandroid-drd","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F02.android-drd",{"title":2097,"path":2098,"stem":2099,"children":2100},"Characters and Strings (STR)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F1.index",[2101,2102,2106,2110,2114,2118],{"title":2097,"path":2098,"stem":2099},{"title":2103,"path":2104,"stem":2105},"STR00-J. Don't form strings containing partial characters from variable-width encodings","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str\u002Fstr00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F2.str00-j",{"title":2107,"path":2108,"stem":2109},"STR01-J. Do not assume that a Java char fully represents a Unicode code point","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str\u002Fstr01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F3.str01-j",{"title":2111,"path":2112,"stem":2113},"STR02-J. Specify an appropriate locale when comparing locale-dependent data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str\u002Fstr02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F4.str02-j",{"title":2115,"path":2116,"stem":2117},"STR03-J. Do not encode noncharacter data as a string","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str\u002Fstr03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F5.str03-j",{"title":2119,"path":2120,"stem":2121},"STR04-J. Use compatible character encodings when communicating string data between JVMs","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str\u002Fstr04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F6.str04-j",{"title":2123,"path":2124,"stem":2125,"children":2126},"Declarations and Initialization (DCL)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fdeclarations-and-initialization-dcl","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F04.declarations-and-initialization-dcl\u002F1.index",[2127,2128,2132,2136],{"title":2123,"path":2124,"stem":2125},{"title":2129,"path":2130,"stem":2131},"DCL00-J. Prevent class initialization cycles","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F04.declarations-and-initialization-dcl\u002F2.dcl00-j",{"title":2133,"path":2134,"stem":2135},"DCL01-J. Do not reuse public identifiers from the Java Standard Library","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F04.declarations-and-initialization-dcl\u002F3.dcl01-j",{"title":2137,"path":2138,"stem":2139},"DCL02-J. Do not modify the collection's elements during an enhanced for statement","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F04.declarations-and-initialization-dcl\u002F4.dcl02-j",{"title":2141,"path":2142,"stem":2143,"children":2144},"Exceptional Behavior (ERR)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F01.index",[2145,2146,2150,2154,2158,2162,2166,2170,2174,2178,2182],{"title":2141,"path":2142,"stem":2143},{"title":2147,"path":2148,"stem":2149},"ERR00-J. Do not suppress or ignore checked exceptions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F02.err00-j",{"title":2151,"path":2152,"stem":2153},"ERR01-J. Do not allow exceptions to expose sensitive information","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F03.err01-j",{"title":2155,"path":2156,"stem":2157},"ERR02-J. Prevent exceptions while logging data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F04.err02-j",{"title":2159,"path":2160,"stem":2161},"ERR03-J. Restore prior object state on method failure","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F05.err03-j",{"title":2163,"path":2164,"stem":2165},"ERR04-J. Do not complete abruptly from a finally block","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F06.err04-j",{"title":2167,"path":2168,"stem":2169},"ERR05-J. Do not let checked exceptions escape from a finally block","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F07.err05-j",{"title":2171,"path":2172,"stem":2173},"ERR06-J. Do not throw undeclared checked exceptions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F08.err06-j",{"title":2175,"path":2176,"stem":2177},"ERR07-J. Do not throw RuntimeException, Exception, or Throwable","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F09.err07-j",{"title":2179,"path":2180,"stem":2181},"ERR08-J. Do not catch NullPointerException or any of its ancestors","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F10.err08-j",{"title":2183,"path":2184,"stem":2185},"ERR09-J. Do not allow untrusted code to terminate the JVM","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F11.err09-j",{"title":2187,"path":2188,"stem":2189,"children":2190},"Expressions (EXP)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F1.index",[2191,2192,2196,2200,2204,2208,2212,2216,2220],{"title":2187,"path":2188,"stem":2189},{"title":2193,"path":2194,"stem":2195},"EXP00-J. Do not ignore values returned by methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F2.exp00-j",{"title":2197,"path":2198,"stem":2199},"EXP01-J. Do not use a null in a case where an object is required","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F3.exp01-j",{"title":2201,"path":2202,"stem":2203},"EXP02-J. Do not use the Object.equals() method to compare two arrays","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F4.exp02-j",{"title":2205,"path":2206,"stem":2207},"EXP03-J. Do not use the equality operators when comparing values of boxed primitives","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F5.exp03-j",{"title":2209,"path":2210,"stem":2211},"EXP04-J. Do not pass arguments to certain Java Collections Framework methods that are a different type than the collection parameter type","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F6.exp04-j",{"title":2213,"path":2214,"stem":2215},"EXP05-J. Do not follow a write by a subsequent write or read of the same object within an expression","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F7.exp05-j",{"title":2217,"path":2218,"stem":2219},"EXP06-J. Expressions used in assertions must not produce side effects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F8.exp06-j",{"title":2221,"path":2222,"stem":2223},"EXP07-J. Prevent loss of useful data due to weak references","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F9.exp07-j",{"title":2225,"path":2226,"stem":2227,"children":2228},"Input Output (FIO)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F01.index",[2229,2230,2234,2238,2242,2246,2248,2252,2256,2260,2264,2268,2272,2276,2280,2284,2288,2292],{"title":2225,"path":2226,"stem":2227},{"title":2231,"path":2232,"stem":2233},"FIO00-J. Do not operate on files in shared directories","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F02.fio00-j",{"title":2235,"path":2236,"stem":2237},"FIO01-J. Create files with appropriate access permissions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F03.fio01-j",{"title":2239,"path":2240,"stem":2241},"FIO02-J. Detect and handle file-related errors","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F04.fio02-j",{"title":2243,"path":2244,"stem":2245},"FIO03-J. Remove temporary files before termination","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F05.fio03-j",{"title":158,"path":157,"stem":2247},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F06.fio04-j",{"title":2249,"path":2250,"stem":2251},"FIO05-J. Do not expose buffers or their backing arrays methods to untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F07.fio05-j",{"title":2253,"path":2254,"stem":2255},"FIO06-J. Do not create multiple buffered wrappers on a single byte or character stream","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F08.fio06-j",{"title":2257,"path":2258,"stem":2259},"FIO07-J. Do not let external processes block on IO buffers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F09.fio07-j",{"title":2261,"path":2262,"stem":2263},"FIO08-J. Distinguish between characters or bytes read from a stream and -1","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F10.fio08-j",{"title":2265,"path":2266,"stem":2267},"FIO09-J. Do not rely on the write() method to output integers outside the range 0 to 255","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F11.fio09-j",{"title":2269,"path":2270,"stem":2271},"FIO10-J. Ensure the array is filled when using read() to fill an array","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F12.fio10-j",{"title":2273,"path":2274,"stem":2275},"FIO11-J. Do not convert between strings and bytes without specifying a valid character encoding","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F13.fio11-j",{"title":2277,"path":2278,"stem":2279},"FIO12-J. Provide methods to read and write little-endian data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio12-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F14.fio12-j",{"title":2281,"path":2282,"stem":2283},"FIO13-J. Do not log sensitive information outside a trust boundary","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio13-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F15.fio13-j",{"title":2285,"path":2286,"stem":2287},"FIO14-J. Perform proper cleanup at program termination","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio14-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F16.fio14-j",{"title":2289,"path":2290,"stem":2291},"FIO15-J. Do not reset a servlet's output stream after committing it","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio15-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F17.fio15-j",{"title":2293,"path":2294,"stem":2295},"FIO16-J. Canonicalize path names before validating them","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio16-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F18.fio16-j",{"title":2297,"path":2298,"stem":2299,"children":2300},"Input Validation and Data Sanitization (IDS)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F01.index",[2301,2302,2306,2310,2314,2318,2322,2326,2330,2334,2338,2342,2346],{"title":2297,"path":2298,"stem":2299},{"title":2303,"path":2304,"stem":2305},"IDS00-J. Prevent SQL injection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F02.ids00-j",{"title":2307,"path":2308,"stem":2309},"IDS01-J. Normalize strings before validating them","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F03.ids01-j",{"title":2311,"path":2312,"stem":2313},"IDS03-J. Do not log unsanitized user input","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F04.ids03-j",{"title":2315,"path":2316,"stem":2317},"IDS04-J. Safely extract files from ZipInputStream","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F05.ids04-j",{"title":2319,"path":2320,"stem":2321},"IDS06-J. Exclude unsanitized user input from format strings","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F06.ids06-j",{"title":2323,"path":2324,"stem":2325},"IDS07-J. Sanitize untrusted data passed to the Runtime.exec() method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F07.ids07-j",{"title":2327,"path":2328,"stem":2329},"IDS08-J. Sanitize untrusted data included in a regular expression","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F08.ids08-j",{"title":2331,"path":2332,"stem":2333},"IDS11-J. Perform any string modifications before validation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F09.ids11-j",{"title":2335,"path":2336,"stem":2337},"IDS14-J. Do not trust the contents of hidden form fields","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids14-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F10.ids14-j",{"title":2339,"path":2340,"stem":2341},"IDS15-J. Do not allow sensitive information to leak outside a trust boundary","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids15-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F11.ids15-j",{"title":2343,"path":2344,"stem":2345},"IDS16-J. Prevent XML Injection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids16-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F12.ids16-j",{"title":2347,"path":2348,"stem":2349},"IDS17-J. Prevent XML External Entity Attacks","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids17-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F13.ids17-j",{"title":2351,"path":2352,"stem":2353,"children":2354},"Java Native Interface (JNI)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F1.index",[2355,2356,2360,2364,2368,2372],{"title":2351,"path":2352,"stem":2353},{"title":2357,"path":2358,"stem":2359},"JNI00-J. Define wrappers around native methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni\u002Fjni00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F2.jni00-j",{"title":2361,"path":2362,"stem":2363},"JNI01-J. Safely invoke standard APIs that perform tasks using the immediate caller's class loader instance (loadLibrary)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni\u002Fjni01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F3.jni01-j",{"title":2365,"path":2366,"stem":2367},"JNI02-J. Do not assume object references are constant or unique","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni\u002Fjni02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F4.jni02-j",{"title":2369,"path":2370,"stem":2371},"JNI03-J. Do not use direct pointers to Java objects in JNI code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni\u002Fjni03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F5.jni03-j",{"title":2373,"path":2374,"stem":2375},"JNI04-J. Do not assume that Java strings are null-terminated","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni\u002Fjni04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F6.jni04-j",{"title":2377,"path":2378,"stem":2379,"children":2380},"Locking (LCK)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F01.index",[2381,2382,2386,2390,2394,2398,2402,2406,2410,2414,2418,2422,2426],{"title":2377,"path":2378,"stem":2379},{"title":2383,"path":2384,"stem":2385},"LCK00-J. Use private final lock objects to synchronize classes that may interact with untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F02.lck00-j",{"title":2387,"path":2388,"stem":2389},"LCK01-J. Do not synchronize on objects that may be reused","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F03.lck01-j",{"title":2391,"path":2392,"stem":2393},"LCK02-J. Do not synchronize on the class object returned by getClass()","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F04.lck02-j",{"title":2395,"path":2396,"stem":2397},"LCK03-J. Do not synchronize on the intrinsic locks of high-level concurrency objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F05.lck03-j",{"title":2399,"path":2400,"stem":2401},"LCK04-J. Do not synchronize on a collection view if the backing collection is accessible","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F06.lck04-j",{"title":2403,"path":2404,"stem":2405},"LCK05-J. Synchronize access to static fields that can be modified by untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F07.lck05-j",{"title":2407,"path":2408,"stem":2409},"LCK06-J. Do not use an instance lock to protect shared static data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F08.lck06-j",{"title":2411,"path":2412,"stem":2413},"LCK07-J. Avoid deadlock by requesting and releasing locks in the same order","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F09.lck07-j",{"title":2415,"path":2416,"stem":2417},"LCK08-J. Ensure actively held locks are released on exceptional conditions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F10.lck08-j",{"title":2419,"path":2420,"stem":2421},"LCK09-J. Do not perform operations that can block while holding a lock","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F11.lck09-j",{"title":2423,"path":2424,"stem":2425},"LCK10-J. Use a correct form of the double-checked locking idiom","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F12.lck10-j",{"title":2427,"path":2428,"stem":2429},"LCK11-J. Avoid client-side locking when using classes that do not commit to their locking strategy","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F13.lck11-j",{"title":2431,"path":2432,"stem":2433,"children":2434},"Methods (MET)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F01.index",[2435,2436,2440,2444,2446,2450,2454,2456,2460,2464,2468,2472,2476,2477,2478],{"title":2431,"path":2432,"stem":2433},{"title":2437,"path":2438,"stem":2439},"MET00-J. Validate method arguments","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F02.met00-j",{"title":2441,"path":2442,"stem":2443},"MET01-J. Never use assertions to validate method arguments","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F03.met01-j",{"title":204,"path":203,"stem":2445},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F04.met02-j",{"title":2447,"path":2448,"stem":2449},"MET03-J. Methods that perform a security check must be declared private or final","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F05.met03-j",{"title":2451,"path":2452,"stem":2453},"MET04-J. Do not increase the accessibility of overridden or hidden methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F06.met04-j",{"title":494,"path":493,"stem":2455},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F07.met05-j",{"title":2457,"path":2458,"stem":2459},"MET06-J. Do not invoke overridable methods in clone()","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F08.met06-j",{"title":2461,"path":2462,"stem":2463},"MET07-J. Never declare a class method that hides a method declared in a superclass or superinterface","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F09.met07-j",{"title":2465,"path":2466,"stem":2467},"MET08-J. Preserve the equality contract when overriding the equals() method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F10.met08-j",{"title":2469,"path":2470,"stem":2471},"MET09-J. Classes that define an equals() method must also define a hashCode() method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F11.met09-j",{"title":2473,"path":2474,"stem":2475},"MET10-J. Follow the general contract when implementing the compareTo() method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F12.met10-j",{"title":1934,"path":1885,"stem":1935},{"title":30,"path":1928,"stem":1930},{"title":1937,"path":1898,"stem":1938},{"title":2480,"path":2481,"stem":2482,"children":2483},"Miscellaneous (MSC)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F01.index",[2484,2485,2489,2493,2497,2501,2505,2509,2513,2517,2521,2525,2529],{"title":2480,"path":2481,"stem":2482},{"title":2486,"path":2487,"stem":2488},"MSC00-J. Use SSLSocket rather than Socket for secure data exchange","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F02.msc00-j",{"title":2490,"path":2491,"stem":2492},"MSC01-J. Do not use an empty infinite loop","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F03.msc01-j",{"title":2494,"path":2495,"stem":2496},"MSC02-J. Generate strong random numbers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F04.msc02-j",{"title":2498,"path":2499,"stem":2500},"MSC03-J. Never hard code sensitive information","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F05.msc03-j",{"title":2502,"path":2503,"stem":2504},"MSC04-J. Do not leak memory","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F06.msc04-j",{"title":2506,"path":2507,"stem":2508},"MSC05-J. Do not exhaust heap space","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F07.msc05-j",{"title":2510,"path":2511,"stem":2512},"MSC06-J. Do not modify the underlying collection when an iteration is in progress","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F08.msc06-j",{"title":2514,"path":2515,"stem":2516},"MSC07-J. Prevent multiple instantiations of singleton objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F09.msc07-j",{"title":2518,"path":2519,"stem":2520},"MSC08-J. Do not store nonserializable objects as attributes in an HTTP session","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F10.msc08-j",{"title":2522,"path":2523,"stem":2524},"MSC09-J. For OAuth, ensure (a) [relying party receiving user's ID in last step] is same as (b) [relying party the access token was granted to].","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F11.msc09-j",{"title":2526,"path":2527,"stem":2528},"MSC10-J. Do not use OAuth 2.0 implicit grant (unmodified) for authentication","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F12.msc10-j",{"title":2530,"path":2531,"stem":2532},"MSC11-J. Do not let session information leak within a servlet","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F13.msc11-j",{"title":2534,"path":2535,"stem":2536,"children":2537},"Numeric Types and Operations (NUM)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F01.index",[2538,2539,2543,2547,2551,2555,2559,2563,2567,2571,2575,2579,2583,2587],{"title":2534,"path":2535,"stem":2536},{"title":2540,"path":2541,"stem":2542},"NUM00-J. Detect or prevent integer overflow","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F02.num00-j",{"title":2544,"path":2545,"stem":2546},"NUM01-J. Do not perform bitwise and arithmetic operations on the same data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F03.num01-j",{"title":2548,"path":2549,"stem":2550},"NUM02-J. Ensure that division and remainder operations do not result in divide-by-zero errors","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F04.num02-j",{"title":2552,"path":2553,"stem":2554},"NUM03-J. Use integer types that can fully represent the possible range of unsigned data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F05.num03-j",{"title":2556,"path":2557,"stem":2558},"NUM04-J. Do not use floating-point numbers if precise computation is required","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F06.num04-j",{"title":2560,"path":2561,"stem":2562},"NUM07-J. Do not attempt comparisons with NaN","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F07.num07-j",{"title":2564,"path":2565,"stem":2566},"NUM08-J. Check floating-point inputs for exceptional values","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F08.num08-j",{"title":2568,"path":2569,"stem":2570},"NUM09-J. Do not use floating-point variables as loop counters","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F09.num09-j",{"title":2572,"path":2573,"stem":2574},"NUM10-J. Do not construct BigDecimal objects from floating-point literals","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F10.num10-j",{"title":2576,"path":2577,"stem":2578},"NUM11-J. Do not compare or inspect the string representation of floating-point values","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F11.num11-j",{"title":2580,"path":2581,"stem":2582},"NUM12-J. Ensure conversions of numeric types to narrower types do not result in lost or misinterpreted data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum12-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F12.num12-j",{"title":2584,"path":2585,"stem":2586},"NUM13-J. Avoid loss of precision when converting primitive integers to floating-point","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum13-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F13.num13-j",{"title":2588,"path":2589,"stem":2590},"NUM14-J. Use shift operators correctly","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum14-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F14.num14-j",{"title":2592,"path":2593,"stem":2594,"children":2595},"Object Orientation (OBJ)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F01.index",[2596,2597,2601,2605,2609,2613,2617,2621,2625,2629,2633,2637,2639,2643,2647],{"title":2592,"path":2593,"stem":2594},{"title":2598,"path":2599,"stem":2600},"OBJ01-J. Limit accessibility of fields","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F02.obj01-j",{"title":2602,"path":2603,"stem":2604},"OBJ02-J. Preserve dependencies in subclasses when changing superclasses","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F03.obj02-j",{"title":2606,"path":2607,"stem":2608},"OBJ03-J. Prevent heap pollution","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F04.obj03-j",{"title":2610,"path":2611,"stem":2612},"OBJ04-J. Provide mutable classes with copy functionality to safely allow passing instances to untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F05.obj04-j",{"title":2614,"path":2615,"stem":2616},"OBJ05-J. Do not return references to private mutable class members","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F06.obj05-j",{"title":2618,"path":2619,"stem":2620},"OBJ06-J. Defensively copy mutable inputs and mutable internal components","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F07.obj06-j",{"title":2622,"path":2623,"stem":2624},"OBJ07-J. Sensitive classes must not let themselves be copied","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F08.obj07-j",{"title":2626,"path":2627,"stem":2628},"OBJ08-J. Do not expose private members of an outer class from within a nested class","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F09.obj08-j",{"title":2630,"path":2631,"stem":2632},"OBJ09-J. Compare classes and not class names","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F10.obj09-j",{"title":2634,"path":2635,"stem":2636},"OBJ10-J. Do not use public static nonfinal fields","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F11.obj10-j",{"title":1075,"path":1074,"stem":2638},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F12.obj11-j",{"title":2640,"path":2641,"stem":2642},"OBJ12-J. Respect object-based annotations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj12-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F13.obj12-j",{"title":2644,"path":2645,"stem":2646},"OBJ13-J. Ensure that references to mutable objects are not exposed","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj13-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F14.obj13-j",{"title":2648,"path":2649,"stem":2650},"OBJ14-J. Do not use an object that has been freed.","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj14-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F15.obj14-j",{"title":2652,"path":2653,"stem":2654,"children":2655},"Platform Security (SEC)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F01.index",[2656,2657,2661,2665,2669,2673,2677,2681,2685,2689,2693,2697],{"title":2652,"path":2653,"stem":2654},{"title":2658,"path":2659,"stem":2660},"SEC00-J. Do not allow privileged blocks to leak sensitive information across a trust boundary","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F02.sec00-j",{"title":2662,"path":2663,"stem":2664},"SEC01-J. Do not allow tainted variables in privileged blocks","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F03.sec01-j",{"title":2666,"path":2667,"stem":2668},"SEC02-J. Do not base security checks on untrusted sources","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F04.sec02-j",{"title":2670,"path":2671,"stem":2672},"SEC03-J. Do not load trusted classes after allowing untrusted code to load arbitrary classes","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F05.sec03-j",{"title":2674,"path":2675,"stem":2676},"SEC04-J. Protect sensitive operations with security manager checks","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F06.sec04-j",{"title":2678,"path":2679,"stem":2680},"SEC05-J. Do not use reflection to increase accessibility of classes, methods, or fields","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F07.sec05-j",{"title":2682,"path":2683,"stem":2684},"SEC06-J. Do not rely on the default automatic signature verification provided by URLClassLoader and java.util.jar","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F08.sec06-j",{"title":2686,"path":2687,"stem":2688},"SEC07-J. Call the superclass's getPermissions() method when writing a custom class loader","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F09.sec07-j",{"title":2690,"path":2691,"stem":2692},"SEC08-J Trusted code must discard or clean any arguments provided by untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F10.sec08-j",{"title":2694,"path":2695,"stem":2696},"SEC09-J Never leak the results of certain standard API methods from trusted code to untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F11.sec09-j",{"title":2698,"path":2699,"stem":2700},"SEC10-J Never permit untrusted code to invoke any API that may (possibly transitively) invoke the reflection APIs","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F12.sec10-j",{"title":2702,"path":2703,"stem":2704,"children":2705},"Runtime Environment (ENV)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F1.index",[2706,2707,2711,2715,2719,2729,2733,2737],{"title":2702,"path":2703,"stem":2704},{"title":2708,"path":2709,"stem":2710},"ENV00-J. Do not sign code that performs only unprivileged operations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F2.env00-j",{"title":2712,"path":2713,"stem":2714},"ENV01-J. Place all security-sensitive code in a single JAR and sign and seal it","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F3.env01-j",{"title":2716,"path":2717,"stem":2718},"ENV02-J. Do not trust the values of environment variables","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F4.env02-j",{"title":2720,"path":2721,"stem":2722,"children":2723},"ENV03-J. Do not grant dangerous combinations of permissions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F5.env03-j\u002F1.index",[2724,2725],{"title":2720,"path":2721,"stem":2722},{"title":2726,"path":2727,"stem":2728},"DUMMY ENV03-J","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv03-j\u002Fdummy-env03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F5.env03-j\u002F2.dummy-env03-j",{"title":2730,"path":2731,"stem":2732},"ENV04-J. Do not disable bytecode verification","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F6.env04-j",{"title":2734,"path":2735,"stem":2736},"ENV05-J. Do not deploy an application that can be remotely monitored","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F7.env05-j",{"title":2738,"path":2739,"stem":2740},"ENV06-J. Production code must not contain debugging entry points","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F8.env06-j",{"title":2742,"path":2743,"stem":2744,"children":2745},"Serialization (SER)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F01.index",[2746,2747,2751,2755,2759,2763,2767,2771,2775,2779,2783,2787,2791,2795],{"title":2742,"path":2743,"stem":2744},{"title":2748,"path":2749,"stem":2750},"SER00-J. Enable serialization compatibility during class evolution","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F02.ser00-j",{"title":2752,"path":2753,"stem":2754},"SER01-J. Do not deviate from the proper signatures of serialization methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F03.ser01-j",{"title":2756,"path":2757,"stem":2758},"SER02-J. Sign then seal objects before sending them outside a trust boundary","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F04.ser02-j",{"title":2760,"path":2761,"stem":2762},"SER03-J. Do not serialize unencrypted sensitive data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F05.ser03-j",{"title":2764,"path":2765,"stem":2766},"SER04-J. Do not allow serialization and deserialization to bypass the security manager","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F06.ser04-j",{"title":2768,"path":2769,"stem":2770},"SER05-J. Do not serialize instances of inner classes","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F07.ser05-j",{"title":2772,"path":2773,"stem":2774},"SER06-J. Make defensive copies of private mutable components during deserialization","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F08.ser06-j",{"title":2776,"path":2777,"stem":2778},"SER07-J. Do not use the default serialized form for classes with implementation-defined invariants","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F09.ser07-j",{"title":2780,"path":2781,"stem":2782},"SER08-J. Minimize privileges before deserializing from a privileged context","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F10.ser08-j",{"title":2784,"path":2785,"stem":2786},"SER09-J. Do not invoke overridable methods from the readObject() method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F11.ser09-j",{"title":2788,"path":2789,"stem":2790},"SER10-J. Avoid memory and resource leaks during serialization","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F12.ser10-j",{"title":2792,"path":2793,"stem":2794},"SER11-J. Prevent overwriting of externalizable objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F13.ser11-j",{"title":2796,"path":2797,"stem":2798},"SER12-J. Prevent deserialization of untrusted data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser12-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F14.ser12-j",{"title":2800,"path":2801,"stem":2802,"children":2803},"Thread APIs (THI)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F1.index",[2804,2805,2809,2813,2817,2821,2825],{"title":2800,"path":2801,"stem":2802},{"title":2806,"path":2807,"stem":2808},"THI00-J. Do not invoke Thread.run()","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F2.thi00-j",{"title":2810,"path":2811,"stem":2812},"THI01-J. Do not invoke ThreadGroup methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F3.thi01-j",{"title":2814,"path":2815,"stem":2816},"THI02-J. Notify all waiting threads rather than a single thread","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F4.thi02-j",{"title":2818,"path":2819,"stem":2820},"THI03-J. Always invoke wait() and await() methods inside a loop","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F5.thi03-j",{"title":2822,"path":2823,"stem":2824},"THI04-J. Ensure that threads performing blocking operations can be terminated","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F6.thi04-j",{"title":2826,"path":2827,"stem":2828},"THI05-J. Do not use Thread.stop() to terminate threads","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F7.thi05-j",{"title":2830,"path":2831,"stem":2832,"children":2833},"Thread Pools (TPS)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F1.index",[2834,2835,2837,2841,2845,2849],{"title":2830,"path":2831,"stem":2832},{"title":163,"path":162,"stem":2836},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F2.tps00-j",{"title":2838,"path":2839,"stem":2840},"TPS01-J. Do not execute interdependent tasks in a bounded thread pool","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F3.tps01-j",{"title":2842,"path":2843,"stem":2844},"TPS02-J. Ensure that tasks submitted to a thread pool are interruptible","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F4.tps02-j",{"title":2846,"path":2847,"stem":2848},"TPS03-J. Ensure that tasks executing in a thread pool do not fail silently","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F5.tps03-j",{"title":2850,"path":2851,"stem":2852},"TPS04-J. Ensure ThreadLocal variables are reinitialized when using thread pools","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F6.tps04-j",{"title":2854,"path":2855,"stem":2856,"children":2857},"Thread-Safety Miscellaneous (TSM)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F1.index",[2858,2859,2863,2867,2871],{"title":2854,"path":2855,"stem":2856},{"title":2860,"path":2861,"stem":2862},"TSM00-J. Do not override thread-safe methods with methods that are not thread-safe","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F2.tsm00-j",{"title":2864,"path":2865,"stem":2866},"TSM01-J. Do not let the this reference escape during object construction","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F3.tsm01-j",{"title":2868,"path":2869,"stem":2870},"TSM02-J. Do not use background threads during class initialization","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F4.tsm02-j",{"title":2872,"path":2873,"stem":2874},"TSM03-J. Do not publish partially initialized objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F5.tsm03-j",{"title":2876,"path":2877,"stem":2878,"children":2879},"Visibility and Atomicity (VNA)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F1.index",[2880,2881,2885,2889,2893,2897,2901],{"title":2876,"path":2877,"stem":2878},{"title":2882,"path":2883,"stem":2884},"VNA00-J. Ensure visibility when accessing shared primitive variables","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F2.vna00-j",{"title":2886,"path":2887,"stem":2888},"VNA01-J. Ensure visibility of shared references to immutable objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F3.vna01-j",{"title":2890,"path":2891,"stem":2892},"VNA02-J. Ensure that compound operations on shared variables are atomic","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F4.vna02-j",{"title":2894,"path":2895,"stem":2896},"VNA03-J. Do not assume that a group of calls to independently atomic methods is atomic","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F5.vna03-j",{"title":2898,"path":2899,"stem":2900},"VNA04-J. Ensure that calls to chained methods are atomic","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F6.vna04-j",{"title":2902,"path":2903,"stem":2904},"VNA05-J. Ensure atomicity when reading and writing 64-bit values","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F7.vna05-j",{"title":2906,"path":2907,"stem":2908,"children":2909},"Recommendations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F01.index",[2910,2911,2924,2942,2995,3020,3049,3070,3103,3136,3197,3222,3263],{"title":2906,"path":2907,"stem":2908},{"title":2097,"path":2912,"stem":2913,"children":2914},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fcharacters-and-strings-str","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F02.characters-and-strings-str\u002F1.index",[2915,2916,2920],{"title":2097,"path":2912,"stem":2913},{"title":2917,"path":2918,"stem":2919},"STR50-J. Use the appropriate method for counting characters in a string","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F02.characters-and-strings-str\u002F2.str50-j",{"title":2921,"path":2922,"stem":2923},"STR51-J. Use the charset encoder and decoder classes when more control over the encoding process is required","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F02.characters-and-strings-str\u002F3.str51-j",{"title":2925,"path":2926,"stem":2927,"children":2928},"Concurrency (CON)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F1.index",[2929,2930,2934,2938],{"title":2925,"path":2926,"stem":2927},{"title":2931,"path":2932,"stem":2933},"CON50-J. Do not assume that declaring a reference volatile guarantees safe publication of the members of the referenced object","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F2.con50-j",{"title":2935,"path":2936,"stem":2937},"CON51-J. Do not assume that the sleep(), yield(), or getState() methods provide synchronization semantics","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F3.con51-j",{"title":2939,"path":2940,"stem":2941},"CON52-J. Document thread-safety and use annotations where applicable","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F4.con52-j",{"title":2123,"path":2943,"stem":2944,"children":2945},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F01.index",[2946,2947,2951,2955,2959,2963,2967,2971,2975,2979,2983,2987,2991],{"title":2123,"path":2943,"stem":2944},{"title":2948,"path":2949,"stem":2950},"DCL50-J. Use visually distinct identifiers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F02.dcl50-j",{"title":2952,"path":2953,"stem":2954},"DCL51-J. Do not shadow or obscure identifiers in subscopes","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F03.dcl51-j",{"title":2956,"path":2957,"stem":2958},"DCL52-J. Do not declare more than one variable per declaration","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F04.dcl52-j",{"title":2960,"path":2961,"stem":2962},"DCL53-J. Minimize the scope of variables","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F05.dcl53-j",{"title":2964,"path":2965,"stem":2966},"DCL54-J. Use meaningful symbolic constants to represent literal values in program logic","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F06.dcl54-j",{"title":2968,"path":2969,"stem":2970},"DCL55-J. Properly encode relationships in constant definitions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F07.dcl55-j",{"title":2972,"path":2973,"stem":2974},"DCL56-J. Do not attach significance to the ordinal associated with an enum","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F08.dcl56-j",{"title":2976,"path":2977,"stem":2978},"DCL57-J. Avoid ambiguous overloading of variable arity methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl57-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F09.dcl57-j",{"title":2980,"path":2981,"stem":2982},"DCL58-J. Enable compile-time type checking of variable arity parameter types","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl58-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F10.dcl58-j",{"title":2984,"path":2985,"stem":2986},"DCL59-J. Do not apply public final to constants whose value might change in later releases","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl59-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F11.dcl59-j",{"title":2988,"path":2989,"stem":2990},"DCL60-J. Avoid cyclic dependencies between packages","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl60-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F12.dcl60-j",{"title":2992,"path":2993,"stem":2994},"DCL61-J. Do not use raw types","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl61-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F13.dcl61-j",{"title":2141,"path":2996,"stem":2997,"children":2998},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F1.index",[2999,3000,3004,3008,3012,3016],{"title":2141,"path":2996,"stem":2997},{"title":3001,"path":3002,"stem":3003},"ERR50-J. Use exceptions only for exceptional conditions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err\u002Ferr50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F2.err50-j",{"title":3005,"path":3006,"stem":3007},"ERR51-J. Prefer user-defined exceptions over more general exception types","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err\u002Ferr51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F3.err51-j",{"title":3009,"path":3010,"stem":3011},"ERR52-J. Avoid in-band error indicators","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err\u002Ferr52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F4.err52-j",{"title":3013,"path":3014,"stem":3015},"ERR53-J. Try to gracefully recover from system errors","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err\u002Ferr53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F5.err53-j",{"title":3017,"path":3018,"stem":3019},"ERR54-J. Use a try-with-resources statement to safely handle closeable resources","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err\u002Ferr54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F6.err54-j",{"title":2187,"path":3021,"stem":3022,"children":3023},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F1.index",[3024,3025,3029,3033,3037,3041,3045],{"title":2187,"path":3021,"stem":3022},{"title":3026,"path":3027,"stem":3028},"EXP50-J. Do not confuse abstract object equality with reference equality","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F2.exp50-j",{"title":3030,"path":3031,"stem":3032},"EXP51-J. Do not perform assignments in conditional expressions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F3.exp51-j",{"title":3034,"path":3035,"stem":3036},"EXP52-J. Use braces for the body of an if, for, or while statement","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F4.exp52-j",{"title":3038,"path":3039,"stem":3040},"EXP53-J. Use parentheses for precedence of operation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F5.exp53-j",{"title":3042,"path":3043,"stem":3044},"EXP54-J. Understand the differences between bitwise and logical operators","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F6.exp54-j",{"title":3046,"path":3047,"stem":3048},"EXP55-J. Use the same type for the second and third operands in conditional expressions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F7.exp55-j",{"title":2225,"path":3050,"stem":3051,"children":3052},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F1.index",[3053,3054,3058,3062,3066],{"title":2225,"path":3050,"stem":3051},{"title":3055,"path":3056,"stem":3057},"FIO50-J. Do not make assumptions about file creation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F2.fio50-j",{"title":3059,"path":3060,"stem":3061},"FIO51-J. Identify files using multiple file attributes","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F3.fio51-j",{"title":3063,"path":3064,"stem":3065},"FIO52-J. Do not store unencrypted sensitive information on the client side","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F4.fio52-j",{"title":3067,"path":3068,"stem":3069},"FIO53-J. Use the serialization methods writeUnshared() and readUnshared() with care","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F5.fio53-j",{"title":2297,"path":3071,"stem":3072,"children":3073},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F1.index",[3074,3075,3079,3083,3087,3091,3095,3099],{"title":2297,"path":3071,"stem":3072},{"title":3076,"path":3077,"stem":3078},"IDS50-J. Use conservative file naming conventions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F2.ids50-j",{"title":3080,"path":3081,"stem":3082},"IDS51-J. Properly encode or escape output","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F3.ids51-j",{"title":3084,"path":3085,"stem":3086},"IDS52-J. Prevent code injection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F4.ids52-j",{"title":3088,"path":3089,"stem":3090},"IDS53-J. Prevent XPath Injection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F5.ids53-j",{"title":3092,"path":3093,"stem":3094},"IDS54-J. Prevent LDAP injection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F6.ids54-j",{"title":3096,"path":3097,"stem":3098},"IDS55-J. Understand how escape characters are interpreted when strings are loaded","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F7.ids55-j",{"title":3100,"path":3101,"stem":3102},"IDS56-J. Prevent arbitrary file upload","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F8.ids56-j",{"title":2431,"path":3104,"stem":3105,"children":3106},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F1.index",[3107,3108,3112,3116,3120,3124,3128,3132],{"title":2431,"path":3104,"stem":3105},{"title":3109,"path":3110,"stem":3111},"MET50-J. Avoid ambiguous or confusing uses of overloading","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F2.met50-j",{"title":3113,"path":3114,"stem":3115},"MET51-J. Do not use overloaded methods to differentiate between runtime types","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F3.met51-j",{"title":3117,"path":3118,"stem":3119},"MET52-J. Do not use the clone() method to copy untrusted method parameters","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F4.met52-j",{"title":3121,"path":3122,"stem":3123},"MET53-J. Ensure that the clone() method calls super.clone()","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F5.met53-j",{"title":3125,"path":3126,"stem":3127},"MET54-J. Always provide feedback about the resulting value of a method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F6.met54-j",{"title":3129,"path":3130,"stem":3131},"MET55-J. Return an empty array or collection instead of a null value for methods that return an array or collection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F7.met55-j",{"title":3133,"path":3134,"stem":3135},"MET56-J. Do not use Object.equals() to compare cryptographic keys","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F8.met56-j",{"title":2480,"path":3137,"stem":3138,"children":3139},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F01.index",[3140,3141,3145,3149,3153,3157,3161,3165,3169,3173,3177,3181,3185,3189,3193],{"title":2480,"path":3137,"stem":3138},{"title":3142,"path":3143,"stem":3144},"MSC50-J. Minimize the scope of the @SuppressWarnings annotation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F02.msc50-j",{"title":3146,"path":3147,"stem":3148},"MSC51-J. Do not place a semicolon immediately following an if, for, or while condition","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F03.msc51-j",{"title":3150,"path":3151,"stem":3152},"MSC52-J. Finish every set of statements associated with a case label with a break statement","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F04.msc52-j",{"title":3154,"path":3155,"stem":3156},"MSC53-J. Carefully design interfaces before releasing them","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F05.msc53-j",{"title":3158,"path":3159,"stem":3160},"MSC54-J. Avoid inadvertent wrapping of loop counters","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F06.msc54-j",{"title":3162,"path":3163,"stem":3164},"MSC55-J. Use comments consistently and in a readable fashion","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F07.msc55-j",{"title":3166,"path":3167,"stem":3168},"MSC56-J. Detect and remove superfluous code and values","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F08.msc56-j",{"title":3170,"path":3171,"stem":3172},"MSC57-J. Strive for logical completeness","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc57-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F09.msc57-j",{"title":3174,"path":3175,"stem":3176},"MSC58-J. Prefer using iterators over enumerations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc58-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F10.msc58-j",{"title":3178,"path":3179,"stem":3180},"MSC59-J. Limit the lifetime of sensitive data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc59-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F11.msc59-j",{"title":3182,"path":3183,"stem":3184},"MSC60-J. Do not use assertions to verify the absence of runtime errors","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc60-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F12.msc60-j",{"title":3186,"path":3187,"stem":3188},"MSC61-J. Do not use insecure or weak cryptographic algorithms","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc61-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F13.msc61-j",{"title":3190,"path":3191,"stem":3192},"MSC62-J. Store passwords using a hash function","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc62-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F14.msc62-j",{"title":3194,"path":3195,"stem":3196},"MSC63-J. Ensure that SecureRandom is properly seeded","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc63-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F15.msc63-j",{"title":2534,"path":3198,"stem":3199,"children":3200},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F1.index",[3201,3202,3206,3210,3214,3218],{"title":2534,"path":3198,"stem":3199},{"title":3203,"path":3204,"stem":3205},"NUM50-J. Convert integers to floating point for floating-point operations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num\u002Fnum50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F2.num50-j",{"title":3207,"path":3208,"stem":3209},"NUM51-J. Do not assume that the remainder operator always returns a nonnegative result for integral operands","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num\u002Fnum51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F3.num51-j",{"title":3211,"path":3212,"stem":3213},"NUM52-J. Be aware of numeric promotion behavior","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num\u002Fnum52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F4.num52-j",{"title":3215,"path":3216,"stem":3217},"NUM53-J. Use the strictfp modifier for floating-point calculation consistency across platforms","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num\u002Fnum53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F5.num53-j",{"title":3219,"path":3220,"stem":3221},"NUM54-J. Do not use denormalized numbers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num\u002Fnum54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F6.num54-j",{"title":2592,"path":3223,"stem":3224,"children":3225},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F01.index",[3226,3227,3231,3235,3239,3243,3247,3251,3255,3259],{"title":2592,"path":3223,"stem":3224},{"title":3228,"path":3229,"stem":3230},"OBJ50-J. Never confuse the immutability of a reference with that of the referenced object","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F02.obj50-j",{"title":3232,"path":3233,"stem":3234},"OBJ51-J. Minimize the accessibility of classes and their members","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F03.obj51-j",{"title":3236,"path":3237,"stem":3238},"OBJ52-J. Write garbage-collection-friendly code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F04.obj52-j",{"title":3240,"path":3241,"stem":3242},"OBJ53-J. Do not use direct buffers for short-lived, infrequently used objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F05.obj53-j",{"title":3244,"path":3245,"stem":3246},"OBJ54-J. Do not attempt to help the garbage collector by setting local reference variables to null","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F06.obj54-j",{"title":3248,"path":3249,"stem":3250},"OBJ55-J. Remove short-lived objects from long-lived container objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F07.obj55-j",{"title":3252,"path":3253,"stem":3254},"OBJ56-J. Provide sensitive mutable classes with unmodifiable wrappers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F08.obj56-j",{"title":3256,"path":3257,"stem":3258},"OBJ57-J. Do not rely on methods that can be overridden by untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj57-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F09.obj57-j",{"title":3260,"path":3261,"stem":3262},"OBJ58-J. Limit the extensibility of classes and methods with invariants","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj58-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F10.obj58-j",{"title":2652,"path":3264,"stem":3265,"children":3266},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F01.index",[3267,3268,3272,3276,3280,3284,3288,3292,3296,3300],{"title":2652,"path":3264,"stem":3265},{"title":3269,"path":3270,"stem":3271},"SEC50-J. Avoid granting excess privileges","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F02.sec50-j",{"title":3273,"path":3274,"stem":3275},"SEC51-J. Minimize privileged code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F03.sec51-j",{"title":3277,"path":3278,"stem":3279},"SEC52-J. Do not expose methods that use reduced-security checks to untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F04.sec52-j",{"title":3281,"path":3282,"stem":3283},"SEC53-J. Define custom security permissions for fine-grained security","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F05.sec53-j",{"title":3285,"path":3286,"stem":3287},"SEC54-J. Create a secure sandbox using a security manager","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F06.sec54-j",{"title":3289,"path":3290,"stem":3291},"SEC55-J. Ensure that security-sensitive methods are called with validated arguments","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F07.sec55-j",{"title":3293,"path":3294,"stem":3295},"SEC56-J. Do not serialize direct handles to system resources","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F08.sec56-j",{"title":3297,"path":3298,"stem":3299},"SEC57-J. Do not let untrusted code misuse privileges of callback methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec57-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F09.sec57-j",{"title":3301,"path":3302,"stem":3303},"SEC58-J. Deserialization methods should not perform potentially dangerous operations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec58-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F10.sec58-j",{"title":3305,"path":3306,"stem":3307,"children":3308},"Back Matter","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F1.index",[3309,3310,3314,3318,3322,3326,3445,3470],{"title":3305,"path":3306,"stem":3307},{"title":3311,"path":3312,"stem":3313},"Rec. AA. References","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-aa-references","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F2.rec-aa-references",{"title":3315,"path":3316,"stem":3317},"Rec. BB. Definitions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-bb-definitions","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F3.rec-bb-definitions",{"title":3319,"path":3320,"stem":3321},"Rule AA. References","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F4.rule-aa-references",{"title":3323,"path":3324,"stem":3325},"Rule BB. Glossary","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F5.rule-bb-glossary",{"title":3327,"path":3328,"stem":3329,"children":3330},"Rule or Rec. CC. Analyzers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F01.index",[3331,3332,3336,3340,3342,3346,3350,3354,3358,3362,3366,3370,3374,3378,3380,3384,3387,3391,3395,3399,3403,3407,3411,3415,3417,3421,3425,3429,3433,3437,3441],{"title":3327,"path":3328,"stem":3329},{"title":3333,"path":3334,"stem":3335},"CodeSonar","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fcodesonar","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F02.codesonar",{"title":3337,"path":3338,"stem":3339},"CodeSonar_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fcodesonar_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F03.codesonar_v",{"title":1417,"path":1416,"stem":3341},"6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F04.coverity",{"title":3343,"path":3344,"stem":3345},"Coverity_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fcoverity_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F05.coverity_v",{"title":3347,"path":3348,"stem":3349},"Eclipse","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Feclipse","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F06.eclipse",{"title":3351,"path":3352,"stem":3353},"Eclipse_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Feclipse_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F07.eclipse_v",{"title":3355,"path":3356,"stem":3357},"Error Prone","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ferror-prone","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F08.error-prone",{"title":3359,"path":3360,"stem":3361},"Error Prone_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ferror-prone_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F09.error-prone_v",{"title":3363,"path":3364,"stem":3365},"Findbugs","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ffindbugs","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F10.findbugs",{"title":3367,"path":3368,"stem":3369},"Findbugs_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ffindbugs_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F11.findbugs_v",{"title":3371,"path":3372,"stem":3373},"Fortify","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ffortify","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F12.fortify",{"title":3375,"path":3376,"stem":3377},"Fortify_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ffortify_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F13.fortify_v",{"title":1485,"path":1484,"stem":3379},"6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F14.klocwork",{"title":3381,"path":3382,"stem":3383},"Klocwork_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fklocwork_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F15.klocwork_v",{"title":3385,"path":1526,"stem":3386},"Parasoft","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F16.parasoft",{"title":3388,"path":3389,"stem":3390},"Parasoft_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fparasoft_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F17.parasoft_v",{"title":3392,"path":3393,"stem":3394},"Pmd","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fpmd","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F18.pmd",{"title":3396,"path":3397,"stem":3398},"Pmd_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fpmd_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F19.pmd_v",{"title":3400,"path":3401,"stem":3402},"PVS-Studio","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fpvs-studio","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F20.pvs-studio",{"title":3404,"path":3405,"stem":3406},"PVS-Studio_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fpvs-studio_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F21.pvs-studio_v",{"title":3408,"path":3409,"stem":3410},"Security Reviewer - Static Reviewer","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fsecurity-reviewer-static-reviewer","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F22.security-reviewer-static-reviewer",{"title":3412,"path":3413,"stem":3414},"Security Reviewer - Static Reviewer_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fsecurity-reviewer-static-reviewer_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F23.security-reviewer-static-reviewer_v",{"title":1601,"path":1600,"stem":3416},"6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F24.sonarqube",{"title":3418,"path":3419,"stem":3420},"SonarQube_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fsonarqube_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F25.sonarqube_v",{"title":3422,"path":3423,"stem":3424},"SpotBugs","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fspotbugs","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F26.spotbugs",{"title":3426,"path":3427,"stem":3428},"SpotBugs_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fspotbugs_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F27.spotbugs_v",{"title":3430,"path":3431,"stem":3432},"The Checker Framework","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fthe-checker-framework","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F28.the-checker-framework",{"title":3434,"path":3435,"stem":3436},"The Checker Framework_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fthe-checker-framework_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F29.the-checker-framework_v",{"title":3438,"path":3439,"stem":3440},"ThreadSafe","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fthreadsafe","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F30.threadsafe",{"title":3442,"path":3443,"stem":3444},"ThreadSafe_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fthreadsafe_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F31.threadsafe_v",{"title":3446,"path":3447,"stem":3448,"children":3449},"Rule or Rec. DD. Related Guidelines","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F1.index",[3450,3451,3455,3459,3463,3466],{"title":3446,"path":3447,"stem":3448},{"title":3452,"path":3453,"stem":3454},"2010","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines\u002F2.2010","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F2.2010",{"title":3456,"path":3457,"stem":3458},"2013","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines\u002F3.2013","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F3.2013",{"title":3460,"path":3461,"stem":3462},"MITRE CAPEC","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines\u002Fmitre-capec","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F4.mitre-capec",{"title":1707,"path":3464,"stem":3465},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines\u002Fmitre-cwe","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F5.mitre-cwe",{"title":3467,"path":3468,"stem":3469},"SECURE CODING GUIDELINES FOR JAVA SE, VERSION 5.0","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines\u002Fsecure-coding-guidelines-for-java-se-version-50","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F6.secure-coding-guidelines-for-java-se-version-50",{"title":3471,"path":3472,"stem":3473},"Rule or Rec. EE. Risk Assessments","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-ee-risk-assessments","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F8.rule-or-rec-ee-risk-assessments",{"title":3475,"path":3476,"stem":3477,"children":3478},"Admin","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F1.index",[3479,3480,3484,3488,3492,3496],{"title":3475,"path":3476,"stem":3477},{"title":3481,"path":3482,"stem":3483},"All Guidelines with Classification","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin\u002Fall-guidelines-with-classification","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F2.all-guidelines-with-classification",{"title":3485,"path":3486,"stem":3487},"Normative Guidelines","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin\u002Fnormative-guidelines","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F3.normative-guidelines",{"title":3489,"path":3490,"stem":3491},"Tech-edit","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin\u002Ftech-edit","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F4.tech-edit",{"title":3493,"path":3494,"stem":3495},"TODO List","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin\u002Ftodo-list","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F5.todo-list",{"title":3493,"path":3494,"stem":3497},"6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F6.todo-list",1775657816252]