[{"data":1,"prerenderedAt":3394},["ShallowReactive",2],{"global-navigation":3,"page-\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon52-j":28,"surround-\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon52-j":1813,"sidebar-sei-cert-oracle-coding-standard-for-java":1821},[4,8],{"title":5,"path":6,"_path":6,"fromAppConfig":7},"Home","\u002F",true,{"title":9,"path":10,"children":11,"_path":27,"fromAppConfig":7},"Coding Standards","\u002Fcoding-standards\u002F",[12,15,18,21,24],{"title":13,"path":14},"Android Coding Standard","\u002Fandroid-secure-coding-standard\u002F",{"title":16,"path":17},"C Coding Standard","\u002Fsei-cert-c-coding-standard\u002F",{"title":19,"path":20},"C++ Coding Standard","\u002Fsei-cert-cpp-coding-standard\u002F",{"title":22,"path":23},"Java Coding Standard","\u002Fsei-cert-oracle-coding-standard-for-java\u002F",{"title":25,"path":26},"Perl Coding Standard","\u002Fsei-cert-perl-coding-standard\u002F","\u002Fcoding-standards",{"id":29,"title":30,"body":31,"description":41,"extension":1795,"meta":1796,"navigation":7,"path":1809,"seo":1810,"stem":1811,"__hash__":1812},"content\u002F6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F4.con52-j.md","CON52-J. Document thread-safety and use annotations where applicable",{"type":32,"value":33,"toc":1783},"minimark",[34,38,42,47,91,140,143,146,153,157,160,173,188,458,467,480,491,498,652,660,673,679,690,765,769,774,791,806,816,1116,1155,1168,1198,1207,1213,1418,1433,1438,1454,1460,1572,1576,1584,1587,1631,1635,1640,1645,1648,1652,1655,1659,1705,1709,1755,1758,1779],[35,36,30],"h1",{"id":37},"con52-j-document-thread-safety-and-use-annotations-where-applicable",[39,40,41],"p",{},"The Java language annotation facility is useful for documenting design intent. Source code annotation is a mechanism for associating metadata with a program element and making it available to the compiler, analyzers, debuggers, or Java Virtual Machine (JVM) for examination. Several annotations are available for documenting thread-safety or the lack thereof.",[43,44,46],"h2",{"id":45},"obtaining-concurrency-annotations","Obtaining Concurrency Annotations",[39,48,49,50,54,55,60,61,67,68,73,74,73,79,84,85,90],{},"Two sets of concurrency annotations are freely available and licensed for use in any code. The first set consists of four annotations described in ",[51,52,53],"em",{},"Java Concurrency in Practice"," (JCIP) [ ",[56,57,59],"a",{"href":58},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-aa-references#Rec.AA.References-Goetz06","Goetz 2006"," ], which can be downloaded from ",[56,62,66],{"href":63,"rel":64},"http:\u002F\u002Fwww.jcip.net",[65],"nofollow","jcip.net"," ( ",[56,69,72],{"href":70,"rel":71},"http:\u002F\u002Fjcip.net\u002Fjcip-annotations.jar",[65],"jar"," , ",[56,75,78],{"href":76,"rel":77},"http:\u002F\u002Fjcip.net\u002Fannotations\u002Fdoc\u002Findex.html",[65],"javadoc",[56,80,83],{"href":81,"rel":82},"http:\u002F\u002Fjcip.net\u002Fjcip-annotations-src.jar",[65],"source"," ). The JCIP annotations are released under the ",[56,86,89],{"href":87,"rel":88},"http:\u002F\u002Fcreativecommons.org\u002Flicenses\u002Fby\u002F2.5",[65],"Creative Commons Attribution License"," .",[39,92,93,94,99,100,105,106,111,112,67,117,73,121,73,125,129,130,133,134,139],{},"The second, larger set of concurrency annotations is available from and supported by ",[56,95,98],{"href":96,"rel":97},"https:\u002F\u002Fweb.archive.org\u002Fweb\u002F20150315141738\u002Fhttp:\u002F\u002Fwww.surelogic.com",[65],"SureLogic"," . These annotations are released under the ",[56,101,104],{"href":102,"rel":103},"http:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0",[65],"Apache Software License, Version 2.0"," and can be downloaded via the ",[56,107,110],{"href":108,"rel":109},"http:\u002F\u002Fweb.archive.org",[65],"Internet Archive"," at ",[56,113,116],{"href":114,"rel":115},"https:\u002F\u002Fweb.archive.org\u002Fweb\u002F20150315141738\u002Fhttp:\u002F\u002Fsurelogic.com\u002Fpromises\u002Findex.html",[65],"surelogic.com",[56,118,72],{"href":119,"rel":120},"https:\u002F\u002Fweb.archive.org\u002Fweb\u002F20150315141738\u002Fhttp:\u002F\u002Fsurelogic.com\u002Fpromises\u002Fjars\u002F",[65],[56,122,78],{"href":123,"rel":124},"https:\u002F\u002Fweb.archive.org\u002Fweb\u002F20150315141738\u002Fhttp:\u002F\u002Fsurelogic.com\u002Fpromises\u002Fapidocs\u002Findex.html",[65],[56,126,83],{"href":127,"rel":128},"https:\u002F\u002Fweb.archive.org\u002Fweb\u002F20150315141738\u002Fhttp:\u002F\u002Fsurelogic.com\u002Fpromises\u002Fsource-repository.html",[65]," ). The annotations can be verified by the ",[56,131,98],{"href":96,"rel":132},[65]," ",[56,135,138],{"href":136,"rel":137},"https:\u002F\u002Fweb.archive.org\u002Fweb\u002F20150315141738\u002Fhttp:\u002F\u002Fwww.surelogic.com\u002Fconcurrency-tools.html",[65],"JSure"," tool, and they remain useful for documenting code even when the tool is unavailable. These annotations include the JCIP annotations because they are supported by the JSure tool. (JSure also supports use of the JCIP JAR file.)",[39,141,142],{},"To use the annotations, download and add one or both of the aforementioned JAR files to the code's build path. The use of these annotations to document thread-safety is descr",[39,144,145],{},"Deprecated Examples",[39,147,148,149,152],{},"These examples are based on ",[56,150,98],{"href":96,"rel":151},[65]," , as of 2010. The intent is still useful but the implementation is no longer supported.  We recommend using an annotation package that still enjoys active support.",[43,154,156],{"id":155},"documenting-intended-thread-safety","Documenting Intended Thread-Safety",[39,158,159],{},"JCIP provides three class-level annotations to describe the programmer's design intent with respect to thread-safety.",[39,161,162,163,167,168,172],{},"The ",[164,165,166],"code",{},"@ThreadSafe"," annotation is applied to a class to indicate that it is ",[56,169,171],{"href":170},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-thread-safe","thread-safe"," . This means that no sequences of accesses (reads and writes to public fields, calls to public methods) can leave the object in an inconsistent state, regardless of the interleaving of these accesses by the runtime or any external synchronization or coordination on the part of the caller.",[39,174,175,176,179,180,183,184,187],{},"For example, the following ",[164,177,178],{},"Aircraft"," class specifies that it is thread-safe as part of its locking policy documentation. This class protects the ",[164,181,182],{},"x"," and ",[164,185,186],{},"y"," fields using a reentrant lock.",[189,190,192],"code-block",{"quality":191},"good",[193,194,199],"pre",{"className":195,"code":196,"language":197,"meta":198,"style":198},"language-java shiki shiki-themes github-light github-dark monokai"," @ThreadSafe\n @Region(\"private AircraftState\")\n @RegionLock(\"StateLock is stateLock protects AircraftState\")\n public final class Aircraft {\n   private final Lock stateLock = new ReentrantLock();\n   \u002F\u002F ...\n   @InRegion(\"AircraftState\")\n   private long x, y;\n   \u002F\u002F ...\n   public void setPosition(long x, long y) {\n     stateLock.lock();\n     try {\n       this.x = x;\n       this.y = y;\n     } finally {\n       stateLock.unlock();\n     }\n   }\n   \u002F\u002F ...\n }\n","java","",[164,200,201,214,232,247,267,295,302,318,329,334,366,377,385,400,413,424,435,441,447,452],{"__ignoreMap":198},[202,203,206,210],"span",{"class":204,"line":205},"line",1,[202,207,209],{"class":208},"sMOD_"," @",[202,211,213],{"class":212},"sq6CD","ThreadSafe\n",[202,215,217,219,222,225,229],{"class":204,"line":216},2,[202,218,209],{"class":208},[202,220,221],{"class":212},"Region",[202,223,224],{"class":208},"(",[202,226,228],{"class":227},"sstjo","\"private AircraftState\"",[202,230,231],{"class":208},")\n",[202,233,235,237,240,242,245],{"class":204,"line":234},3,[202,236,209],{"class":208},[202,238,239],{"class":212},"RegionLock",[202,241,224],{"class":208},[202,243,244],{"class":227},"\"StateLock is stateLock protects AircraftState\"",[202,246,231],{"class":208},[202,248,250,254,257,260,264],{"class":204,"line":249},4,[202,251,253],{"class":252},"sC2Qs"," public",[202,255,256],{"class":252}," final",[202,258,259],{"class":252}," class",[202,261,263],{"class":262},"sz2Vg"," Aircraft",[202,265,266],{"class":208}," {\n",[202,268,270,273,275,279,282,285,288,292],{"class":204,"line":269},5,[202,271,272],{"class":252},"   private",[202,274,256],{"class":252},[202,276,278],{"class":277},"sk8M1"," Lock",[202,280,281],{"class":208}," stateLock ",[202,283,284],{"class":252},"=",[202,286,287],{"class":252}," new",[202,289,291],{"class":290},"srTi1"," ReentrantLock",[202,293,294],{"class":208},"();\n",[202,296,298],{"class":204,"line":297},6,[202,299,301],{"class":300},"s8-w5","   \u002F\u002F ...\n",[202,303,305,308,311,313,316],{"class":204,"line":304},7,[202,306,307],{"class":208},"   @",[202,309,310],{"class":212},"InRegion",[202,312,224],{"class":208},[202,314,315],{"class":227},"\"AircraftState\"",[202,317,231],{"class":208},[202,319,321,323,326],{"class":204,"line":320},8,[202,322,272],{"class":252},[202,324,325],{"class":212}," long",[202,327,328],{"class":208}," x, y;\n",[202,330,332],{"class":204,"line":331},9,[202,333,301],{"class":300},[202,335,337,340,343,346,348,351,355,358,360,363],{"class":204,"line":336},10,[202,338,339],{"class":252},"   public",[202,341,342],{"class":212}," void",[202,344,345],{"class":290}," setPosition",[202,347,224],{"class":208},[202,349,350],{"class":212},"long",[202,352,354],{"class":353},"sTHNf"," x",[202,356,357],{"class":208},", ",[202,359,350],{"class":212},[202,361,362],{"class":353}," y",[202,364,365],{"class":208},") {\n",[202,367,369,372,375],{"class":204,"line":368},11,[202,370,371],{"class":208},"     stateLock.",[202,373,374],{"class":290},"lock",[202,376,294],{"class":208},[202,378,380,383],{"class":204,"line":379},12,[202,381,382],{"class":252},"     try",[202,384,266],{"class":208},[202,386,388,392,395,397],{"class":204,"line":387},13,[202,389,391],{"class":390},"sP7S_","       this",[202,393,394],{"class":208},".x ",[202,396,284],{"class":252},[202,398,399],{"class":208}," x;\n",[202,401,403,405,408,410],{"class":204,"line":402},14,[202,404,391],{"class":390},[202,406,407],{"class":208},".y ",[202,409,284],{"class":252},[202,411,412],{"class":208}," y;\n",[202,414,416,419,422],{"class":204,"line":415},15,[202,417,418],{"class":208},"     } ",[202,420,421],{"class":252},"finally",[202,423,266],{"class":208},[202,425,427,430,433],{"class":204,"line":426},16,[202,428,429],{"class":208},"       stateLock.",[202,431,432],{"class":290},"unlock",[202,434,294],{"class":208},[202,436,438],{"class":204,"line":437},17,[202,439,440],{"class":208},"     }\n",[202,442,444],{"class":204,"line":443},18,[202,445,446],{"class":208},"   }\n",[202,448,450],{"class":204,"line":449},19,[202,451,301],{"class":300},[202,453,455],{"class":204,"line":454},20,[202,456,457],{"class":208}," }\n",[39,459,162,460,183,463,466],{},[164,461,462],{},"@Region",[164,464,465],{},"@RegionLock"," annotations document the locking policy upon which the promise of thread-safety is predicated.",[39,468,469,470,472,473,476,477,479],{},"Even when one or more ",[164,471,465],{}," or ",[164,474,475],{},"@GuardedBy"," annotations have been used to document the locking policy of a class, the ",[164,478,166],{}," annotation provides an intuitive way for reviewers to learn that the class is thread-safe.",[39,481,162,482,485,486,490],{},[164,483,484],{},"@Immutable"," annotation is applied to ",[56,487,489],{"href":488},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-immutable","immutable"," classes. Immutable objects are inherently thread-safe; once they are fully constructed, they may be published via a reference and shared safely among multiple threads.",[39,492,493,494,497],{},"The following example shows an immutable ",[164,495,496],{},"Point"," class:",[189,499,500],{"quality":191},[193,501,503],{"className":195,"code":502,"language":197,"meta":198,"style":198}," @Immutable\n public final class Point {\n   private final int f_x;\n   private final int f_y;\n\n   public Point(int x, int y) {\n     f_x = x;\n     f_y = y;\n   }\n\n   public int getX() {\n     return f_x;\n   }\n\n   public int getY() {\n     return f_y;\n   }\n }\n",[164,504,505,512,525,537,548,553,574,583,592,596,600,612,619,623,627,638,644,648],{"__ignoreMap":198},[202,506,507,509],{"class":204,"line":205},[202,508,209],{"class":208},[202,510,511],{"class":212},"Immutable\n",[202,513,514,516,518,520,523],{"class":204,"line":216},[202,515,253],{"class":252},[202,517,256],{"class":252},[202,519,259],{"class":252},[202,521,522],{"class":262}," Point",[202,524,266],{"class":208},[202,526,527,529,531,534],{"class":204,"line":234},[202,528,272],{"class":252},[202,530,256],{"class":252},[202,532,533],{"class":212}," int",[202,535,536],{"class":208}," f_x;\n",[202,538,539,541,543,545],{"class":204,"line":249},[202,540,272],{"class":252},[202,542,256],{"class":252},[202,544,533],{"class":212},[202,546,547],{"class":208}," f_y;\n",[202,549,550],{"class":204,"line":269},[202,551,552],{"emptyLinePlaceholder":7},"\n",[202,554,555,557,559,561,564,566,568,570,572],{"class":204,"line":297},[202,556,339],{"class":252},[202,558,522],{"class":290},[202,560,224],{"class":208},[202,562,563],{"class":212},"int",[202,565,354],{"class":353},[202,567,357],{"class":208},[202,569,563],{"class":212},[202,571,362],{"class":353},[202,573,365],{"class":208},[202,575,576,579,581],{"class":204,"line":304},[202,577,578],{"class":208},"     f_x ",[202,580,284],{"class":252},[202,582,399],{"class":208},[202,584,585,588,590],{"class":204,"line":320},[202,586,587],{"class":208},"     f_y ",[202,589,284],{"class":252},[202,591,412],{"class":208},[202,593,594],{"class":204,"line":331},[202,595,446],{"class":208},[202,597,598],{"class":204,"line":336},[202,599,552],{"emptyLinePlaceholder":7},[202,601,602,604,606,609],{"class":204,"line":368},[202,603,339],{"class":252},[202,605,533],{"class":212},[202,607,608],{"class":290}," getX",[202,610,611],{"class":208},"() {\n",[202,613,614,617],{"class":204,"line":379},[202,615,616],{"class":252},"     return",[202,618,536],{"class":208},[202,620,621],{"class":204,"line":387},[202,622,446],{"class":208},[202,624,625],{"class":204,"line":402},[202,626,552],{"emptyLinePlaceholder":7},[202,628,629,631,633,636],{"class":204,"line":415},[202,630,339],{"class":252},[202,632,533],{"class":212},[202,634,635],{"class":290}," getY",[202,637,611],{"class":208},[202,639,640,642],{"class":204,"line":426},[202,641,616],{"class":252},[202,643,547],{"class":208},[202,645,646],{"class":204,"line":437},[202,647,446],{"class":208},[202,649,650],{"class":204,"line":443},[202,651,457],{"class":208},[39,653,654,655,659],{},"According to Joshua Bloch [ ",[56,656,658],{"href":657},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-aa-references#Rec.AA.References-Bloch08","Bloch 2008"," ],",[661,662,663],"blockquote",{},[39,664,665,666,669,670,90],{},"It is not necessary to document the immutability of ",[164,667,668],{},"enum"," types. Unless it is obvious from the return type, static factories must document the thread safety of the returned object, as demonstrated by ",[164,671,672],{},"Collections.synchronizedMap",[39,674,162,675,678],{},[164,676,677],{},"@NotThreadSafe"," annotation is applied to classes that are not thread-safe. Many classes fail to document whether they are safe for multithreaded use. Consequently, a programmer has no easy way to determine whether the class is thread-safe. This annotation provides clear indication of the class's lack of thread-safety.",[39,680,681,682,685,686,689],{},"For example, most of the collection implementations provided in ",[164,683,684],{},"java.util"," are not thread-safe. The class ",[164,687,688],{},"java.util.ArrayList"," could document this as follows:",[189,691,692],{"quality":191},[193,693,695],{"className":195,"code":694,"language":197,"meta":198,"style":198}," package java.util.ArrayList;\n\n @NotThreadSafe\n public class ArrayList\u003CE> extends ... {\n   \u002F\u002F ...\n }\n",[164,696,697,722,726,733,757,761],{"__ignoreMap":198},[202,698,699,702,706,710,713,716,719],{"class":204,"line":205},[202,700,701],{"class":252}," package",[202,703,705],{"class":704},"s-ngx"," java.util.",[202,707,709],{"class":708},"st05x","A",[202,711,712],{"class":704},"rray",[202,714,715],{"class":708},"L",[202,717,718],{"class":704},"ist",[202,720,721],{"class":208},";\n",[202,723,724],{"class":204,"line":216},[202,725,552],{"emptyLinePlaceholder":7},[202,727,728,730],{"class":204,"line":234},[202,729,209],{"class":208},[202,731,732],{"class":212},"NotThreadSafe\n",[202,734,735,737,739,742,745,748,751,754],{"class":204,"line":249},[202,736,253],{"class":252},[202,738,259],{"class":252},[202,740,741],{"class":262}," ArrayList",[202,743,744],{"class":208},"\u003C",[202,746,747],{"class":212},"E",[202,749,750],{"class":208},"> ",[202,752,753],{"class":252},"extends",[202,755,756],{"class":208}," ... {\n",[202,758,759],{"class":204,"line":269},[202,760,301],{"class":300},[202,762,763],{"class":204,"line":297},[202,764,457],{"class":208},[43,766,768],{"id":767},"documenting-locking-policies","Documenting Locking Policies",[39,770,771,772,659],{},"It is important to document all the locks that are being used to protect shared state. According to Brian Goetz and colleagues [ ",[56,773,59],{"href":58},[661,775,776],{},[39,777,778,779,782,783,786,787,790],{},"For each mutable state variable that may be accessed by more than one thread, ",[51,780,781],{},"all"," accesses to that variable must be performed with the ",[51,784,785],{},"same"," lock held. In this case, we say that the variable is ",[51,788,789],{},"guarded by"," that lock. (p. 28)",[39,792,793,794,796,797,799,800,802,803,90],{},"JCIP provides the ",[164,795,475],{}," annotation for this purpose, and SureLogic provides the ",[164,798,465],{}," annotation. The field or method to which the ",[164,801,475],{}," annotation is applied can be accessed only when holding a particular lock. It may be an intrinsic lock or a dynamic lock such as ",[164,804,805],{},"java.util.concurrent.Lock",[39,807,175,808,811,812,815],{},[164,809,810],{},"MovablePoint"," class implements a movable point that can remember its past locations using the ",[164,813,814],{},"memo"," array list:",[189,817,818],{"quality":191},[193,819,821],{"className":195,"code":820,"language":197,"meta":198,"style":198},"@ThreadSafe\npublic final class MovablePoint {\n\n  @GuardedBy(\"this\")\n  double xPos = 1.0;\n  @GuardedBy(\"this\")\n  double yPos = 1.0;\n  @GuardedBy(\"itself\")\n  static final List\u003CMovablePoint> memo\n    = new ArrayList\u003CMovablePoint>();\n\n  public void move(double slope, double distance) {\n    synchronized (this) {\n      rememberPoint(this);\n      xPos += (1 \u002F slope) * distance;\n      yPos += slope * distance;\n    }\n  }\n\n  public static void rememberPoint(MovablePoint value) {\n    synchronized (memo) {\n      memo.add(value);\n    }\n  }\n}\n",[164,822,823,830,844,848,863,879,891,904,917,934,950,954,981,994,1006,1031,1045,1050,1055,1059,1080,1088,1100,1105,1110],{"__ignoreMap":198},[202,824,825,828],{"class":204,"line":205},[202,826,827],{"class":208},"@",[202,829,213],{"class":212},[202,831,832,835,837,839,842],{"class":204,"line":216},[202,833,834],{"class":252},"public",[202,836,256],{"class":252},[202,838,259],{"class":252},[202,840,841],{"class":262}," MovablePoint",[202,843,266],{"class":208},[202,845,846],{"class":204,"line":234},[202,847,552],{"emptyLinePlaceholder":7},[202,849,850,853,856,858,861],{"class":204,"line":249},[202,851,852],{"class":208},"  @",[202,854,855],{"class":212},"GuardedBy",[202,857,224],{"class":208},[202,859,860],{"class":227},"\"this\"",[202,862,231],{"class":208},[202,864,865,868,871,873,877],{"class":204,"line":269},[202,866,867],{"class":212},"  double",[202,869,870],{"class":208}," xPos ",[202,872,284],{"class":252},[202,874,876],{"class":875},"s7F3e"," 1.0",[202,878,721],{"class":208},[202,880,881,883,885,887,889],{"class":204,"line":297},[202,882,852],{"class":208},[202,884,855],{"class":212},[202,886,224],{"class":208},[202,888,860],{"class":227},[202,890,231],{"class":208},[202,892,893,895,898,900,902],{"class":204,"line":304},[202,894,867],{"class":212},[202,896,897],{"class":208}," yPos ",[202,899,284],{"class":252},[202,901,876],{"class":875},[202,903,721],{"class":208},[202,905,906,908,910,912,915],{"class":204,"line":320},[202,907,852],{"class":208},[202,909,855],{"class":212},[202,911,224],{"class":208},[202,913,914],{"class":227},"\"itself\"",[202,916,231],{"class":208},[202,918,919,922,924,927,929,931],{"class":204,"line":331},[202,920,921],{"class":252},"  static",[202,923,256],{"class":252},[202,925,926],{"class":277}," List",[202,928,744],{"class":208},[202,930,810],{"class":212},[202,932,933],{"class":208},"> memo\n",[202,935,936,939,941,943,945,947],{"class":204,"line":336},[202,937,938],{"class":252},"    =",[202,940,287],{"class":252},[202,942,741],{"class":277},[202,944,744],{"class":208},[202,946,810],{"class":212},[202,948,949],{"class":208},">();\n",[202,951,952],{"class":204,"line":368},[202,953,552],{"emptyLinePlaceholder":7},[202,955,956,959,961,964,966,969,972,974,976,979],{"class":204,"line":379},[202,957,958],{"class":252},"  public",[202,960,342],{"class":212},[202,962,963],{"class":290}," move",[202,965,224],{"class":208},[202,967,968],{"class":212},"double",[202,970,971],{"class":353}," slope",[202,973,357],{"class":208},[202,975,968],{"class":212},[202,977,978],{"class":353}," distance",[202,980,365],{"class":208},[202,982,983,986,989,992],{"class":204,"line":387},[202,984,985],{"class":252},"    synchronized",[202,987,988],{"class":208}," (",[202,990,991],{"class":390},"this",[202,993,365],{"class":208},[202,995,996,999,1001,1003],{"class":204,"line":402},[202,997,998],{"class":290},"      rememberPoint",[202,1000,224],{"class":208},[202,1002,991],{"class":390},[202,1004,1005],{"class":208},");\n",[202,1007,1008,1011,1014,1016,1019,1022,1025,1028],{"class":204,"line":415},[202,1009,1010],{"class":208},"      xPos ",[202,1012,1013],{"class":252},"+=",[202,1015,988],{"class":208},[202,1017,1018],{"class":875},"1",[202,1020,1021],{"class":252}," \u002F",[202,1023,1024],{"class":208}," slope) ",[202,1026,1027],{"class":252},"*",[202,1029,1030],{"class":208}," distance;\n",[202,1032,1033,1036,1038,1041,1043],{"class":204,"line":426},[202,1034,1035],{"class":208},"      yPos ",[202,1037,1013],{"class":252},[202,1039,1040],{"class":208}," slope ",[202,1042,1027],{"class":252},[202,1044,1030],{"class":208},[202,1046,1047],{"class":204,"line":437},[202,1048,1049],{"class":208},"    }\n",[202,1051,1052],{"class":204,"line":443},[202,1053,1054],{"class":208},"  }\n",[202,1056,1057],{"class":204,"line":449},[202,1058,552],{"emptyLinePlaceholder":7},[202,1060,1061,1063,1066,1068,1071,1073,1075,1078],{"class":204,"line":454},[202,1062,958],{"class":252},[202,1064,1065],{"class":252}," static",[202,1067,342],{"class":212},[202,1069,1070],{"class":290}," rememberPoint",[202,1072,224],{"class":208},[202,1074,810],{"class":277},[202,1076,1077],{"class":353}," value",[202,1079,365],{"class":208},[202,1081,1083,1085],{"class":204,"line":1082},21,[202,1084,985],{"class":252},[202,1086,1087],{"class":208}," (memo) {\n",[202,1089,1091,1094,1097],{"class":204,"line":1090},22,[202,1092,1093],{"class":208},"      memo.",[202,1095,1096],{"class":290},"add",[202,1098,1099],{"class":208},"(value);\n",[202,1101,1103],{"class":204,"line":1102},23,[202,1104,1049],{"class":208},[202,1106,1108],{"class":204,"line":1107},24,[202,1109,1054],{"class":208},[202,1111,1113],{"class":204,"line":1112},25,[202,1114,1115],{"class":208},"}\n",[39,1117,162,1118,1120,1121,183,1124,1127,1128,1130,1131,1134,1135,1137,1138,1140,1141,1143,1144,1147,1148,1151,1152,1154],{},[164,1119,475],{}," annotations on the ",[164,1122,1123],{},"xPos",[164,1125,1126],{},"yPos"," fields indicate that access to these fields is protected by holding a lock on ",[164,1129,991],{}," . The ",[164,1132,1133],{},"move()"," method also synchronizes on ",[164,1136,991],{}," , which modifies these fields. The ",[164,1139,475],{}," annotation on the ",[164,1142,814],{}," list indicates that a lock on the ",[164,1145,1146],{},"ArrayList"," object protects its contents. The ",[164,1149,1150],{},"rememberPoint()"," method also synchronizes on the ",[164,1153,814],{}," list.",[39,1156,1157,1158,1160,1161,1163,1164,1167],{},"One issue with the ",[164,1159,475],{}," annotation is that it fails to indicate when there is a relationship between the fields of a class. This limitation can be overcome by using the SureLogic ",[164,1162,465],{}," annotation, which declares a new region lock for the class to which this annotation is applied. This declaration creates a new named lock that associates a particular lock object with a region of the class. The region may be accessed only when the lock is held. For example, the ",[164,1165,1166],{},"SimpleLock"," locking policy indicates that synchronizing on the instance protects all of its state:",[189,1169,1170],{"quality":191},[193,1171,1173],{"className":195,"code":1172,"language":197,"meta":198,"style":198}," @RegionLock(\"SimpleLock is this protects Instance\")\n class Simple { ... }\n",[164,1174,1175,1188],{"__ignoreMap":198},[202,1176,1177,1179,1181,1183,1186],{"class":204,"line":205},[202,1178,209],{"class":208},[202,1180,239],{"class":212},[202,1182,224],{"class":208},[202,1184,1185],{"class":227},"\"SimpleLock is this protects Instance\"",[202,1187,231],{"class":208},[202,1189,1190,1192,1195],{"class":204,"line":216},[202,1191,259],{"class":252},[202,1193,1194],{"class":262}," Simple",[202,1196,1197],{"class":208}," { ... }\n",[39,1199,1200,1201,1203,1204,1206],{},"Unlike ",[164,1202,475],{}," , the ",[164,1205,465],{}," annotation allows the programmer to give an explicit, and hopefully meaningful, name to the locking policy.",[39,1208,1209,1210,1212],{},"In addition to naming the locking policy, the ",[164,1211,462],{}," annotation allows a name to be given to the region of the state that is being protected. That name makes it clear that the state and locking policy belong together, as demonstrated in the following example:",[189,1214,1215],{"quality":191},[193,1216,1218],{"className":195,"code":1217,"language":197,"meta":198,"style":198}," @Region(\"private AircraftPosition\")\n @RegionLock(\"StateLock is stateLock protects AircraftPosition\")\n public final class Aircraft {\n   private final Lock stateLock = new ReentrantLock();\n\n   @InRegion(\"AircraftPosition\")\n   private long x, y;\n\n   @InRegion(\"AircraftPosition\")\n   private long altitude;\n   \u002F\u002F ...\n   public void setPosition(long x, long y) {\n     stateLock.lock();\n     try {\n       this.x = x;\n       this.y = y;\n     } finally {\n       stateLock.unlock();\n     }\n   }\n   \u002F\u002F ...\n }\n",[164,1219,1220,1233,1246,1258,1276,1280,1293,1301,1305,1317,1326,1330,1352,1360,1366,1376,1386,1394,1402,1406,1410,1414],{"__ignoreMap":198},[202,1221,1222,1224,1226,1228,1231],{"class":204,"line":205},[202,1223,209],{"class":208},[202,1225,221],{"class":212},[202,1227,224],{"class":208},[202,1229,1230],{"class":227},"\"private AircraftPosition\"",[202,1232,231],{"class":208},[202,1234,1235,1237,1239,1241,1244],{"class":204,"line":216},[202,1236,209],{"class":208},[202,1238,239],{"class":212},[202,1240,224],{"class":208},[202,1242,1243],{"class":227},"\"StateLock is stateLock protects AircraftPosition\"",[202,1245,231],{"class":208},[202,1247,1248,1250,1252,1254,1256],{"class":204,"line":234},[202,1249,253],{"class":252},[202,1251,256],{"class":252},[202,1253,259],{"class":252},[202,1255,263],{"class":262},[202,1257,266],{"class":208},[202,1259,1260,1262,1264,1266,1268,1270,1272,1274],{"class":204,"line":249},[202,1261,272],{"class":252},[202,1263,256],{"class":252},[202,1265,278],{"class":277},[202,1267,281],{"class":208},[202,1269,284],{"class":252},[202,1271,287],{"class":252},[202,1273,291],{"class":290},[202,1275,294],{"class":208},[202,1277,1278],{"class":204,"line":269},[202,1279,552],{"emptyLinePlaceholder":7},[202,1281,1282,1284,1286,1288,1291],{"class":204,"line":297},[202,1283,307],{"class":208},[202,1285,310],{"class":212},[202,1287,224],{"class":208},[202,1289,1290],{"class":227},"\"AircraftPosition\"",[202,1292,231],{"class":208},[202,1294,1295,1297,1299],{"class":204,"line":304},[202,1296,272],{"class":252},[202,1298,325],{"class":212},[202,1300,328],{"class":208},[202,1302,1303],{"class":204,"line":320},[202,1304,552],{"emptyLinePlaceholder":7},[202,1306,1307,1309,1311,1313,1315],{"class":204,"line":331},[202,1308,307],{"class":208},[202,1310,310],{"class":212},[202,1312,224],{"class":208},[202,1314,1290],{"class":227},[202,1316,231],{"class":208},[202,1318,1319,1321,1323],{"class":204,"line":336},[202,1320,272],{"class":252},[202,1322,325],{"class":212},[202,1324,1325],{"class":208}," altitude;\n",[202,1327,1328],{"class":204,"line":368},[202,1329,301],{"class":300},[202,1331,1332,1334,1336,1338,1340,1342,1344,1346,1348,1350],{"class":204,"line":379},[202,1333,339],{"class":252},[202,1335,342],{"class":212},[202,1337,345],{"class":290},[202,1339,224],{"class":208},[202,1341,350],{"class":212},[202,1343,354],{"class":353},[202,1345,357],{"class":208},[202,1347,350],{"class":212},[202,1349,362],{"class":353},[202,1351,365],{"class":208},[202,1353,1354,1356,1358],{"class":204,"line":387},[202,1355,371],{"class":208},[202,1357,374],{"class":290},[202,1359,294],{"class":208},[202,1361,1362,1364],{"class":204,"line":402},[202,1363,382],{"class":252},[202,1365,266],{"class":208},[202,1367,1368,1370,1372,1374],{"class":204,"line":415},[202,1369,391],{"class":390},[202,1371,394],{"class":208},[202,1373,284],{"class":252},[202,1375,399],{"class":208},[202,1377,1378,1380,1382,1384],{"class":204,"line":426},[202,1379,391],{"class":390},[202,1381,407],{"class":208},[202,1383,284],{"class":252},[202,1385,412],{"class":208},[202,1387,1388,1390,1392],{"class":204,"line":437},[202,1389,418],{"class":208},[202,1391,421],{"class":252},[202,1393,266],{"class":208},[202,1395,1396,1398,1400],{"class":204,"line":443},[202,1397,429],{"class":208},[202,1399,432],{"class":290},[202,1401,294],{"class":208},[202,1403,1404],{"class":204,"line":449},[202,1405,440],{"class":208},[202,1407,1408],{"class":204,"line":454},[202,1409,446],{"class":208},[202,1411,1412],{"class":204,"line":1082},[202,1413,301],{"class":300},[202,1415,1416],{"class":204,"line":1090},[202,1417,457],{"class":208},[39,1419,1420,1421,1424,1425,1428,1429,1432],{},"In this example, a locking policy named ",[164,1422,1423],{},"StateLock"," is used to indicate that locking on ",[164,1426,1427],{},"stateLock"," protects the named ",[164,1430,1431],{},"AircraftPosition"," region, which includes the mutable state used to represent the position of the aircraft.",[1434,1435,1437],"h3",{"id":1436},"construction-of-mutable-objects","Construction of Mutable Objects",[39,1439,1440,1441,1444,1445,1449,1450,1453],{},"Typically, object construction is considered an exception to the locking policy because objects are thread-confined when they are created. An object is confined to the thread that uses the ",[164,1442,1443],{},"new"," operator to create its instance. After creation, the object can be published to other threads safely. However, the object is not shared until the thread that created the instance allows it to be shared. Safe publication approaches discussed in ",[56,1446,1448],{"href":1447},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm01-j","TSM01-J. Do not let the this reference escape during object construction"," can be expressed succinctly with the ",[164,1451,1452],{},"@Unique(\"return\")"," annotation.",[39,1455,1456,1457,1459],{},"For example, in the following code, the ",[164,1458,1452],{}," annotation documents that the object returned from the constructor is a unique reference:",[189,1461,1462],{"quality":191},[193,1463,1465],{"className":195,"code":1464,"language":197,"meta":198,"style":198}," @RegionLock(\"Lock is this protects Instance\")\n public final class Example {\n   private int x = 1;\n   private int y;\n\n   @Unique(\"return\")\n   public Example(int y) {\n     this.y = y;\n   }\n   \u002F\u002F ...\n }\n",[164,1466,1467,1480,1493,1509,1517,1521,1535,1549,1560,1564,1568],{"__ignoreMap":198},[202,1468,1469,1471,1473,1475,1478],{"class":204,"line":205},[202,1470,209],{"class":208},[202,1472,239],{"class":212},[202,1474,224],{"class":208},[202,1476,1477],{"class":227},"\"Lock is this protects Instance\"",[202,1479,231],{"class":208},[202,1481,1482,1484,1486,1488,1491],{"class":204,"line":216},[202,1483,253],{"class":252},[202,1485,256],{"class":252},[202,1487,259],{"class":252},[202,1489,1490],{"class":262}," Example",[202,1492,266],{"class":208},[202,1494,1495,1497,1499,1502,1504,1507],{"class":204,"line":234},[202,1496,272],{"class":252},[202,1498,533],{"class":212},[202,1500,1501],{"class":208}," x ",[202,1503,284],{"class":252},[202,1505,1506],{"class":875}," 1",[202,1508,721],{"class":208},[202,1510,1511,1513,1515],{"class":204,"line":249},[202,1512,272],{"class":252},[202,1514,533],{"class":212},[202,1516,412],{"class":208},[202,1518,1519],{"class":204,"line":269},[202,1520,552],{"emptyLinePlaceholder":7},[202,1522,1523,1525,1528,1530,1533],{"class":204,"line":297},[202,1524,307],{"class":208},[202,1526,1527],{"class":212},"Unique",[202,1529,224],{"class":208},[202,1531,1532],{"class":227},"\"return\"",[202,1534,231],{"class":208},[202,1536,1537,1539,1541,1543,1545,1547],{"class":204,"line":304},[202,1538,339],{"class":252},[202,1540,1490],{"class":290},[202,1542,224],{"class":208},[202,1544,563],{"class":212},[202,1546,362],{"class":353},[202,1548,365],{"class":208},[202,1550,1551,1554,1556,1558],{"class":204,"line":320},[202,1552,1553],{"class":390},"     this",[202,1555,407],{"class":208},[202,1557,284],{"class":252},[202,1559,412],{"class":208},[202,1561,1562],{"class":204,"line":331},[202,1563,446],{"class":208},[202,1565,1566],{"class":204,"line":336},[202,1567,301],{"class":300},[202,1569,1570],{"class":204,"line":368},[202,1571,457],{"class":208},[43,1573,1575],{"id":1574},"documenting-thread-confinement-policies","Documenting Thread-Confinement Policies",[39,1577,1578,1579,1583],{},"Dean Sutherland and William Scherlis propose annotations that can document thread-confinement policies. Their approach allows verification of the annotations against as-written code [ ",[56,1580,1582],{"href":1581},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-aa-references#Rec.AA.References-Sutherland10","Sutherland 2010"," ].",[39,1585,1586],{},"For example, the following annotations express the design intent that a program has, at most, one Abstract Window Toolkit (AWT) event dispatch thread and several compute threads, and that the compute threads are forbidden to handle AWT data structures or events:",[189,1588,1589],{"quality":191},[193,1590,1592],{"className":195,"code":1591,"language":197,"meta":198,"style":198},"@ThreadRole AWT, Compute\n@IncompatibleThreadRoles AWT, Compute\n@MaxRoleCount AWT 1\n",[164,1593,1594,1607,1618],{"__ignoreMap":198},[202,1595,1596,1598,1601,1604],{"class":204,"line":205},[202,1597,827],{"class":208},[202,1599,1600],{"class":212},"ThreadRole",[202,1602,1603],{"class":208}," AWT, ",[202,1605,1606],{"class":277},"Compute\n",[202,1608,1609,1611,1614,1616],{"class":204,"line":216},[202,1610,827],{"class":208},[202,1612,1613],{"class":212},"IncompatibleThreadRoles",[202,1615,1603],{"class":208},[202,1617,1606],{"class":277},[202,1619,1620,1622,1625,1628],{"class":204,"line":234},[202,1621,827],{"class":208},[202,1623,1624],{"class":212},"MaxRoleCount",[202,1626,1627],{"class":208}," AWT ",[202,1629,1630],{"class":875},"1\n",[43,1632,1634],{"id":1633},"documenting-wait-notify-protocols","Documenting Wait-Notify Protocols",[39,1636,1637,1638,659],{},"According to Goetz and colleagues [ ",[56,1639,59],{"href":58},[661,1641,1642],{},[39,1643,1644],{},"A state-dependent class should either fully expose (and document) its waiting and notification protocols to subclasses, or prevent subclasses from participating in them at all. (This is an extension of \"design and document for inheritance, or else prohibit it\" [EJ Item 15].) At the very least, designing a state-dependent class for inheritance requires exposing the condition queues and locks and documenting the condition predicates and synchronization policy; it may also require exposing the underlying state variables. (The worst thing a state-dependent class can do is expose its state to subclasses but not document its protocols for waiting and notification; this is like a class exposing its state variables but not documenting its invariants.) (p. 395)",[39,1646,1647],{},"Wait-notify protocols should be documented adequately. Currently, we are not aware of any annotations for this purpose.",[43,1649,1651],{"id":1650},"applicability","Applicability",[39,1653,1654],{},"Annotating concurrent code helps document the design intent and can be used to automate the detection and prevention of race conditions and data races.",[43,1656,1658],{"id":1657},"automated-detection","Automated Detection",[1660,1661,1662,1681],"table",{},[1663,1664,1665],"thead",{},[1666,1667,1668,1672,1675,1678],"tr",{},[1669,1670,1671],"th",{},"Tool",[1669,1673,1674],{},"Version",[1669,1676,1677],{},"Checker",[1669,1679,1680],{},"Description",[1682,1683,1684],"tbody",{},[1666,1685,1686,1693,1696,1702],{},[1687,1688,1689],"td",{},[56,1690,1692],{"href":1691},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fthe-checker-framework","The Checker Framework",[1687,1694,1695],{},"2.1.3",[1687,1697,1698],{},[1699,1700,1701],"strong",{},"GUI Effect Checker",[1687,1703,1704],{},"Ensure that non-GUI threads do not access the UI which would crash the application (see Chapter 14)",[43,1706,1708],{"id":1707},"bibliography","Bibliography",[1660,1710,1711,1719],{},[1663,1712,1713],{},[1666,1714,1715,1717],{},[1669,1716],{},[1669,1718],{},[1682,1720,1721,1732,1742],{},[1666,1722,1723,1729],{},[1687,1724,1725,1726,1728],{},"[ ",[56,1727,658],{"href":657}," ]",[1687,1730,1731],{},"Item 70, \"Document Thread Safety\"",[1666,1733,1734,1738],{},[1687,1735,1725,1736,1728],{},[56,1737,59],{"href":58},[1687,1739,1740],{},[51,1741,53],{},[1666,1743,1744,1748],{},[1687,1745,1725,1746,1728],{},[56,1747,1582],{"href":1581},[1687,1749,1750],{},[56,1751,1754],{"href":1752,"rel":1753},"http:\u002F\u002Fportal.acm.org\u002Fcitation.cfm?doid=1693453.1693485",[65],"Composable Thread Coloring",[1756,1757],"hr",{},[39,1759,1760,133,1767,133,1773],{},[56,1761,1763],{"href":1762},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon51-j",[1764,1765],"img",{"src":1766},"\u002Fattachments\u002F88487545\u002F88873873.png",[56,1768,1770],{"href":1769},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002F",[1764,1771],{"src":1772},"\u002Fattachments\u002F88487545\u002F88873874.png",[56,1774,1776],{"href":1775},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002F",[1764,1777],{"src":1778},"\u002Fattachments\u002F88487545\u002F88873875.png",[1780,1781,1782],"style",{},"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 .sstjo, html code.shiki .sstjo{--shiki-default:#032F62;--shiki-dark:#9ECBFF;--shiki-sepia:#E6DB74}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 .sk8M1, html code.shiki .sk8M1{--shiki-default:#24292E;--shiki-default-font-style:inherit;--shiki-dark:#E1E4E8;--shiki-dark-font-style:inherit;--shiki-sepia:#66D9EF;--shiki-sepia-font-style:italic}html pre.shiki code .srTi1, html code.shiki .srTi1{--shiki-default:#6F42C1;--shiki-dark:#B392F0;--shiki-sepia:#A6E22E}html pre.shiki code .s8-w5, html code.shiki .s8-w5{--shiki-default:#6A737D;--shiki-dark:#6A737D;--shiki-sepia:#88846F}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 .sP7S_, html code.shiki .sP7S_{--shiki-default:#005CC5;--shiki-dark:#79B8FF;--shiki-sepia:#FD971F}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 .s-ngx, html code.shiki .s-ngx{--shiki-default:#24292E;--shiki-dark:#E1E4E8;--shiki-sepia:#F92672}html pre.shiki code .st05x, html code.shiki .st05x{--shiki-default:#B31D28;--shiki-default-font-style:italic;--shiki-dark:#FDAEB7;--shiki-dark-font-style:italic;--shiki-sepia:#F44747;--shiki-sepia-font-style:inherit}html pre.shiki code .s7F3e, html code.shiki .s7F3e{--shiki-default:#005CC5;--shiki-dark:#79B8FF;--shiki-sepia:#AE81FF}",{"title":198,"searchDepth":216,"depth":216,"links":1784},[1785,1786,1787,1790,1791,1792,1793,1794],{"id":45,"depth":216,"text":46},{"id":155,"depth":216,"text":156},{"id":767,"depth":216,"text":768,"children":1788},[1789],{"id":1436,"depth":234,"text":1437},{"id":1574,"depth":216,"text":1575},{"id":1633,"depth":216,"text":1634},{"id":1650,"depth":216,"text":1651},{"id":1657,"depth":216,"text":1658},{"id":1707,"depth":216,"text":1708},"md",{"tags":1797},[1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808],"con","android-applicable","review-dms","2defpro","review-dfs","review-dm","nonnormative","recommendation","reviewed-fwl","defensive","tech-edit-done","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon52-j",{"title":30,"description":41},"6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F4.con52-j","exsPQ7hcx1ODBBufSu4BOh9LceZgvHpTPUc3OkfKXYM",[1814,1817],{"title":1815,"path":1762,"stem":1816,"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",{"title":1818,"path":1819,"stem":1820,"children":-1},"Declarations and Initialization (DCL)","\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",[1822],{"title":1823,"path":1824,"stem":1825,"children":1826},"SEI CERT Oracle Coding Standard for Java","\u002Fsei-cert-oracle-coding-standard-for-java","6.sei-cert-oracle-coding-standard-for-java\u002F1.index",[1827,1828,1968,2803,3194,3370],{"title":1823,"path":1824,"stem":1825},{"title":1829,"path":1830,"stem":1831,"children":1832},"Front Matter","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F1.index",[1833,1834,1838,1842,1846,1892,1930],{"title":1829,"path":1830,"stem":1831},{"title":1835,"path":1836,"stem":1837},"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":1839,"path":1840,"stem":1841},"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":1843,"path":1844,"stem":1845},"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":1847,"path":1848,"stem":1849,"children":1850},"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",[1851,1852,1856,1860,1864,1868,1872,1876,1880,1884,1888],{"title":1847,"path":1848,"stem":1849},{"title":1853,"path":1854,"stem":1855},"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":1857,"path":1858,"stem":1859},"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":1861,"path":1862,"stem":1863},"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":1865,"path":1866,"stem":1867},"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":1869,"path":1870,"stem":1871},"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":1873,"path":1874,"stem":1875},"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":1877,"path":1878,"stem":1879},"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":1881,"path":1882,"stem":1883},"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":1885,"path":1886,"stem":1887},"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":1889,"path":1890,"stem":1891},"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":1893,"path":1894,"stem":1895,"children":1896},"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",[1897,1898,1902,1906,1910,1914,1918,1922,1926],{"title":1893,"path":1894,"stem":1895},{"title":1899,"path":1900,"stem":1901},"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":1903,"path":1904,"stem":1905},"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":1907,"path":1908,"stem":1909},"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":1911,"path":1912,"stem":1913},"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":1915,"path":1916,"stem":1917},"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":1919,"path":1920,"stem":1921},"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":1923,"path":1924,"stem":1925},"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":1927,"path":1928,"stem":1929},"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":1931,"path":1932,"stem":1933,"children":1934},"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",[1935,1936,1939,1942,1945,1949,1952,1955,1958,1961,1965],{"title":1931,"path":1932,"stem":1933},{"title":1853,"path":1937,"stem":1938},"\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":1857,"path":1940,"stem":1941},"\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":1861,"path":1943,"stem":1944},"\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":1946,"path":1947,"stem":1948},"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":1869,"path":1950,"stem":1951},"\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":1873,"path":1953,"stem":1954},"\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":1877,"path":1956,"stem":1957},"\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":1881,"path":1959,"stem":1960},"\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":1962,"path":1963,"stem":1964},"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":1889,"path":1966,"stem":1967},"\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":1969,"path":1970,"stem":1971,"children":1972},"Rules","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F01.index",[1973,1974,1978,2004,2021,2067,2105,2179,2233,2259,2313,2375,2429,2487,2549,2599,2639,2697,2727,2753,2773],{"title":1969,"path":1970,"stem":1971},{"title":1975,"path":1976,"stem":1977},"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":1979,"path":1980,"stem":1981,"children":1982},"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",[1983,1984,1988,1992,1996,2000],{"title":1979,"path":1980,"stem":1981},{"title":1985,"path":1986,"stem":1987},"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":1989,"path":1990,"stem":1991},"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":1993,"path":1994,"stem":1995},"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":1997,"path":1998,"stem":1999},"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":2001,"path":2002,"stem":2003},"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":1818,"path":2005,"stem":2006,"children":2007},"\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",[2008,2009,2013,2017],{"title":1818,"path":2005,"stem":2006},{"title":2010,"path":2011,"stem":2012},"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":2014,"path":2015,"stem":2016},"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":2018,"path":2019,"stem":2020},"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":2022,"path":2023,"stem":2024,"children":2025},"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",[2026,2027,2031,2035,2039,2043,2047,2051,2055,2059,2063],{"title":2022,"path":2023,"stem":2024},{"title":2028,"path":2029,"stem":2030},"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":2032,"path":2033,"stem":2034},"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":2036,"path":2037,"stem":2038},"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":2040,"path":2041,"stem":2042},"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":2044,"path":2045,"stem":2046},"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":2048,"path":2049,"stem":2050},"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":2052,"path":2053,"stem":2054},"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":2056,"path":2057,"stem":2058},"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":2060,"path":2061,"stem":2062},"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":2064,"path":2065,"stem":2066},"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":2068,"path":2069,"stem":2070,"children":2071},"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",[2072,2073,2077,2081,2085,2089,2093,2097,2101],{"title":2068,"path":2069,"stem":2070},{"title":2074,"path":2075,"stem":2076},"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":2078,"path":2079,"stem":2080},"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":2082,"path":2083,"stem":2084},"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":2086,"path":2087,"stem":2088},"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":2090,"path":2091,"stem":2092},"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":2094,"path":2095,"stem":2096},"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":2098,"path":2099,"stem":2100},"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":2102,"path":2103,"stem":2104},"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":2106,"path":2107,"stem":2108,"children":2109},"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",[2110,2111,2115,2119,2123,2127,2131,2135,2139,2143,2147,2151,2155,2159,2163,2167,2171,2175],{"title":2106,"path":2107,"stem":2108},{"title":2112,"path":2113,"stem":2114},"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":2116,"path":2117,"stem":2118},"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":2120,"path":2121,"stem":2122},"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":2124,"path":2125,"stem":2126},"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":2128,"path":2129,"stem":2130},"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":2132,"path":2133,"stem":2134},"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":2136,"path":2137,"stem":2138},"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":2140,"path":2141,"stem":2142},"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":2144,"path":2145,"stem":2146},"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":2148,"path":2149,"stem":2150},"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":2152,"path":2153,"stem":2154},"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":2156,"path":2157,"stem":2158},"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":2160,"path":2161,"stem":2162},"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":2164,"path":2165,"stem":2166},"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":2168,"path":2169,"stem":2170},"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":2172,"path":2173,"stem":2174},"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":2176,"path":2177,"stem":2178},"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":2180,"path":2181,"stem":2182,"children":2183},"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",[2184,2185,2189,2193,2197,2201,2205,2209,2213,2217,2221,2225,2229],{"title":2180,"path":2181,"stem":2182},{"title":2186,"path":2187,"stem":2188},"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":2190,"path":2191,"stem":2192},"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":2194,"path":2195,"stem":2196},"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":2198,"path":2199,"stem":2200},"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":2202,"path":2203,"stem":2204},"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":2206,"path":2207,"stem":2208},"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":2210,"path":2211,"stem":2212},"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":2214,"path":2215,"stem":2216},"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":2218,"path":2219,"stem":2220},"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":2222,"path":2223,"stem":2224},"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":2226,"path":2227,"stem":2228},"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":2230,"path":2231,"stem":2232},"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":2234,"path":2235,"stem":2236,"children":2237},"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",[2238,2239,2243,2247,2251,2255],{"title":2234,"path":2235,"stem":2236},{"title":2240,"path":2241,"stem":2242},"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":2244,"path":2245,"stem":2246},"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":2248,"path":2249,"stem":2250},"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":2252,"path":2253,"stem":2254},"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":2256,"path":2257,"stem":2258},"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":2260,"path":2261,"stem":2262,"children":2263},"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",[2264,2265,2269,2273,2277,2281,2285,2289,2293,2297,2301,2305,2309],{"title":2260,"path":2261,"stem":2262},{"title":2266,"path":2267,"stem":2268},"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":2270,"path":2271,"stem":2272},"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":2274,"path":2275,"stem":2276},"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":2278,"path":2279,"stem":2280},"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":2282,"path":2283,"stem":2284},"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":2286,"path":2287,"stem":2288},"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":2290,"path":2291,"stem":2292},"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":2294,"path":2295,"stem":2296},"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":2298,"path":2299,"stem":2300},"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":2302,"path":2303,"stem":2304},"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":2306,"path":2307,"stem":2308},"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":2310,"path":2311,"stem":2312},"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":2314,"path":2315,"stem":2316,"children":2317},"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",[2318,2319,2323,2327,2331,2335,2339,2343,2347,2351,2355,2359,2363,2367,2371],{"title":2314,"path":2315,"stem":2316},{"title":2320,"path":2321,"stem":2322},"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":2324,"path":2325,"stem":2326},"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":2328,"path":2329,"stem":2330},"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":2332,"path":2333,"stem":2334},"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":2336,"path":2337,"stem":2338},"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":2340,"path":2341,"stem":2342},"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":2344,"path":2345,"stem":2346},"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":2348,"path":2349,"stem":2350},"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":2352,"path":2353,"stem":2354},"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":2356,"path":2357,"stem":2358},"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":2360,"path":2361,"stem":2362},"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":2364,"path":2365,"stem":2366},"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":2368,"path":2369,"stem":2370},"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":2372,"path":2373,"stem":2374},"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":2376,"path":2377,"stem":2378,"children":2379},"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",[2380,2381,2385,2389,2393,2397,2401,2405,2409,2413,2417,2421,2425],{"title":2376,"path":2377,"stem":2378},{"title":2382,"path":2383,"stem":2384},"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":2386,"path":2387,"stem":2388},"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":2390,"path":2391,"stem":2392},"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":2394,"path":2395,"stem":2396},"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":2398,"path":2399,"stem":2400},"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":2402,"path":2403,"stem":2404},"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":2406,"path":2407,"stem":2408},"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":2410,"path":2411,"stem":2412},"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":2414,"path":2415,"stem":2416},"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":2418,"path":2419,"stem":2420},"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":2422,"path":2423,"stem":2424},"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":2426,"path":2427,"stem":2428},"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":2430,"path":2431,"stem":2432,"children":2433},"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",[2434,2435,2439,2443,2447,2451,2455,2459,2463,2467,2471,2475,2479,2483],{"title":2430,"path":2431,"stem":2432},{"title":2436,"path":2437,"stem":2438},"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":2440,"path":2441,"stem":2442},"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":2444,"path":2445,"stem":2446},"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":2448,"path":2449,"stem":2450},"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":2452,"path":2453,"stem":2454},"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":2456,"path":2457,"stem":2458},"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":2460,"path":2461,"stem":2462},"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":2464,"path":2465,"stem":2466},"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":2468,"path":2469,"stem":2470},"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":2472,"path":2473,"stem":2474},"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":2476,"path":2477,"stem":2478},"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":2480,"path":2481,"stem":2482},"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":2484,"path":2485,"stem":2486},"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":2488,"path":2489,"stem":2490,"children":2491},"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",[2492,2493,2497,2501,2505,2509,2513,2517,2521,2525,2529,2533,2537,2541,2545],{"title":2488,"path":2489,"stem":2490},{"title":2494,"path":2495,"stem":2496},"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":2498,"path":2499,"stem":2500},"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":2502,"path":2503,"stem":2504},"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":2506,"path":2507,"stem":2508},"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":2510,"path":2511,"stem":2512},"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":2514,"path":2515,"stem":2516},"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":2518,"path":2519,"stem":2520},"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":2522,"path":2523,"stem":2524},"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":2526,"path":2527,"stem":2528},"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":2530,"path":2531,"stem":2532},"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":2534,"path":2535,"stem":2536},"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":2538,"path":2539,"stem":2540},"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":2542,"path":2543,"stem":2544},"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":2546,"path":2547,"stem":2548},"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":2550,"path":2551,"stem":2552,"children":2553},"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",[2554,2555,2559,2563,2567,2571,2575,2579,2583,2587,2591,2595],{"title":2550,"path":2551,"stem":2552},{"title":2556,"path":2557,"stem":2558},"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":2560,"path":2561,"stem":2562},"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":2564,"path":2565,"stem":2566},"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":2568,"path":2569,"stem":2570},"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":2572,"path":2573,"stem":2574},"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":2576,"path":2577,"stem":2578},"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":2580,"path":2581,"stem":2582},"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":2584,"path":2585,"stem":2586},"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":2588,"path":2589,"stem":2590},"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":2592,"path":2593,"stem":2594},"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":2596,"path":2597,"stem":2598},"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":2600,"path":2601,"stem":2602,"children":2603},"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",[2604,2605,2609,2613,2617,2627,2631,2635],{"title":2600,"path":2601,"stem":2602},{"title":2606,"path":2607,"stem":2608},"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":2610,"path":2611,"stem":2612},"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":2614,"path":2615,"stem":2616},"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":2618,"path":2619,"stem":2620,"children":2621},"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",[2622,2623],{"title":2618,"path":2619,"stem":2620},{"title":2624,"path":2625,"stem":2626},"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":2628,"path":2629,"stem":2630},"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":2632,"path":2633,"stem":2634},"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":2636,"path":2637,"stem":2638},"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":2640,"path":2641,"stem":2642,"children":2643},"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",[2644,2645,2649,2653,2657,2661,2665,2669,2673,2677,2681,2685,2689,2693],{"title":2640,"path":2641,"stem":2642},{"title":2646,"path":2647,"stem":2648},"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":2650,"path":2651,"stem":2652},"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":2654,"path":2655,"stem":2656},"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":2658,"path":2659,"stem":2660},"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":2662,"path":2663,"stem":2664},"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":2666,"path":2667,"stem":2668},"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":2670,"path":2671,"stem":2672},"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":2674,"path":2675,"stem":2676},"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":2678,"path":2679,"stem":2680},"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":2682,"path":2683,"stem":2684},"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":2686,"path":2687,"stem":2688},"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":2690,"path":2691,"stem":2692},"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":2694,"path":2695,"stem":2696},"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":2698,"path":2699,"stem":2700,"children":2701},"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",[2702,2703,2707,2711,2715,2719,2723],{"title":2698,"path":2699,"stem":2700},{"title":2704,"path":2705,"stem":2706},"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":2708,"path":2709,"stem":2710},"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":2712,"path":2713,"stem":2714},"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":2716,"path":2717,"stem":2718},"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":2720,"path":2721,"stem":2722},"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":2724,"path":2725,"stem":2726},"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":2728,"path":2729,"stem":2730,"children":2731},"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",[2732,2733,2737,2741,2745,2749],{"title":2728,"path":2729,"stem":2730},{"title":2734,"path":2735,"stem":2736},"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":2738,"path":2739,"stem":2740},"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":2742,"path":2743,"stem":2744},"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":2746,"path":2747,"stem":2748},"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":2750,"path":2751,"stem":2752},"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":2754,"path":2755,"stem":2756,"children":2757},"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",[2758,2759,2763,2765,2769],{"title":2754,"path":2755,"stem":2756},{"title":2760,"path":2761,"stem":2762},"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":1448,"path":1447,"stem":2764},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F3.tsm01-j",{"title":2766,"path":2767,"stem":2768},"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":2770,"path":2771,"stem":2772},"TSM03-J. Do not publish partially initialized objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F5.tsm03-j",{"title":2774,"path":2775,"stem":2776,"children":2777},"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",[2778,2779,2783,2787,2791,2795,2799],{"title":2774,"path":2775,"stem":2776},{"title":2780,"path":2781,"stem":2782},"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":2784,"path":2785,"stem":2786},"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":2788,"path":2789,"stem":2790},"VNA02-J. Ensure that compound operations on shared variables are atomic","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F4.vna02-j",{"title":2792,"path":2793,"stem":2794},"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":2796,"path":2797,"stem":2798},"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":2800,"path":2801,"stem":2802},"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":2804,"path":2805,"stem":2806,"children":2807},"Recommendations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F01.index",[2808,2809,2822,2834,2885,2910,2939,2960,2993,3026,3087,3112,3153],{"title":2804,"path":2805,"stem":2806},{"title":1979,"path":2810,"stem":2811,"children":2812},"\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",[2813,2814,2818],{"title":1979,"path":2810,"stem":2811},{"title":2815,"path":2816,"stem":2817},"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":2819,"path":2820,"stem":2821},"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":2823,"path":2824,"stem":2825,"children":2826},"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",[2827,2828,2832,2833],{"title":2823,"path":2824,"stem":2825},{"title":2829,"path":2830,"stem":2831},"CON50-J. Do not assume that declaring a reference volatile guarantees safe publication of the members of the referenced object","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F2.con50-j",{"title":1815,"path":1762,"stem":1816},{"title":30,"path":1809,"stem":1811},{"title":1818,"path":1819,"stem":1820,"children":2835},[2836,2837,2841,2845,2849,2853,2857,2861,2865,2869,2873,2877,2881],{"title":1818,"path":1819,"stem":1820},{"title":2838,"path":2839,"stem":2840},"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":2842,"path":2843,"stem":2844},"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":2846,"path":2847,"stem":2848},"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":2850,"path":2851,"stem":2852},"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":2854,"path":2855,"stem":2856},"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":2858,"path":2859,"stem":2860},"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":2862,"path":2863,"stem":2864},"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":2866,"path":2867,"stem":2868},"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":2870,"path":2871,"stem":2872},"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":2874,"path":2875,"stem":2876},"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":2878,"path":2879,"stem":2880},"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":2882,"path":2883,"stem":2884},"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":2022,"path":2886,"stem":2887,"children":2888},"\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",[2889,2890,2894,2898,2902,2906],{"title":2022,"path":2886,"stem":2887},{"title":2891,"path":2892,"stem":2893},"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":2895,"path":2896,"stem":2897},"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":2899,"path":2900,"stem":2901},"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":2903,"path":2904,"stem":2905},"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":2907,"path":2908,"stem":2909},"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":2068,"path":2911,"stem":2912,"children":2913},"\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",[2914,2915,2919,2923,2927,2931,2935],{"title":2068,"path":2911,"stem":2912},{"title":2916,"path":2917,"stem":2918},"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":2920,"path":2921,"stem":2922},"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":2924,"path":2925,"stem":2926},"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":2928,"path":2929,"stem":2930},"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":2932,"path":2933,"stem":2934},"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":2936,"path":2937,"stem":2938},"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":2106,"path":2940,"stem":2941,"children":2942},"\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",[2943,2944,2948,2952,2956],{"title":2106,"path":2940,"stem":2941},{"title":2945,"path":2946,"stem":2947},"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":2949,"path":2950,"stem":2951},"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":2953,"path":2954,"stem":2955},"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":2957,"path":2958,"stem":2959},"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":2180,"path":2961,"stem":2962,"children":2963},"\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",[2964,2965,2969,2973,2977,2981,2985,2989],{"title":2180,"path":2961,"stem":2962},{"title":2966,"path":2967,"stem":2968},"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":2970,"path":2971,"stem":2972},"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":2974,"path":2975,"stem":2976},"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":2978,"path":2979,"stem":2980},"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":2982,"path":2983,"stem":2984},"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":2986,"path":2987,"stem":2988},"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":2990,"path":2991,"stem":2992},"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":2314,"path":2994,"stem":2995,"children":2996},"\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",[2997,2998,3002,3006,3010,3014,3018,3022],{"title":2314,"path":2994,"stem":2995},{"title":2999,"path":3000,"stem":3001},"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":3003,"path":3004,"stem":3005},"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":3007,"path":3008,"stem":3009},"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":3011,"path":3012,"stem":3013},"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":3015,"path":3016,"stem":3017},"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":3019,"path":3020,"stem":3021},"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":3023,"path":3024,"stem":3025},"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":2376,"path":3027,"stem":3028,"children":3029},"\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",[3030,3031,3035,3039,3043,3047,3051,3055,3059,3063,3067,3071,3075,3079,3083],{"title":2376,"path":3027,"stem":3028},{"title":3032,"path":3033,"stem":3034},"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":3036,"path":3037,"stem":3038},"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":3040,"path":3041,"stem":3042},"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":3044,"path":3045,"stem":3046},"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":3048,"path":3049,"stem":3050},"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":3052,"path":3053,"stem":3054},"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":3056,"path":3057,"stem":3058},"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":3060,"path":3061,"stem":3062},"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":3064,"path":3065,"stem":3066},"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":3068,"path":3069,"stem":3070},"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":3072,"path":3073,"stem":3074},"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":3076,"path":3077,"stem":3078},"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":3080,"path":3081,"stem":3082},"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":3084,"path":3085,"stem":3086},"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":2430,"path":3088,"stem":3089,"children":3090},"\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",[3091,3092,3096,3100,3104,3108],{"title":2430,"path":3088,"stem":3089},{"title":3093,"path":3094,"stem":3095},"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":3097,"path":3098,"stem":3099},"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":3101,"path":3102,"stem":3103},"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":3105,"path":3106,"stem":3107},"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":3109,"path":3110,"stem":3111},"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":2488,"path":3113,"stem":3114,"children":3115},"\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",[3116,3117,3121,3125,3129,3133,3137,3141,3145,3149],{"title":2488,"path":3113,"stem":3114},{"title":3118,"path":3119,"stem":3120},"OBJ50-J. Never confuse the immutability of a reference with that of the referenced object","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F02.obj50-j",{"title":3122,"path":3123,"stem":3124},"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":3126,"path":3127,"stem":3128},"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":3130,"path":3131,"stem":3132},"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":3134,"path":3135,"stem":3136},"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":3138,"path":3139,"stem":3140},"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":3142,"path":3143,"stem":3144},"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":3146,"path":3147,"stem":3148},"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":3150,"path":3151,"stem":3152},"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":2550,"path":3154,"stem":3155,"children":3156},"\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",[3157,3158,3162,3166,3170,3174,3178,3182,3186,3190],{"title":2550,"path":3154,"stem":3155},{"title":3159,"path":3160,"stem":3161},"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":3163,"path":3164,"stem":3165},"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":3167,"path":3168,"stem":3169},"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":3171,"path":3172,"stem":3173},"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":3175,"path":3176,"stem":3177},"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":3179,"path":3180,"stem":3181},"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":3183,"path":3184,"stem":3185},"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":3187,"path":3188,"stem":3189},"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":3191,"path":3192,"stem":3193},"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":3195,"path":3196,"stem":3197,"children":3198},"Back Matter","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F1.index",[3199,3200,3204,3208,3212,3216,3340,3366],{"title":3195,"path":3196,"stem":3197},{"title":3201,"path":3202,"stem":3203},"Rec. AA. References","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-aa-references","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F2.rec-aa-references",{"title":3205,"path":3206,"stem":3207},"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":3209,"path":3210,"stem":3211},"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":3213,"path":3214,"stem":3215},"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":3217,"path":3218,"stem":3219,"children":3220},"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",[3221,3222,3226,3230,3234,3238,3242,3246,3250,3254,3258,3262,3266,3270,3274,3278,3282,3286,3290,3294,3298,3302,3306,3310,3314,3318,3322,3326,3328,3332,3336],{"title":3217,"path":3218,"stem":3219},{"title":3223,"path":3224,"stem":3225},"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":3227,"path":3228,"stem":3229},"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":3231,"path":3232,"stem":3233},"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":3235,"path":3236,"stem":3237},"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":3239,"path":3240,"stem":3241},"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":3243,"path":3244,"stem":3245},"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":3247,"path":3248,"stem":3249},"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":3251,"path":3252,"stem":3253},"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":3255,"path":3256,"stem":3257},"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":3259,"path":3260,"stem":3261},"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":3263,"path":3264,"stem":3265},"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":3267,"path":3268,"stem":3269},"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":3271,"path":3272,"stem":3273},"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":3275,"path":3276,"stem":3277},"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":3279,"path":3280,"stem":3281},"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":3283,"path":3284,"stem":3285},"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":3287,"path":3288,"stem":3289},"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":3291,"path":3292,"stem":3293},"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":3295,"path":3296,"stem":3297},"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":3299,"path":3300,"stem":3301},"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":3303,"path":3304,"stem":3305},"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":3307,"path":3308,"stem":3309},"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":3311,"path":3312,"stem":3313},"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":3315,"path":3316,"stem":3317},"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":3319,"path":3320,"stem":3321},"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":3323,"path":3324,"stem":3325},"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":1692,"path":1691,"stem":3327},"6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F28.the-checker-framework",{"title":3329,"path":3330,"stem":3331},"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":3333,"path":3334,"stem":3335},"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":3337,"path":3338,"stem":3339},"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":3341,"path":3342,"stem":3343,"children":3344},"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",[3345,3346,3350,3354,3358,3362],{"title":3341,"path":3342,"stem":3343},{"title":3347,"path":3348,"stem":3349},"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":3351,"path":3352,"stem":3353},"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":3355,"path":3356,"stem":3357},"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":3359,"path":3360,"stem":3361},"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":3363,"path":3364,"stem":3365},"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":3367,"path":3368,"stem":3369},"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":3371,"path":3372,"stem":3373,"children":3374},"Admin","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F1.index",[3375,3376,3380,3384,3388,3392],{"title":3371,"path":3372,"stem":3373},{"title":3377,"path":3378,"stem":3379},"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":3381,"path":3382,"stem":3383},"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":3385,"path":3386,"stem":3387},"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":3389,"path":3390,"stem":3391},"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":3389,"path":3390,"stem":3393},"6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F6.todo-list",1775657802218]