[{"data":1,"prerenderedAt":3549},["ShallowReactive",2],{"global-navigation":3,"page-\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon50-j":28,"surround-\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon50-j":1971,"sidebar-sei-cert-oracle-coding-standard-for-java":1979},[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":1952,"extension":1953,"meta":1954,"navigation":7,"path":1967,"seo":1968,"stem":1969,"__hash__":1970},"content\u002F6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F2.con50-j.md","CON50-J. Do not assume that declaring a reference volatile guarantees safe publication of the members of the referenced object",{"type":32,"value":33,"toc":1936},"minimark",[34,38,65,80,87,107,115,120,123,299,313,345,353,362,504,520,524,527,637,650,654,668,899,914,918,936,1117,1129,1136,1140,1143,1326,1340,1344,1355,1470,1493,1497,1510,1590,1593,1604,1710,1717,1726,1823,1827,1830,1836,1840,1908,1911,1932],[35,36,30],"h1",{"id":37},"con50-j-do-not-assume-that-declaring-a-reference-volatile-guarantees-safe-publication-of-the-members-of-the-referenced-object",[39,40,41,42,46,47,59,60,64],"p",{},"According to the ",[43,44,45],"em",{},"Java Language Specification"," , ",[48,49,53,54,58],"a",{"href":50,"rel":51},"http:\u002F\u002Fdocs.oracle.com\u002Fjavase\u002Fspecs\u002Fjls\u002Fse7\u002Fhtml\u002Fjls-8.html#jls-8.3.1.4",[52],"nofollow","§8.3.1.4, \" ",[55,56,57],"code",{},"volatile"," Fields\""," [ ",[48,61,63],{"href":62},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-aa-references","JLS 2013"," ],",[66,67,68],"blockquote",{},[39,69,70,71,73,74,79],{},"A field may be declared ",[55,72,57],{}," , in which case the Java Memory Model ensures that all threads see a consistent value for the variable ( ",[48,75,78],{"href":76,"rel":77},"http:\u002F\u002Fdocs.oracle.com\u002Fjavase\u002Fspecs\u002Fjls\u002Fse7\u002Fhtml\u002Fjls-17.html#jls-17.4",[52],"§17.4"," ).",[39,81,82,83,86],{},"This safe publication guarantee applies only to primitive fields and object references. Programmers commonly use imprecise terminology and speak about \"member objects.\" For the purposes of this visibility guarantee, the actual member is the object reference; the objects referred to (aka ",[43,84,85],{},"referents"," ) by volatile object references are beyond the scope of the safe publication guarantee. Consequently, declaring an object reference to be volatile is insufficient to guarantee that changes to the members of the referent are published to other threads. A thread may fail to observe a recent write from another thread to a member field of such an object referent.",[39,88,89,90,94,95,100,101,103,104,106],{},"Furthermore, when the referent is mutable and lacks thread safety, other threads might see a partially constructed object or an object in a (temporarily) inconsistent state [ ",[48,91,93],{"href":92},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-aa-references#Rec.AA.References-Goetz07","Goetz 2007"," ]. However, when the referent is ",[48,96,99],{"href":97,"rel":98},"https:\u002F\u002Fwww.securecoding.cert.org\u002Fconfluence\u002Fdisplay\u002Fjg\u002FBB.+Definitions#BBDefinitions-immutable",[52],"immutable"," , declaring the reference volatile suffices to guarantee safe publication of the members of the referent. Programmers cannot use the ",[55,102,57],{}," keyword to guarantee safe publication of mutable objects. Use of the ",[55,105,57],{}," keyword can only guarantee safe publication of primitive fields, object references, or fields of immutable object referents.",[39,108,109,110,114],{},"Confusing a volatile object with the volatility of its member objects is a similar error to the one described in ",[48,111,113],{"href":112},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj50-j","OBJ50-J. Never confuse the immutability of a reference with that of the referenced object"," .",[116,117,119],"h2",{"id":118},"noncompliant-code-example-arrays","Noncompliant Code Example (Arrays)",[39,121,122],{},"This noncompliant code example declares a volatile reference to an array object.",[124,125,127],"code-block",{"quality":126},"bad",[128,129,134],"pre",{"className":130,"code":131,"language":132,"meta":133,"style":133},"language-java shiki shiki-themes github-light github-dark monokai","final class Foo {\n  private volatile int[] arr = new int[20];\n\n  public int getFirst() {\n    return arr[0];\n  }\n\n  public void setFirst(int n) {\n    arr[0] = n;\n  }\n\n  \u002F\u002F ...\n}\n","java","",[55,135,136,156,190,196,211,225,231,236,260,276,281,286,293],{"__ignoreMap":133},[137,138,141,145,148,152],"span",{"class":139,"line":140},"line",1,[137,142,144],{"class":143},"sC2Qs","final",[137,146,147],{"class":143}," class",[137,149,151],{"class":150},"sz2Vg"," Foo",[137,153,155],{"class":154},"sMOD_"," {\n",[137,157,159,162,165,169,172,175,178,180,183,187],{"class":139,"line":158},2,[137,160,161],{"class":143},"  private",[137,163,164],{"class":143}," volatile",[137,166,168],{"class":167},"sq6CD"," int",[137,170,171],{"class":154},"[] arr ",[137,173,174],{"class":143},"=",[137,176,177],{"class":143}," new",[137,179,168],{"class":167},[137,181,182],{"class":154},"[",[137,184,186],{"class":185},"s7F3e","20",[137,188,189],{"class":154},"];\n",[137,191,193],{"class":139,"line":192},3,[137,194,195],{"emptyLinePlaceholder":7},"\n",[137,197,199,202,204,208],{"class":139,"line":198},4,[137,200,201],{"class":143},"  public",[137,203,168],{"class":167},[137,205,207],{"class":206},"srTi1"," getFirst",[137,209,210],{"class":154},"() {\n",[137,212,214,217,220,223],{"class":139,"line":213},5,[137,215,216],{"class":143},"    return",[137,218,219],{"class":154}," arr[",[137,221,222],{"class":185},"0",[137,224,189],{"class":154},[137,226,228],{"class":139,"line":227},6,[137,229,230],{"class":154},"  }\n",[137,232,234],{"class":139,"line":233},7,[137,235,195],{"emptyLinePlaceholder":7},[137,237,239,241,244,247,250,253,257],{"class":139,"line":238},8,[137,240,201],{"class":143},[137,242,243],{"class":167}," void",[137,245,246],{"class":206}," setFirst",[137,248,249],{"class":154},"(",[137,251,252],{"class":167},"int",[137,254,256],{"class":255},"sTHNf"," n",[137,258,259],{"class":154},") {\n",[137,261,263,266,268,271,273],{"class":139,"line":262},9,[137,264,265],{"class":154},"    arr[",[137,267,222],{"class":185},[137,269,270],{"class":154},"] ",[137,272,174],{"class":143},[137,274,275],{"class":154}," n;\n",[137,277,279],{"class":139,"line":278},10,[137,280,230],{"class":154},[137,282,284],{"class":139,"line":283},11,[137,285,195],{"emptyLinePlaceholder":7},[137,287,289],{"class":139,"line":288},12,[137,290,292],{"class":291},"s8-w5","  \u002F\u002F ...\n",[137,294,296],{"class":139,"line":295},13,[137,297,298],{"class":154},"}\n",[39,300,301,302,305,306,309,310,312],{},"Values assigned to an array element by one thread—for example, by calling ",[55,303,304],{},"setFirst()"," —might not be visible to another thread calling ",[55,307,308],{},"getFirst()"," because the ",[55,311,57],{}," keyword guarantees safe publication only for the array reference; it makes no guarantee regarding the actual data contained within the array.",[39,314,315,316,318,319,321,322,330,331,334,335,338,339,341,342,344],{},"This problem arises when the thread that calls ",[55,317,304],{}," and the thread that calls ",[55,320,308],{}," lack a ",[43,323,324,329],{},[48,325,328],{"href":326,"rel":327},"https:\u002F\u002Fwww.securecoding.cert.org\u002Fconfluence\u002Fdisplay\u002Fjg\u002FBB.+Definitions#BBDefinitions-happens-beforeorder",[52],"happens-before"," relationship"," . A happens-before relationship exists between a thread that ",[43,332,333],{},"writes"," to a volatile variable and a thread that ",[43,336,337],{},"subsequently reads"," it. However, ",[55,340,304],{}," and ",[55,343,308],{}," read only from a volatile variable—the volatile reference to the array. Neither method writes to the volatile variable.",[116,346,348,349,352],{"id":347},"compliant-solution-atomicintegerarray","Compliant Solution ( ",[55,350,351],{},"AtomicIntegerArray"," )",[39,354,355,356,358,359,114],{},"To ensure that the writes to array elements are atomic and that the resulting values are visible to other threads, this compliant solution uses the ",[55,357,351],{}," class defined in ",[55,360,361],{},"java.util.concurrent.atomic",[124,363,365],{"quality":364},"good",[128,366,368],{"className":130,"code":367,"language":132,"meta":133,"style":133},"final class Foo {\n  private final AtomicIntegerArray atomicArray = \n    new AtomicIntegerArray(20);\n\n  public int getFirst() {\n    return atomicArray.get(0);\n  }\n\n  public void setFirst(int n) {\n    atomicArray.set(0, 10);\n  }\n\n  \u002F\u002F ...\n}\n",[55,369,370,380,399,413,417,427,443,447,451,467,487,491,495,499],{"__ignoreMap":133},[137,371,372,374,376,378],{"class":139,"line":140},[137,373,144],{"class":143},[137,375,147],{"class":143},[137,377,151],{"class":150},[137,379,155],{"class":154},[137,381,382,384,387,391,394,396],{"class":139,"line":158},[137,383,161],{"class":143},[137,385,386],{"class":143}," final",[137,388,390],{"class":389},"sk8M1"," AtomicIntegerArray",[137,392,393],{"class":154}," atomicArray ",[137,395,174],{"class":143},[137,397,398],{"class":154}," \n",[137,400,401,404,406,408,410],{"class":139,"line":192},[137,402,403],{"class":143},"    new",[137,405,390],{"class":206},[137,407,249],{"class":154},[137,409,186],{"class":185},[137,411,412],{"class":154},");\n",[137,414,415],{"class":139,"line":198},[137,416,195],{"emptyLinePlaceholder":7},[137,418,419,421,423,425],{"class":139,"line":213},[137,420,201],{"class":143},[137,422,168],{"class":167},[137,424,207],{"class":206},[137,426,210],{"class":154},[137,428,429,431,434,437,439,441],{"class":139,"line":227},[137,430,216],{"class":143},[137,432,433],{"class":154}," atomicArray.",[137,435,436],{"class":206},"get",[137,438,249],{"class":154},[137,440,222],{"class":185},[137,442,412],{"class":154},[137,444,445],{"class":139,"line":233},[137,446,230],{"class":154},[137,448,449],{"class":139,"line":238},[137,450,195],{"emptyLinePlaceholder":7},[137,452,453,455,457,459,461,463,465],{"class":139,"line":262},[137,454,201],{"class":143},[137,456,243],{"class":167},[137,458,246],{"class":206},[137,460,249],{"class":154},[137,462,252],{"class":167},[137,464,256],{"class":255},[137,466,259],{"class":154},[137,468,469,472,475,477,479,482,485],{"class":139,"line":278},[137,470,471],{"class":154},"    atomicArray.",[137,473,474],{"class":206},"set",[137,476,249],{"class":154},[137,478,222],{"class":185},[137,480,481],{"class":154},", ",[137,483,484],{"class":185},"10",[137,486,412],{"class":154},[137,488,489],{"class":139,"line":283},[137,490,230],{"class":154},[137,492,493],{"class":139,"line":288},[137,494,195],{"emptyLinePlaceholder":7},[137,496,497],{"class":139,"line":295},[137,498,292],{"class":291},[137,500,502],{"class":139,"line":501},14,[137,503,298],{"class":154},[39,505,506,508,509,512,513,516,517,114],{},[55,507,351],{}," guarantees a ",[48,510,328],{"href":326,"rel":511},[52]," relationship between a thread that calls ",[55,514,515],{},"atomicArray.set()"," and a thread that subsequently calls ",[55,518,519],{},"atomicArray.get()",[116,521,523],{"id":522},"compliant-solution-synchronization","Compliant Solution (Synchronization)",[39,525,526],{},"To ensure visibility, accessor methods may synchronize access while performing operations on nonvolatile elements of an array, whether the array is referred to by a volatile or a nonvolatile reference. Note that the code is thread-safe even though the array reference is not volatile.",[124,528,529],{"quality":364},[128,530,532],{"className":130,"code":531,"language":132,"meta":133,"style":133},"final class Foo {\n  private int[] arr = new int[20];\n\n  public synchronized int getFirst() {\n    return arr[0];\n  }\n\n  public synchronized void setFirst(int n) {\n    arr[0] = n;\n  }\n}\n",[55,533,534,544,564,568,581,591,595,599,617,629,633],{"__ignoreMap":133},[137,535,536,538,540,542],{"class":139,"line":140},[137,537,144],{"class":143},[137,539,147],{"class":143},[137,541,151],{"class":150},[137,543,155],{"class":154},[137,545,546,548,550,552,554,556,558,560,562],{"class":139,"line":158},[137,547,161],{"class":143},[137,549,168],{"class":167},[137,551,171],{"class":154},[137,553,174],{"class":143},[137,555,177],{"class":143},[137,557,168],{"class":167},[137,559,182],{"class":154},[137,561,186],{"class":185},[137,563,189],{"class":154},[137,565,566],{"class":139,"line":192},[137,567,195],{"emptyLinePlaceholder":7},[137,569,570,572,575,577,579],{"class":139,"line":198},[137,571,201],{"class":143},[137,573,574],{"class":143}," synchronized",[137,576,168],{"class":167},[137,578,207],{"class":206},[137,580,210],{"class":154},[137,582,583,585,587,589],{"class":139,"line":213},[137,584,216],{"class":143},[137,586,219],{"class":154},[137,588,222],{"class":185},[137,590,189],{"class":154},[137,592,593],{"class":139,"line":227},[137,594,230],{"class":154},[137,596,597],{"class":139,"line":233},[137,598,195],{"emptyLinePlaceholder":7},[137,600,601,603,605,607,609,611,613,615],{"class":139,"line":238},[137,602,201],{"class":143},[137,604,574],{"class":143},[137,606,243],{"class":167},[137,608,246],{"class":206},[137,610,249],{"class":154},[137,612,252],{"class":167},[137,614,256],{"class":255},[137,616,259],{"class":154},[137,618,619,621,623,625,627],{"class":139,"line":262},[137,620,265],{"class":154},[137,622,222],{"class":185},[137,624,270],{"class":154},[137,626,174],{"class":143},[137,628,275],{"class":154},[137,630,631],{"class":139,"line":278},[137,632,230],{"class":154},[137,634,635],{"class":139,"line":283},[137,636,298],{"class":154},[39,638,639,640,643,644,646,647,649],{},"Synchronization establishes a ",[48,641,328],{"href":326,"rel":642},[52]," relationship between threads that synchronize on the same lock. In this case, the thread that calls ",[55,645,304],{}," and the thread that subsequently calls ",[55,648,308],{}," on the same object instance both synchronize on that instance, so safe publication is guaranteed.",[116,651,653],{"id":652},"noncompliant-code-example-mutable-object","Noncompliant Code Example (Mutable Object)",[39,655,656,657,660,661,663,664,667],{},"This noncompliant code example declares the ",[55,658,659],{},"Map"," instance field volatile. The instance of the ",[55,662,659],{}," object is mutable because of its ",[55,665,666],{},"put()"," method.",[124,669,670],{"quality":126},[128,671,673],{"className":130,"code":672,"language":132,"meta":133,"style":133},"final class Foo {\n  private volatile Map\u003CString, String> map;\n \n  public Foo() {\n    map = new HashMap\u003CString, String>();\n    \u002F\u002F Load some useful values into map\n  }\n \n  public String get(String s) {\n    return map.get(s);\n  }\n \n  public void put(String key, String value) {\n    \u002F\u002F Validate the values before inserting\n    if (!value.matches(\"[\\\\w]*\")) {\n      throw new IllegalArgumentException();\n    }\n    map.put(key, value);\n  }\n}\n",[55,674,675,685,707,711,719,742,747,751,755,774,786,790,794,819,824,857,871,877,889,894],{"__ignoreMap":133},[137,676,677,679,681,683],{"class":139,"line":140},[137,678,144],{"class":143},[137,680,147],{"class":143},[137,682,151],{"class":150},[137,684,155],{"class":154},[137,686,687,689,691,694,697,700,702,704],{"class":139,"line":158},[137,688,161],{"class":143},[137,690,164],{"class":143},[137,692,693],{"class":389}," Map",[137,695,696],{"class":154},"\u003C",[137,698,699],{"class":167},"String",[137,701,481],{"class":154},[137,703,699],{"class":167},[137,705,706],{"class":154},"> map;\n",[137,708,709],{"class":139,"line":192},[137,710,398],{"class":154},[137,712,713,715,717],{"class":139,"line":198},[137,714,201],{"class":143},[137,716,151],{"class":206},[137,718,210],{"class":154},[137,720,721,724,726,728,731,733,735,737,739],{"class":139,"line":213},[137,722,723],{"class":154},"    map ",[137,725,174],{"class":143},[137,727,177],{"class":143},[137,729,730],{"class":389}," HashMap",[137,732,696],{"class":154},[137,734,699],{"class":167},[137,736,481],{"class":154},[137,738,699],{"class":167},[137,740,741],{"class":154},">();\n",[137,743,744],{"class":139,"line":227},[137,745,746],{"class":291},"    \u002F\u002F Load some useful values into map\n",[137,748,749],{"class":139,"line":233},[137,750,230],{"class":154},[137,752,753],{"class":139,"line":238},[137,754,398],{"class":154},[137,756,757,759,762,765,767,769,772],{"class":139,"line":262},[137,758,201],{"class":143},[137,760,761],{"class":389}," String",[137,763,764],{"class":206}," get",[137,766,249],{"class":154},[137,768,699],{"class":389},[137,770,771],{"class":255}," s",[137,773,259],{"class":154},[137,775,776,778,781,783],{"class":139,"line":278},[137,777,216],{"class":143},[137,779,780],{"class":154}," map.",[137,782,436],{"class":206},[137,784,785],{"class":154},"(s);\n",[137,787,788],{"class":139,"line":283},[137,789,230],{"class":154},[137,791,792],{"class":139,"line":288},[137,793,398],{"class":154},[137,795,796,798,800,803,805,807,810,812,814,817],{"class":139,"line":295},[137,797,201],{"class":143},[137,799,243],{"class":167},[137,801,802],{"class":206}," put",[137,804,249],{"class":154},[137,806,699],{"class":389},[137,808,809],{"class":255}," key",[137,811,481],{"class":154},[137,813,699],{"class":389},[137,815,816],{"class":255}," value",[137,818,259],{"class":154},[137,820,821],{"class":139,"line":501},[137,822,823],{"class":291},"    \u002F\u002F Validate the values before inserting\n",[137,825,827,830,833,836,839,842,844,848,851,854],{"class":139,"line":826},15,[137,828,829],{"class":143},"    if",[137,831,832],{"class":154}," (",[137,834,835],{"class":143},"!",[137,837,838],{"class":154},"value.",[137,840,841],{"class":206},"matches",[137,843,249],{"class":154},[137,845,847],{"class":846},"sstjo","\"[",[137,849,850],{"class":185},"\\\\",[137,852,853],{"class":846},"w]*\"",[137,855,856],{"class":154},")) {\n",[137,858,860,863,865,868],{"class":139,"line":859},16,[137,861,862],{"class":143},"      throw",[137,864,177],{"class":143},[137,866,867],{"class":206}," IllegalArgumentException",[137,869,870],{"class":154},"();\n",[137,872,874],{"class":139,"line":873},17,[137,875,876],{"class":154},"    }\n",[137,878,880,883,886],{"class":139,"line":879},18,[137,881,882],{"class":154},"    map.",[137,884,885],{"class":206},"put",[137,887,888],{"class":154},"(key, value);\n",[137,890,892],{"class":139,"line":891},19,[137,893,230],{"class":154},[137,895,897],{"class":139,"line":896},20,[137,898,298],{"class":154},[39,900,901,902,341,905,907,908,910,911,913],{},"Interleaved calls to ",[55,903,904],{},"get()",[55,906,666],{}," may result in the retrieval of internally inconsistent values from the ",[55,909,659],{}," object because ",[55,912,666],{}," modifies its state. Declaring the object reference volatile is insufficient to eliminate this data race.",[116,915,917],{"id":916},"noncompliant-code-example-volatile-read-synchronized-write","Noncompliant Code Example (Volatile-Read, Synchronized-Write)",[39,919,920,921,59,926,928,929,932,933,935],{},"This noncompliant code example attempts to use the volatile-read, synchronized-write technique described in ",[48,922,925],{"href":923,"rel":924},"http:\u002F\u002Fwww.ibm.com\u002Fdeveloperworks\u002Fjava\u002Flibrary\u002Fj-jtp06197.html",[52],"Java Theory and Practice",[48,927,93],{"href":92}," ]. The ",[55,930,931],{},"map"," field is declared volatile to synchronize its reads and writes. The ",[55,934,666],{}," method is also synchronized to ensure that its statements are executed atomically.",[124,937,938],{"quality":126},[128,939,941],{"className":130,"code":940,"language":132,"meta":133,"style":133},"final class Foo {\n  private volatile Map\u003CString, String> map;\n  public Foo() {\n    map = new HashMap\u003CString, String>();\n    \u002F\u002F Load some useful values into map\n  }\n  public String get(String s) {\n    return map.get(s);\n  }\n  public synchronized void put(String key, String value) {\n    \u002F\u002F Validate the values before inserting\n    if (!value.matches(\"[\\\\w]*\")) {\n      throw new IllegalArgumentException();\n    }\n    map.put(key, value);\n  }\n}\n",[55,942,943,953,971,979,999,1003,1007,1023,1033,1037,1061,1065,1087,1097,1101,1109,1113],{"__ignoreMap":133},[137,944,945,947,949,951],{"class":139,"line":140},[137,946,144],{"class":143},[137,948,147],{"class":143},[137,950,151],{"class":150},[137,952,155],{"class":154},[137,954,955,957,959,961,963,965,967,969],{"class":139,"line":158},[137,956,161],{"class":143},[137,958,164],{"class":143},[137,960,693],{"class":389},[137,962,696],{"class":154},[137,964,699],{"class":167},[137,966,481],{"class":154},[137,968,699],{"class":167},[137,970,706],{"class":154},[137,972,973,975,977],{"class":139,"line":192},[137,974,201],{"class":143},[137,976,151],{"class":206},[137,978,210],{"class":154},[137,980,981,983,985,987,989,991,993,995,997],{"class":139,"line":198},[137,982,723],{"class":154},[137,984,174],{"class":143},[137,986,177],{"class":143},[137,988,730],{"class":389},[137,990,696],{"class":154},[137,992,699],{"class":167},[137,994,481],{"class":154},[137,996,699],{"class":167},[137,998,741],{"class":154},[137,1000,1001],{"class":139,"line":213},[137,1002,746],{"class":291},[137,1004,1005],{"class":139,"line":227},[137,1006,230],{"class":154},[137,1008,1009,1011,1013,1015,1017,1019,1021],{"class":139,"line":233},[137,1010,201],{"class":143},[137,1012,761],{"class":389},[137,1014,764],{"class":206},[137,1016,249],{"class":154},[137,1018,699],{"class":389},[137,1020,771],{"class":255},[137,1022,259],{"class":154},[137,1024,1025,1027,1029,1031],{"class":139,"line":238},[137,1026,216],{"class":143},[137,1028,780],{"class":154},[137,1030,436],{"class":206},[137,1032,785],{"class":154},[137,1034,1035],{"class":139,"line":262},[137,1036,230],{"class":154},[137,1038,1039,1041,1043,1045,1047,1049,1051,1053,1055,1057,1059],{"class":139,"line":278},[137,1040,201],{"class":143},[137,1042,574],{"class":143},[137,1044,243],{"class":167},[137,1046,802],{"class":206},[137,1048,249],{"class":154},[137,1050,699],{"class":389},[137,1052,809],{"class":255},[137,1054,481],{"class":154},[137,1056,699],{"class":389},[137,1058,816],{"class":255},[137,1060,259],{"class":154},[137,1062,1063],{"class":139,"line":283},[137,1064,823],{"class":291},[137,1066,1067,1069,1071,1073,1075,1077,1079,1081,1083,1085],{"class":139,"line":288},[137,1068,829],{"class":143},[137,1070,832],{"class":154},[137,1072,835],{"class":143},[137,1074,838],{"class":154},[137,1076,841],{"class":206},[137,1078,249],{"class":154},[137,1080,847],{"class":846},[137,1082,850],{"class":185},[137,1084,853],{"class":846},[137,1086,856],{"class":154},[137,1088,1089,1091,1093,1095],{"class":139,"line":295},[137,1090,862],{"class":143},[137,1092,177],{"class":143},[137,1094,867],{"class":206},[137,1096,870],{"class":154},[137,1098,1099],{"class":139,"line":501},[137,1100,876],{"class":154},[137,1102,1103,1105,1107],{"class":139,"line":826},[137,1104,882],{"class":154},[137,1106,885],{"class":206},[137,1108,888],{"class":154},[137,1110,1111],{"class":139,"line":859},[137,1112,230],{"class":154},[137,1114,1115],{"class":139,"line":873},[137,1116,298],{"class":154},[39,1118,1119,1120,1122,1123,321,1125,1128],{},"The volatile-read, synchronized-write technique uses synchronization to preserve atomicity of compound operations, such as increment, and provides faster access times for atomic reads. However, it fails for mutable objects because the safe publication guarantee provided by ",[55,1121,57],{}," extends only to the field itself (the primitive value or object reference); the referent is excluded from the guarantee, as are the referent's members. In effect, the write and a subsequent read of the ",[55,1124,931],{},[48,1126,328],{"href":326,"rel":1127},[52]," relationship.",[39,1130,1131,1132,114],{},"This technique is also discussed in ",[48,1133,1135],{"href":1134},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna02-j","VNA02-J. Ensure that compound operations on shared variables are atomic",[116,1137,1139],{"id":1138},"compliant-solution-synchronized","Compliant Solution (Synchronized)",[39,1141,1142],{},"This compliant solution uses method synchronization to guarantee visibility:",[124,1144,1145],{"quality":364},[128,1146,1148],{"className":130,"code":1147,"language":132,"meta":133,"style":133},"final class Foo {\n  private final Map\u003CString, String> map;\n  public Foo() {\n    map = new HashMap\u003CString, String>();\n    \u002F\u002F Load some useful values into map\n  }\n  public synchronized String get(String s) {\n    return map.get(s);\n  }\n  public synchronized void put(String key, String value) {\n    \u002F\u002F Validate the values before inserting\n    if (!value.matches(\"[\\\\w]*\")) {\n      throw new IllegalArgumentException();\n    }\n    map.put(key, value);\n  }\n}\n",[55,1149,1150,1160,1178,1186,1206,1210,1214,1232,1242,1246,1270,1274,1296,1306,1310,1318,1322],{"__ignoreMap":133},[137,1151,1152,1154,1156,1158],{"class":139,"line":140},[137,1153,144],{"class":143},[137,1155,147],{"class":143},[137,1157,151],{"class":150},[137,1159,155],{"class":154},[137,1161,1162,1164,1166,1168,1170,1172,1174,1176],{"class":139,"line":158},[137,1163,161],{"class":143},[137,1165,386],{"class":143},[137,1167,693],{"class":389},[137,1169,696],{"class":154},[137,1171,699],{"class":167},[137,1173,481],{"class":154},[137,1175,699],{"class":167},[137,1177,706],{"class":154},[137,1179,1180,1182,1184],{"class":139,"line":192},[137,1181,201],{"class":143},[137,1183,151],{"class":206},[137,1185,210],{"class":154},[137,1187,1188,1190,1192,1194,1196,1198,1200,1202,1204],{"class":139,"line":198},[137,1189,723],{"class":154},[137,1191,174],{"class":143},[137,1193,177],{"class":143},[137,1195,730],{"class":389},[137,1197,696],{"class":154},[137,1199,699],{"class":167},[137,1201,481],{"class":154},[137,1203,699],{"class":167},[137,1205,741],{"class":154},[137,1207,1208],{"class":139,"line":213},[137,1209,746],{"class":291},[137,1211,1212],{"class":139,"line":227},[137,1213,230],{"class":154},[137,1215,1216,1218,1220,1222,1224,1226,1228,1230],{"class":139,"line":233},[137,1217,201],{"class":143},[137,1219,574],{"class":143},[137,1221,761],{"class":389},[137,1223,764],{"class":206},[137,1225,249],{"class":154},[137,1227,699],{"class":389},[137,1229,771],{"class":255},[137,1231,259],{"class":154},[137,1233,1234,1236,1238,1240],{"class":139,"line":238},[137,1235,216],{"class":143},[137,1237,780],{"class":154},[137,1239,436],{"class":206},[137,1241,785],{"class":154},[137,1243,1244],{"class":139,"line":262},[137,1245,230],{"class":154},[137,1247,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268],{"class":139,"line":278},[137,1249,201],{"class":143},[137,1251,574],{"class":143},[137,1253,243],{"class":167},[137,1255,802],{"class":206},[137,1257,249],{"class":154},[137,1259,699],{"class":389},[137,1261,809],{"class":255},[137,1263,481],{"class":154},[137,1265,699],{"class":389},[137,1267,816],{"class":255},[137,1269,259],{"class":154},[137,1271,1272],{"class":139,"line":283},[137,1273,823],{"class":291},[137,1275,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294],{"class":139,"line":288},[137,1277,829],{"class":143},[137,1279,832],{"class":154},[137,1281,835],{"class":143},[137,1283,838],{"class":154},[137,1285,841],{"class":206},[137,1287,249],{"class":154},[137,1289,847],{"class":846},[137,1291,850],{"class":185},[137,1293,853],{"class":846},[137,1295,856],{"class":154},[137,1297,1298,1300,1302,1304],{"class":139,"line":295},[137,1299,862],{"class":143},[137,1301,177],{"class":143},[137,1303,867],{"class":206},[137,1305,870],{"class":154},[137,1307,1308],{"class":139,"line":501},[137,1309,876],{"class":154},[137,1311,1312,1314,1316],{"class":139,"line":826},[137,1313,882],{"class":154},[137,1315,885],{"class":206},[137,1317,888],{"class":154},[137,1319,1320],{"class":139,"line":859},[137,1321,230],{"class":154},[137,1323,1324],{"class":139,"line":873},[137,1325,298],{"class":154},[39,1327,1328,1329,1331,1332,1334,1335,1339],{},"It is unnecessary to declare the ",[55,1330,931],{}," field volatile because the accessor methods are synchronized. The field is declared ",[55,1333,144],{}," to prevent publication of its reference when the referent is in a partially initialized state (see ",[48,1336,1338],{"href":1337},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm03-j","TSM03-J. Do not publish partially initialized objects"," for more information).",[116,1341,1343],{"id":1342},"noncompliant-code-example-mutable-subobject","Noncompliant Code Example (Mutable Subobject)",[39,1345,1346,1347,1350,1351,1354],{},"In this noncompliant code example, the volatile ",[55,1348,1349],{},"format"," field stores a reference to a mutable object, ",[55,1352,1353],{},"java.text.DateFormat"," :",[124,1356,1357],{"quality":126},[128,1358,1360],{"className":130,"code":1359,"language":132,"meta":133,"style":133},"final class DateHandler {\n  private static volatile DateFormat format =\n    DateFormat.getDateInstance(DateFormat.MEDIUM);\n\n  public static java.util.Date parse(String str) \n      throws ParseException {\n    return format.parse(str);\n  }\n}\n",[55,1361,1362,1373,1391,1402,1406,1439,1449,1462,1466],{"__ignoreMap":133},[137,1363,1364,1366,1368,1371],{"class":139,"line":140},[137,1365,144],{"class":143},[137,1367,147],{"class":143},[137,1369,1370],{"class":150}," DateHandler",[137,1372,155],{"class":154},[137,1374,1375,1377,1380,1382,1385,1388],{"class":139,"line":158},[137,1376,161],{"class":143},[137,1378,1379],{"class":143}," static",[137,1381,164],{"class":143},[137,1383,1384],{"class":389}," DateFormat",[137,1386,1387],{"class":154}," format ",[137,1389,1390],{"class":143},"=\n",[137,1392,1393,1396,1399],{"class":139,"line":192},[137,1394,1395],{"class":154},"    DateFormat.",[137,1397,1398],{"class":206},"getDateInstance",[137,1400,1401],{"class":154},"(DateFormat.MEDIUM);\n",[137,1403,1404],{"class":139,"line":198},[137,1405,195],{"emptyLinePlaceholder":7},[137,1407,1408,1410,1412,1415,1418,1421,1423,1426,1429,1431,1433,1436],{"class":139,"line":213},[137,1409,201],{"class":143},[137,1411,1379],{"class":143},[137,1413,1414],{"class":389}," java",[137,1416,1417],{"class":154},".",[137,1419,1420],{"class":389},"util",[137,1422,1417],{"class":154},[137,1424,1425],{"class":389},"Date",[137,1427,1428],{"class":206}," parse",[137,1430,249],{"class":154},[137,1432,699],{"class":389},[137,1434,1435],{"class":255}," str",[137,1437,1438],{"class":154},") \n",[137,1440,1441,1444,1447],{"class":139,"line":227},[137,1442,1443],{"class":143},"      throws",[137,1445,1446],{"class":389}," ParseException",[137,1448,155],{"class":154},[137,1450,1451,1453,1456,1459],{"class":139,"line":233},[137,1452,216],{"class":143},[137,1454,1455],{"class":154}," format.",[137,1457,1458],{"class":206},"parse",[137,1460,1461],{"class":154},"(str);\n",[137,1463,1464],{"class":139,"line":238},[137,1465,230],{"class":154},[137,1467,1468],{"class":139,"line":262},[137,1469,298],{"class":154},[39,1471,1472,1473,1476,1477,1481,1482,1484,1485,1488,1489,1492],{},"Because ",[55,1474,1475],{},"DateFormat"," is not thread-safe [ ",[48,1478,1480],{"href":1479},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-aa-references#Rec.AA.References-API11","API 2013"," ], the value for ",[55,1483,1425],{}," returned by the ",[55,1486,1487],{},"parse()"," method may not correspond to the ",[55,1490,1491],{},"str"," argument:",[116,1494,1496],{"id":1495},"compliant-solution-instance-per-calldefensive-copying","Compliant Solution (Instance per Call\u002FDefensive Copying)",[39,1498,1499,1500,1502,1503,1505,1506,1509],{},"This compliant solution creates and returns a new ",[55,1501,1475],{}," instance for each invocation of the ",[55,1504,1487],{}," method [ ",[48,1507,1480],{"href":1508},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-aa-references#Rec.AA.References-API13"," ]:",[124,1511,1512],{"quality":364},[128,1513,1515],{"className":130,"code":1514,"language":132,"meta":133,"style":133},"final class DateHandler {\n  public static java.util.Date parse(String str) \n      throws ParseException {\n    return DateFormat.getDateInstance(\n      DateFormat.MEDIUM).parse(str);\n  }\n}\n",[55,1516,1517,1527,1553,1561,1573,1582,1586],{"__ignoreMap":133},[137,1518,1519,1521,1523,1525],{"class":139,"line":140},[137,1520,144],{"class":143},[137,1522,147],{"class":143},[137,1524,1370],{"class":150},[137,1526,155],{"class":154},[137,1528,1529,1531,1533,1535,1537,1539,1541,1543,1545,1547,1549,1551],{"class":139,"line":158},[137,1530,201],{"class":143},[137,1532,1379],{"class":143},[137,1534,1414],{"class":389},[137,1536,1417],{"class":154},[137,1538,1420],{"class":389},[137,1540,1417],{"class":154},[137,1542,1425],{"class":389},[137,1544,1428],{"class":206},[137,1546,249],{"class":154},[137,1548,699],{"class":389},[137,1550,1435],{"class":255},[137,1552,1438],{"class":154},[137,1554,1555,1557,1559],{"class":139,"line":192},[137,1556,1443],{"class":143},[137,1558,1446],{"class":389},[137,1560,155],{"class":154},[137,1562,1563,1565,1568,1570],{"class":139,"line":198},[137,1564,216],{"class":143},[137,1566,1567],{"class":154}," DateFormat.",[137,1569,1398],{"class":206},[137,1571,1572],{"class":154},"(\n",[137,1574,1575,1578,1580],{"class":139,"line":213},[137,1576,1577],{"class":154},"      DateFormat.MEDIUM).",[137,1579,1458],{"class":206},[137,1581,1461],{"class":154},[137,1583,1584],{"class":139,"line":227},[137,1585,230],{"class":154},[137,1587,1588],{"class":139,"line":233},[137,1589,298],{"class":154},[116,1591,523],{"id":1592},"compliant-solution-synchronization-1",[39,1594,1595,1596,1599,1600,1505,1602,1509],{},"This compliant solution makes ",[55,1597,1598],{},"DateHandler"," thread-safe by synchronizing statements within the ",[55,1601,1487],{},[48,1603,1480],{"href":1508},[124,1605,1606],{"quality":364},[128,1607,1609],{"className":130,"code":1608,"language":132,"meta":133,"style":133},"final class DateHandler {\n  private static DateFormat format =\n    DateFormat.getDateInstance(DateFormat.MEDIUM);\n\n  public static java.util.Date parse(String str) \n      throws ParseException {\n    synchronized (format) {\n      return format.parse(str);\n    }\n  }\n}\n",[55,1610,1611,1621,1633,1641,1645,1671,1679,1687,1698,1702,1706],{"__ignoreMap":133},[137,1612,1613,1615,1617,1619],{"class":139,"line":140},[137,1614,144],{"class":143},[137,1616,147],{"class":143},[137,1618,1370],{"class":150},[137,1620,155],{"class":154},[137,1622,1623,1625,1627,1629,1631],{"class":139,"line":158},[137,1624,161],{"class":143},[137,1626,1379],{"class":143},[137,1628,1384],{"class":389},[137,1630,1387],{"class":154},[137,1632,1390],{"class":143},[137,1634,1635,1637,1639],{"class":139,"line":192},[137,1636,1395],{"class":154},[137,1638,1398],{"class":206},[137,1640,1401],{"class":154},[137,1642,1643],{"class":139,"line":198},[137,1644,195],{"emptyLinePlaceholder":7},[137,1646,1647,1649,1651,1653,1655,1657,1659,1661,1663,1665,1667,1669],{"class":139,"line":213},[137,1648,201],{"class":143},[137,1650,1379],{"class":143},[137,1652,1414],{"class":389},[137,1654,1417],{"class":154},[137,1656,1420],{"class":389},[137,1658,1417],{"class":154},[137,1660,1425],{"class":389},[137,1662,1428],{"class":206},[137,1664,249],{"class":154},[137,1666,699],{"class":389},[137,1668,1435],{"class":255},[137,1670,1438],{"class":154},[137,1672,1673,1675,1677],{"class":139,"line":227},[137,1674,1443],{"class":143},[137,1676,1446],{"class":389},[137,1678,155],{"class":154},[137,1680,1681,1684],{"class":139,"line":233},[137,1682,1683],{"class":143},"    synchronized",[137,1685,1686],{"class":154}," (format) {\n",[137,1688,1689,1692,1694,1696],{"class":139,"line":238},[137,1690,1691],{"class":143},"      return",[137,1693,1455],{"class":154},[137,1695,1458],{"class":206},[137,1697,1461],{"class":154},[137,1699,1700],{"class":139,"line":262},[137,1701,876],{"class":154},[137,1703,1704],{"class":139,"line":278},[137,1705,230],{"class":154},[137,1707,1708],{"class":139,"line":283},[137,1709,298],{"class":154},[116,1711,348,1713,1716],{"id":1712},"compliant-solution-threadlocal-storage",[55,1714,1715],{},"ThreadLocal"," Storage)",[39,1718,1719,1720,1722,1723,1725],{},"This compliant solution uses a ",[55,1721,1715],{}," object to create a separate ",[55,1724,1475],{}," instance per thread:",[124,1727,1728],{"quality":364},[128,1729,1731],{"className":130,"code":1730,"language":132,"meta":133,"style":133},"final class DateHandler {\n  private static final ThreadLocal\u003CDateFormat> format = \n    new ThreadLocal\u003CDateFormat>() {\n    @Override protected DateFormat initialValue() {\n      return DateFormat.getDateInstance(DateFormat.MEDIUM);\n    }\n  };\n  \u002F\u002F ...\n}\n",[55,1732,1733,1743,1765,1778,1796,1806,1810,1815,1819],{"__ignoreMap":133},[137,1734,1735,1737,1739,1741],{"class":139,"line":140},[137,1736,144],{"class":143},[137,1738,147],{"class":143},[137,1740,1370],{"class":150},[137,1742,155],{"class":154},[137,1744,1745,1747,1749,1751,1754,1756,1758,1761,1763],{"class":139,"line":158},[137,1746,161],{"class":143},[137,1748,1379],{"class":143},[137,1750,386],{"class":143},[137,1752,1753],{"class":389}," ThreadLocal",[137,1755,696],{"class":154},[137,1757,1475],{"class":167},[137,1759,1760],{"class":154},"> format ",[137,1762,174],{"class":143},[137,1764,398],{"class":154},[137,1766,1767,1769,1771,1773,1775],{"class":139,"line":192},[137,1768,403],{"class":143},[137,1770,1753],{"class":389},[137,1772,696],{"class":154},[137,1774,1475],{"class":167},[137,1776,1777],{"class":154},">() {\n",[137,1779,1780,1783,1786,1789,1791,1794],{"class":139,"line":198},[137,1781,1782],{"class":154},"    @",[137,1784,1785],{"class":167},"Override",[137,1787,1788],{"class":143}," protected",[137,1790,1384],{"class":389},[137,1792,1793],{"class":206}," initialValue",[137,1795,210],{"class":154},[137,1797,1798,1800,1802,1804],{"class":139,"line":213},[137,1799,1691],{"class":143},[137,1801,1567],{"class":154},[137,1803,1398],{"class":206},[137,1805,1401],{"class":154},[137,1807,1808],{"class":139,"line":227},[137,1809,876],{"class":154},[137,1811,1812],{"class":139,"line":233},[137,1813,1814],{"class":154},"  };\n",[137,1816,1817],{"class":139,"line":238},[137,1818,292],{"class":291},[137,1820,1821],{"class":139,"line":262},[137,1822,298],{"class":154},[116,1824,1826],{"id":1825},"applicability","Applicability",[39,1828,1829],{},"Incorrectly assuming that declaring a field volatile guarantees safe publication of a referenced object's members can cause threads to observe stale or inconsistent values.",[39,1831,1832,1833,1835],{},"Technically, strict immutability of the referent is a stronger condition than is fundamentally required for safe publication. When it can be determined that a referent is thread-safe by design, the field that holds its reference may be declared volatile. However, this approach to using ",[55,1834,57],{}," decreases maintainability and should be avoided.",[116,1837,1839],{"id":1838},"bibliography","Bibliography",[1841,1842,1843,1854],"table",{},[1844,1845,1846],"thead",{},[1847,1848,1849,1852],"tr",{},[1850,1851],"th",{},[1850,1853],{},[1855,1856,1857,1875,1884,1897],"tbody",{},[1847,1858,1859,1866],{},[1860,1861,1862,1863,1865],"td",{},"[ ",[48,1864,1480],{"href":1508}," ]",[1860,1867,1868],{},[48,1869,1872,1873],{"href":1870,"rel":1871},"http:\u002F\u002Fdocs.oracle.com\u002Fjavase\u002F7\u002Fdocs\u002Fapi\u002Fjava\u002Ftext\u002FDateFormat.html",[52],"Class ",[55,1874,1475],{},[1847,1876,1877,1881],{},[1860,1878,1862,1879,1865],{},[48,1880,93],{"href":92},[1860,1882,1883],{},"Pattern 2, \"One-Time Safe Publication\"",[1847,1885,1886,1890],{},[1860,1887,1862,1888,1865],{},[48,1889,63],{"href":62},[1860,1891,1892],{},[48,1893,53,1895,58],{"href":50,"rel":1894},[52],[55,1896,57],{},[1847,1898,1899,1905],{},[1860,1900,1862,1901,1865],{},[48,1902,1904],{"href":1903},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-aa-references#Rec.AA.References-Miller09","Miller 2009",[1860,1906,1907],{},"\"Mutable Statics\"",[1909,1910],"hr",{},[39,1912,1913,1920,1921,1920,1926],{},[48,1914,1916],{"href":1915},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002F",[1917,1918],"img",{"src":1919},"\u002Fattachments\u002F88487545\u002F88873873.png"," ",[48,1922,1923],{"href":1915},[1917,1924],{"src":1925},"\u002Fattachments\u002F88487545\u002F88873874.png",[48,1927,1929],{"href":1928},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon51-j",[1917,1930],{"src":1931},"\u002Fattachments\u002F88487545\u002F88873875.png",[1933,1934,1935],"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 .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 .srTi1, html code.shiki .srTi1{--shiki-default:#6F42C1;--shiki-dark:#B392F0;--shiki-sepia:#A6E22E}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}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 .sstjo, html code.shiki .sstjo{--shiki-default:#032F62;--shiki-dark:#9ECBFF;--shiki-sepia:#E6DB74}",{"title":133,"searchDepth":158,"depth":158,"links":1937},[1938,1939,1941,1942,1943,1944,1945,1946,1947,1948,1950,1951],{"id":118,"depth":158,"text":119},{"id":347,"depth":158,"text":1940},"Compliant Solution ( AtomicIntegerArray )",{"id":522,"depth":158,"text":523},{"id":652,"depth":158,"text":653},{"id":916,"depth":158,"text":917},{"id":1138,"depth":158,"text":1139},{"id":1342,"depth":158,"text":1343},{"id":1495,"depth":158,"text":1496},{"id":1592,"depth":158,"text":523},{"id":1712,"depth":158,"text":1949},"Compliant Solution ( ThreadLocal Storage)",{"id":1825,"depth":158,"text":1826},{"id":1838,"depth":158,"text":1839},"According to the Java Language Specification , §8.3.1.4, \" volatile Fields\" [ JLS 2013 ],","md",{"tags":1955},[1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966],"misconception","android-applicable","review-dms","review-dfs","review-dm","nonnormative","5misconceptions","recommendation","reviewed-fwl","con","tech-edit-done","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon50-j",{"title":30,"description":1952},"6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F2.con50-j","FJNS4JuJM4VisVuaJd30goXKn4fzQ_hvB38eZzd37SQ",[1972,1976],{"title":1973,"path":1974,"stem":1975,"children":-1},"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",{"title":1977,"path":1928,"stem":1978,"children":-1},"CON51-J. Do not assume that the sleep(), yield(), or getState() methods provide synchronization semantics","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F3.con51-j",[1980],{"title":1981,"path":1982,"stem":1983,"children":1984},"SEI CERT Oracle Coding Standard for Java","\u002Fsei-cert-oracle-coding-standard-for-java","6.sei-cert-oracle-coding-standard-for-java\u002F1.index",[1985,1986,2126,2960,3348,3525],{"title":1981,"path":1982,"stem":1983},{"title":1987,"path":1988,"stem":1989,"children":1990},"Front Matter","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F1.index",[1991,1992,1996,2000,2004,2050,2088],{"title":1987,"path":1988,"stem":1989},{"title":1993,"path":1994,"stem":1995},"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":1997,"path":1998,"stem":1999},"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":2001,"path":2002,"stem":2003},"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":2005,"path":2006,"stem":2007,"children":2008},"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",[2009,2010,2014,2018,2022,2026,2030,2034,2038,2042,2046],{"title":2005,"path":2006,"stem":2007},{"title":2011,"path":2012,"stem":2013},"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":2015,"path":2016,"stem":2017},"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":2019,"path":2020,"stem":2021},"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":2023,"path":2024,"stem":2025},"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":2027,"path":2028,"stem":2029},"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":2031,"path":2032,"stem":2033},"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":2035,"path":2036,"stem":2037},"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":2039,"path":2040,"stem":2041},"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":2043,"path":2044,"stem":2045},"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":2047,"path":2048,"stem":2049},"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":2051,"path":2052,"stem":2053,"children":2054},"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",[2055,2056,2060,2064,2068,2072,2076,2080,2084],{"title":2051,"path":2052,"stem":2053},{"title":2057,"path":2058,"stem":2059},"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":2061,"path":2062,"stem":2063},"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":2065,"path":2066,"stem":2067},"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":2069,"path":2070,"stem":2071},"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":2073,"path":2074,"stem":2075},"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":2077,"path":2078,"stem":2079},"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":2081,"path":2082,"stem":2083},"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":2085,"path":2086,"stem":2087},"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":2089,"path":2090,"stem":2091,"children":2092},"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",[2093,2094,2097,2100,2103,2107,2110,2113,2116,2119,2123],{"title":2089,"path":2090,"stem":2091},{"title":2011,"path":2095,"stem":2096},"\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":2015,"path":2098,"stem":2099},"\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":2019,"path":2101,"stem":2102},"\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":2104,"path":2105,"stem":2106},"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":2027,"path":2108,"stem":2109},"\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":2031,"path":2111,"stem":2112},"\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":2035,"path":2114,"stem":2115},"\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":2039,"path":2117,"stem":2118},"\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":2120,"path":2121,"stem":2122},"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":2047,"path":2124,"stem":2125},"\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":2127,"path":2128,"stem":2129,"children":2130},"Rules","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F01.index",[2131,2132,2136,2162,2180,2226,2264,2338,2392,2418,2472,2534,2588,2646,2708,2758,2798,2856,2886,2912,2932],{"title":2127,"path":2128,"stem":2129},{"title":2133,"path":2134,"stem":2135},"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":2137,"path":2138,"stem":2139,"children":2140},"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",[2141,2142,2146,2150,2154,2158],{"title":2137,"path":2138,"stem":2139},{"title":2143,"path":2144,"stem":2145},"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":2147,"path":2148,"stem":2149},"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":2151,"path":2152,"stem":2153},"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":2155,"path":2156,"stem":2157},"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":2159,"path":2160,"stem":2161},"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":2163,"path":2164,"stem":2165,"children":2166},"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",[2167,2168,2172,2176],{"title":2163,"path":2164,"stem":2165},{"title":2169,"path":2170,"stem":2171},"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":2173,"path":2174,"stem":2175},"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":2177,"path":2178,"stem":2179},"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":2181,"path":2182,"stem":2183,"children":2184},"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",[2185,2186,2190,2194,2198,2202,2206,2210,2214,2218,2222],{"title":2181,"path":2182,"stem":2183},{"title":2187,"path":2188,"stem":2189},"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":2191,"path":2192,"stem":2193},"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":2195,"path":2196,"stem":2197},"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":2199,"path":2200,"stem":2201},"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":2203,"path":2204,"stem":2205},"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":2207,"path":2208,"stem":2209},"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":2211,"path":2212,"stem":2213},"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":2215,"path":2216,"stem":2217},"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":2219,"path":2220,"stem":2221},"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":2223,"path":2224,"stem":2225},"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":2227,"path":2228,"stem":2229,"children":2230},"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",[2231,2232,2236,2240,2244,2248,2252,2256,2260],{"title":2227,"path":2228,"stem":2229},{"title":2233,"path":2234,"stem":2235},"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":2237,"path":2238,"stem":2239},"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":2241,"path":2242,"stem":2243},"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":2245,"path":2246,"stem":2247},"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":2249,"path":2250,"stem":2251},"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":2253,"path":2254,"stem":2255},"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":2257,"path":2258,"stem":2259},"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":2261,"path":2262,"stem":2263},"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":2265,"path":2266,"stem":2267,"children":2268},"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",[2269,2270,2274,2278,2282,2286,2290,2294,2298,2302,2306,2310,2314,2318,2322,2326,2330,2334],{"title":2265,"path":2266,"stem":2267},{"title":2271,"path":2272,"stem":2273},"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":2275,"path":2276,"stem":2277},"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":2279,"path":2280,"stem":2281},"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":2283,"path":2284,"stem":2285},"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":2287,"path":2288,"stem":2289},"FIO04-J. Release resources when they are no longer needed","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F06.fio04-j",{"title":2291,"path":2292,"stem":2293},"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":2295,"path":2296,"stem":2297},"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":2299,"path":2300,"stem":2301},"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":2303,"path":2304,"stem":2305},"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":2307,"path":2308,"stem":2309},"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":2311,"path":2312,"stem":2313},"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":2315,"path":2316,"stem":2317},"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":2319,"path":2320,"stem":2321},"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":2323,"path":2324,"stem":2325},"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":2327,"path":2328,"stem":2329},"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":2331,"path":2332,"stem":2333},"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":2335,"path":2336,"stem":2337},"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":2339,"path":2340,"stem":2341,"children":2342},"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",[2343,2344,2348,2352,2356,2360,2364,2368,2372,2376,2380,2384,2388],{"title":2339,"path":2340,"stem":2341},{"title":2345,"path":2346,"stem":2347},"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":2349,"path":2350,"stem":2351},"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":2353,"path":2354,"stem":2355},"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":2357,"path":2358,"stem":2359},"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":2361,"path":2362,"stem":2363},"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":2365,"path":2366,"stem":2367},"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":2369,"path":2370,"stem":2371},"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":2373,"path":2374,"stem":2375},"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":2377,"path":2378,"stem":2379},"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":2381,"path":2382,"stem":2383},"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":2385,"path":2386,"stem":2387},"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":2389,"path":2390,"stem":2391},"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":2393,"path":2394,"stem":2395,"children":2396},"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",[2397,2398,2402,2406,2410,2414],{"title":2393,"path":2394,"stem":2395},{"title":2399,"path":2400,"stem":2401},"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":2403,"path":2404,"stem":2405},"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":2407,"path":2408,"stem":2409},"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":2411,"path":2412,"stem":2413},"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":2415,"path":2416,"stem":2417},"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":2419,"path":2420,"stem":2421,"children":2422},"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",[2423,2424,2428,2432,2436,2440,2444,2448,2452,2456,2460,2464,2468],{"title":2419,"path":2420,"stem":2421},{"title":2425,"path":2426,"stem":2427},"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":2429,"path":2430,"stem":2431},"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":2433,"path":2434,"stem":2435},"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":2437,"path":2438,"stem":2439},"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":2441,"path":2442,"stem":2443},"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":2445,"path":2446,"stem":2447},"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":2449,"path":2450,"stem":2451},"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":2453,"path":2454,"stem":2455},"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":2457,"path":2458,"stem":2459},"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":2461,"path":2462,"stem":2463},"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":2465,"path":2466,"stem":2467},"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":2469,"path":2470,"stem":2471},"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":2473,"path":2474,"stem":2475,"children":2476},"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",[2477,2478,2482,2486,2490,2494,2498,2502,2506,2510,2514,2518,2522,2526,2530],{"title":2473,"path":2474,"stem":2475},{"title":2479,"path":2480,"stem":2481},"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":2483,"path":2484,"stem":2485},"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":2487,"path":2488,"stem":2489},"MET02-J. Do not use deprecated or obsolete classes or methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F04.met02-j",{"title":2491,"path":2492,"stem":2493},"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":2495,"path":2496,"stem":2497},"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":2499,"path":2500,"stem":2501},"MET05-J. Ensure that constructors do not call overridable methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F07.met05-j",{"title":2503,"path":2504,"stem":2505},"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":2507,"path":2508,"stem":2509},"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":2511,"path":2512,"stem":2513},"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":2515,"path":2516,"stem":2517},"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":2519,"path":2520,"stem":2521},"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":2523,"path":2524,"stem":2525},"MET11-J. Ensure that keys used in comparison operations are immutable","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F13.met11-j",{"title":2527,"path":2528,"stem":2529},"MET12-J. Do not use finalizers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet12-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F14.met12-j",{"title":2531,"path":2532,"stem":2533},"MET13-J. Do not assume that reassigning method arguments modifies the calling environment","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet13-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F15.met13-j",{"title":2535,"path":2536,"stem":2537,"children":2538},"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",[2539,2540,2544,2548,2552,2556,2560,2564,2568,2572,2576,2580,2584],{"title":2535,"path":2536,"stem":2537},{"title":2541,"path":2542,"stem":2543},"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":2545,"path":2546,"stem":2547},"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":2549,"path":2550,"stem":2551},"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":2553,"path":2554,"stem":2555},"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":2557,"path":2558,"stem":2559},"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":2561,"path":2562,"stem":2563},"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":2565,"path":2566,"stem":2567},"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":2569,"path":2570,"stem":2571},"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":2573,"path":2574,"stem":2575},"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":2577,"path":2578,"stem":2579},"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":2581,"path":2582,"stem":2583},"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":2585,"path":2586,"stem":2587},"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":2589,"path":2590,"stem":2591,"children":2592},"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",[2593,2594,2598,2602,2606,2610,2614,2618,2622,2626,2630,2634,2638,2642],{"title":2589,"path":2590,"stem":2591},{"title":2595,"path":2596,"stem":2597},"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":2599,"path":2600,"stem":2601},"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":2603,"path":2604,"stem":2605},"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":2607,"path":2608,"stem":2609},"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":2611,"path":2612,"stem":2613},"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":2615,"path":2616,"stem":2617},"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":2619,"path":2620,"stem":2621},"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":2623,"path":2624,"stem":2625},"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":2627,"path":2628,"stem":2629},"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":2631,"path":2632,"stem":2633},"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":2635,"path":2636,"stem":2637},"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":2639,"path":2640,"stem":2641},"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":2643,"path":2644,"stem":2645},"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":2647,"path":2648,"stem":2649,"children":2650},"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",[2651,2652,2656,2660,2664,2668,2672,2676,2680,2684,2688,2692,2696,2700,2704],{"title":2647,"path":2648,"stem":2649},{"title":2653,"path":2654,"stem":2655},"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":2657,"path":2658,"stem":2659},"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":2661,"path":2662,"stem":2663},"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":2665,"path":2666,"stem":2667},"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":2669,"path":2670,"stem":2671},"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":2673,"path":2674,"stem":2675},"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":2677,"path":2678,"stem":2679},"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":2681,"path":2682,"stem":2683},"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":2685,"path":2686,"stem":2687},"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":2689,"path":2690,"stem":2691},"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":2693,"path":2694,"stem":2695},"OBJ11-J. Be wary of letting constructors throw exceptions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F12.obj11-j",{"title":2697,"path":2698,"stem":2699},"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":2701,"path":2702,"stem":2703},"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":2705,"path":2706,"stem":2707},"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":2709,"path":2710,"stem":2711,"children":2712},"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",[2713,2714,2718,2722,2726,2730,2734,2738,2742,2746,2750,2754],{"title":2709,"path":2710,"stem":2711},{"title":2715,"path":2716,"stem":2717},"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":2719,"path":2720,"stem":2721},"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":2723,"path":2724,"stem":2725},"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":2727,"path":2728,"stem":2729},"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":2731,"path":2732,"stem":2733},"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":2735,"path":2736,"stem":2737},"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":2739,"path":2740,"stem":2741},"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":2743,"path":2744,"stem":2745},"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":2747,"path":2748,"stem":2749},"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":2751,"path":2752,"stem":2753},"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":2755,"path":2756,"stem":2757},"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":2759,"path":2760,"stem":2761,"children":2762},"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",[2763,2764,2768,2772,2776,2786,2790,2794],{"title":2759,"path":2760,"stem":2761},{"title":2765,"path":2766,"stem":2767},"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":2769,"path":2770,"stem":2771},"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":2773,"path":2774,"stem":2775},"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":2777,"path":2778,"stem":2779,"children":2780},"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",[2781,2782],{"title":2777,"path":2778,"stem":2779},{"title":2783,"path":2784,"stem":2785},"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":2787,"path":2788,"stem":2789},"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":2791,"path":2792,"stem":2793},"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":2795,"path":2796,"stem":2797},"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":2799,"path":2800,"stem":2801,"children":2802},"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",[2803,2804,2808,2812,2816,2820,2824,2828,2832,2836,2840,2844,2848,2852],{"title":2799,"path":2800,"stem":2801},{"title":2805,"path":2806,"stem":2807},"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":2809,"path":2810,"stem":2811},"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":2813,"path":2814,"stem":2815},"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":2817,"path":2818,"stem":2819},"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":2821,"path":2822,"stem":2823},"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":2825,"path":2826,"stem":2827},"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":2829,"path":2830,"stem":2831},"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":2833,"path":2834,"stem":2835},"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":2837,"path":2838,"stem":2839},"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":2841,"path":2842,"stem":2843},"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":2845,"path":2846,"stem":2847},"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":2849,"path":2850,"stem":2851},"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":2853,"path":2854,"stem":2855},"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":2857,"path":2858,"stem":2859,"children":2860},"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",[2861,2862,2866,2870,2874,2878,2882],{"title":2857,"path":2858,"stem":2859},{"title":2863,"path":2864,"stem":2865},"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":2867,"path":2868,"stem":2869},"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":2871,"path":2872,"stem":2873},"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":2875,"path":2876,"stem":2877},"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":2879,"path":2880,"stem":2881},"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":2883,"path":2884,"stem":2885},"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":2887,"path":2888,"stem":2889,"children":2890},"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",[2891,2892,2896,2900,2904,2908],{"title":2887,"path":2888,"stem":2889},{"title":2893,"path":2894,"stem":2895},"TPS00-J. Use thread pools to enable graceful degradation of service during traffic bursts","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F2.tps00-j",{"title":2897,"path":2898,"stem":2899},"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":2901,"path":2902,"stem":2903},"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":2905,"path":2906,"stem":2907},"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":2909,"path":2910,"stem":2911},"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":2913,"path":2914,"stem":2915,"children":2916},"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",[2917,2918,2922,2926,2930],{"title":2913,"path":2914,"stem":2915},{"title":2919,"path":2920,"stem":2921},"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":2923,"path":2924,"stem":2925},"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":2927,"path":2928,"stem":2929},"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":1338,"path":1337,"stem":2931},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F5.tsm03-j",{"title":2933,"path":2934,"stem":2935,"children":2936},"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",[2937,2938,2942,2946,2948,2952,2956],{"title":2933,"path":2934,"stem":2935},{"title":2939,"path":2940,"stem":2941},"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":2943,"path":2944,"stem":2945},"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":1135,"path":1134,"stem":2947},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F4.vna02-j",{"title":2949,"path":2950,"stem":2951},"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":2953,"path":2954,"stem":2955},"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":2957,"path":2958,"stem":2959},"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":2961,"path":2962,"stem":2963,"children":2964},"Recommendations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F01.index",[2965,2966,2979,2988,3041,3066,3095,3116,3149,3182,3243,3268,3307],{"title":2961,"path":2962,"stem":2963},{"title":2137,"path":2967,"stem":2968,"children":2969},"\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",[2970,2971,2975],{"title":2137,"path":2967,"stem":2968},{"title":2972,"path":2973,"stem":2974},"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":2976,"path":2977,"stem":2978},"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":1973,"path":1974,"stem":1975,"children":2980},[2981,2982,2983,2984],{"title":1973,"path":1974,"stem":1975},{"title":30,"path":1967,"stem":1969},{"title":1977,"path":1928,"stem":1978},{"title":2985,"path":2986,"stem":2987},"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":2163,"path":2989,"stem":2990,"children":2991},"\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",[2992,2993,2997,3001,3005,3009,3013,3017,3021,3025,3029,3033,3037],{"title":2163,"path":2989,"stem":2990},{"title":2994,"path":2995,"stem":2996},"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":2998,"path":2999,"stem":3000},"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":3002,"path":3003,"stem":3004},"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":3006,"path":3007,"stem":3008},"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":3010,"path":3011,"stem":3012},"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":3014,"path":3015,"stem":3016},"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":3018,"path":3019,"stem":3020},"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":3022,"path":3023,"stem":3024},"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":3026,"path":3027,"stem":3028},"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":3030,"path":3031,"stem":3032},"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":3034,"path":3035,"stem":3036},"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":3038,"path":3039,"stem":3040},"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":2181,"path":3042,"stem":3043,"children":3044},"\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",[3045,3046,3050,3054,3058,3062],{"title":2181,"path":3042,"stem":3043},{"title":3047,"path":3048,"stem":3049},"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":3051,"path":3052,"stem":3053},"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":3055,"path":3056,"stem":3057},"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":3059,"path":3060,"stem":3061},"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":3063,"path":3064,"stem":3065},"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":2227,"path":3067,"stem":3068,"children":3069},"\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",[3070,3071,3075,3079,3083,3087,3091],{"title":2227,"path":3067,"stem":3068},{"title":3072,"path":3073,"stem":3074},"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":3076,"path":3077,"stem":3078},"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":3080,"path":3081,"stem":3082},"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":3084,"path":3085,"stem":3086},"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":3088,"path":3089,"stem":3090},"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":3092,"path":3093,"stem":3094},"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":2265,"path":3096,"stem":3097,"children":3098},"\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",[3099,3100,3104,3108,3112],{"title":2265,"path":3096,"stem":3097},{"title":3101,"path":3102,"stem":3103},"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":3105,"path":3106,"stem":3107},"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":3109,"path":3110,"stem":3111},"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":3113,"path":3114,"stem":3115},"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":2339,"path":3117,"stem":3118,"children":3119},"\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",[3120,3121,3125,3129,3133,3137,3141,3145],{"title":2339,"path":3117,"stem":3118},{"title":3122,"path":3123,"stem":3124},"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":3126,"path":3127,"stem":3128},"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":3130,"path":3131,"stem":3132},"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":3134,"path":3135,"stem":3136},"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":3138,"path":3139,"stem":3140},"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":3142,"path":3143,"stem":3144},"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":3146,"path":3147,"stem":3148},"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":2473,"path":3150,"stem":3151,"children":3152},"\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",[3153,3154,3158,3162,3166,3170,3174,3178],{"title":2473,"path":3150,"stem":3151},{"title":3155,"path":3156,"stem":3157},"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":3159,"path":3160,"stem":3161},"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":3163,"path":3164,"stem":3165},"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":3167,"path":3168,"stem":3169},"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":3171,"path":3172,"stem":3173},"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":3175,"path":3176,"stem":3177},"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":3179,"path":3180,"stem":3181},"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":2535,"path":3183,"stem":3184,"children":3185},"\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",[3186,3187,3191,3195,3199,3203,3207,3211,3215,3219,3223,3227,3231,3235,3239],{"title":2535,"path":3183,"stem":3184},{"title":3188,"path":3189,"stem":3190},"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":3192,"path":3193,"stem":3194},"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":3196,"path":3197,"stem":3198},"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":3200,"path":3201,"stem":3202},"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":3204,"path":3205,"stem":3206},"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":3208,"path":3209,"stem":3210},"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":3212,"path":3213,"stem":3214},"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":3216,"path":3217,"stem":3218},"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":3220,"path":3221,"stem":3222},"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":3224,"path":3225,"stem":3226},"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":3228,"path":3229,"stem":3230},"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":3232,"path":3233,"stem":3234},"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":3236,"path":3237,"stem":3238},"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":3240,"path":3241,"stem":3242},"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":2589,"path":3244,"stem":3245,"children":3246},"\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",[3247,3248,3252,3256,3260,3264],{"title":2589,"path":3244,"stem":3245},{"title":3249,"path":3250,"stem":3251},"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":3253,"path":3254,"stem":3255},"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":3257,"path":3258,"stem":3259},"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":3261,"path":3262,"stem":3263},"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":3265,"path":3266,"stem":3267},"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":2647,"path":3269,"stem":3270,"children":3271},"\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",[3272,3273,3275,3279,3283,3287,3291,3295,3299,3303],{"title":2647,"path":3269,"stem":3270},{"title":113,"path":112,"stem":3274},"6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F02.obj50-j",{"title":3276,"path":3277,"stem":3278},"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":3280,"path":3281,"stem":3282},"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":3284,"path":3285,"stem":3286},"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":3288,"path":3289,"stem":3290},"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":3292,"path":3293,"stem":3294},"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":3296,"path":3297,"stem":3298},"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":3300,"path":3301,"stem":3302},"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":3304,"path":3305,"stem":3306},"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":2709,"path":3308,"stem":3309,"children":3310},"\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",[3311,3312,3316,3320,3324,3328,3332,3336,3340,3344],{"title":2709,"path":3308,"stem":3309},{"title":3313,"path":3314,"stem":3315},"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":3317,"path":3318,"stem":3319},"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":3321,"path":3322,"stem":3323},"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":3325,"path":3326,"stem":3327},"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":3329,"path":3330,"stem":3331},"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":3333,"path":3334,"stem":3335},"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":3337,"path":3338,"stem":3339},"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":3341,"path":3342,"stem":3343},"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":3345,"path":3346,"stem":3347},"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":3349,"path":3350,"stem":3351,"children":3352},"Back Matter","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F1.index",[3353,3354,3357,3361,3365,3369,3495,3521],{"title":3349,"path":3350,"stem":3351},{"title":3355,"path":62,"stem":3356},"Rec. AA. References","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F2.rec-aa-references",{"title":3358,"path":3359,"stem":3360},"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":3362,"path":3363,"stem":3364},"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":3366,"path":3367,"stem":3368},"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":3370,"path":3371,"stem":3372,"children":3373},"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",[3374,3375,3379,3383,3387,3391,3395,3399,3403,3407,3411,3415,3419,3423,3427,3431,3435,3439,3443,3447,3451,3455,3459,3463,3467,3471,3475,3479,3483,3487,3491],{"title":3370,"path":3371,"stem":3372},{"title":3376,"path":3377,"stem":3378},"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":3380,"path":3381,"stem":3382},"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":3384,"path":3385,"stem":3386},"Coverity","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fcoverity","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F04.coverity",{"title":3388,"path":3389,"stem":3390},"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":3392,"path":3393,"stem":3394},"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":3396,"path":3397,"stem":3398},"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":3400,"path":3401,"stem":3402},"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":3404,"path":3405,"stem":3406},"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":3408,"path":3409,"stem":3410},"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":3412,"path":3413,"stem":3414},"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":3416,"path":3417,"stem":3418},"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":3420,"path":3421,"stem":3422},"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":3424,"path":3425,"stem":3426},"Klocwork","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fklocwork","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F14.klocwork",{"title":3428,"path":3429,"stem":3430},"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":3432,"path":3433,"stem":3434},"Parasoft","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fparasoft","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F16.parasoft",{"title":3436,"path":3437,"stem":3438},"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":3440,"path":3441,"stem":3442},"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":3444,"path":3445,"stem":3446},"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":3448,"path":3449,"stem":3450},"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":3452,"path":3453,"stem":3454},"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":3456,"path":3457,"stem":3458},"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":3460,"path":3461,"stem":3462},"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":3464,"path":3465,"stem":3466},"SonarQube","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fsonarqube","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F24.sonarqube",{"title":3468,"path":3469,"stem":3470},"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":3472,"path":3473,"stem":3474},"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":3476,"path":3477,"stem":3478},"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":3480,"path":3481,"stem":3482},"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":3484,"path":3485,"stem":3486},"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":3488,"path":3489,"stem":3490},"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":3492,"path":3493,"stem":3494},"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":3496,"path":3497,"stem":3498,"children":3499},"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",[3500,3501,3505,3509,3513,3517],{"title":3496,"path":3497,"stem":3498},{"title":3502,"path":3503,"stem":3504},"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":3506,"path":3507,"stem":3508},"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":3510,"path":3511,"stem":3512},"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":3514,"path":3515,"stem":3516},"MITRE CWE","\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":3518,"path":3519,"stem":3520},"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":3522,"path":3523,"stem":3524},"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":3526,"path":3527,"stem":3528,"children":3529},"Admin","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F1.index",[3530,3531,3535,3539,3543,3547],{"title":3526,"path":3527,"stem":3528},{"title":3532,"path":3533,"stem":3534},"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":3536,"path":3537,"stem":3538},"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":3540,"path":3541,"stem":3542},"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":3544,"path":3545,"stem":3546},"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":3544,"path":3545,"stem":3548},"6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F6.todo-list",1775657810183]