[{"data":1,"prerenderedAt":4239},["ShallowReactive",2],{"global-navigation":3,"page-\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj02-j":28,"surround-\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj02-j":2657,"sidebar-sei-cert-oracle-coding-standard-for-java":2664},[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":2643,"extension":2644,"meta":2645,"navigation":7,"path":2653,"seo":2654,"stem":2655,"__hash__":2656},"content\u002F6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F03.obj02-j.md","OBJ02-J. Preserve dependencies in subclasses when changing superclasses",{"type":32,"value":33,"toc":2629},"minimark",[34,38,53,58,73,534,557,824,830,921,925,934,993,996,1004,1049,1436,1460,1493,1510,1564,1592,1606,1609,1615,1658,2284,2343,2347,2353,2419,2424,2427,2431,2469,2507,2511,2536,2540,2601,2604,2625],[35,36,30],"h1",{"id":37},"obj02-j-preserve-dependencies-in-subclasses-when-changing-superclasses",[39,40,41,42,47,48,52],"p",{},"Developers often separate program logic across multiple classes or files to modularize code and to increase reusability. When developers modify a superclass (during maintenance, for example), the developer must ensure that changes in superclasses preserve all the program ",[43,44,46],"a",{"href":45},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-invariant","invariants"," on which the subclasses depend. Failure to maintain all relevant invariants can cause security ",[43,49,51],{"href":50},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-vulnerabi","vulnerabilities"," .",[54,55,57],"h2",{"id":56},"noncompliant-code-example","Noncompliant Code Example",[39,59,60,61,65,66,69,70,72],{},"In this code example, a class ",[62,63,64],"code",{},"Account"," stores banking-related information without any inherent security. Security is delegated to the subclass ",[62,67,68],{},"BankAccount"," . The client application is required to use ",[62,71,68],{}," because it contains the security mechanism.",[74,75,77],"code-block",{"quality":76},"good",[78,79,84],"pre",{"className":80,"code":81,"language":82,"meta":83,"style":83},"language-java shiki shiki-themes github-light github-dark monokai","class Account { \n  \u002F\u002F Maintains all banking-related data such as account balance\n  private double balance = 100;\n\n  boolean withdraw(double amount) {\n    if ((balance - amount) >= 0) {\n      balance -= amount;\n      System.out.println(\"Withdrawal successful. The balance is : \"\n                         + balance);\n      return true;\n    }\n    return false;\n  }\n}\n\npublic class BankAccount extends Account { \n  \u002F\u002F Subclass handles authentication\n  @Override boolean withdraw(double amount) {\n    if (!securityCheck()) {\n      throw new IllegalAccessException();\n    }\n    return super.withdraw(amount);\n  }\n\n  private final boolean securityCheck() {\n    \u002F\u002F Check that account management may proceed\n  }\n}\n\npublic class Client {\n  public static void main(String[] args) {\n    Account account = new BankAccount();\n    \u002F\u002F Enforce security manager check\n    boolean result = account.withdraw(200.0);   \n    System.out.println(\"Withdrawal successful? \" + result);\n  }\n}\n","java","",[62,85,86,103,110,133,139,162,185,197,212,221,232,238,249,255,261,266,286,292,314,331,346,351,369,374,379,395,401,406,411,416,429,457,475,481,505,524,529],{"__ignoreMap":83},[87,88,91,95,99],"span",{"class":89,"line":90},"line",1,[87,92,94],{"class":93},"sC2Qs","class",[87,96,98],{"class":97},"sz2Vg"," Account",[87,100,102],{"class":101},"sMOD_"," { \n",[87,104,106],{"class":89,"line":105},2,[87,107,109],{"class":108},"s8-w5","  \u002F\u002F Maintains all banking-related data such as account balance\n",[87,111,113,116,120,123,126,130],{"class":89,"line":112},3,[87,114,115],{"class":93},"  private",[87,117,119],{"class":118},"sq6CD"," double",[87,121,122],{"class":101}," balance ",[87,124,125],{"class":93},"=",[87,127,129],{"class":128},"s7F3e"," 100",[87,131,132],{"class":101},";\n",[87,134,136],{"class":89,"line":135},4,[87,137,138],{"emptyLinePlaceholder":7},"\n",[87,140,142,145,149,152,155,159],{"class":89,"line":141},5,[87,143,144],{"class":118},"  boolean",[87,146,148],{"class":147},"srTi1"," withdraw",[87,150,151],{"class":101},"(",[87,153,154],{"class":118},"double",[87,156,158],{"class":157},"sTHNf"," amount",[87,160,161],{"class":101},") {\n",[87,163,165,168,171,174,177,180,183],{"class":89,"line":164},6,[87,166,167],{"class":93},"    if",[87,169,170],{"class":101}," ((balance ",[87,172,173],{"class":93},"-",[87,175,176],{"class":101}," amount) ",[87,178,179],{"class":93},">=",[87,181,182],{"class":128}," 0",[87,184,161],{"class":101},[87,186,188,191,194],{"class":89,"line":187},7,[87,189,190],{"class":101},"      balance ",[87,192,193],{"class":93},"-=",[87,195,196],{"class":101}," amount;\n",[87,198,200,203,206,208],{"class":89,"line":199},8,[87,201,202],{"class":101},"      System.out.",[87,204,205],{"class":147},"println",[87,207,151],{"class":101},[87,209,211],{"class":210},"sstjo","\"Withdrawal successful. The balance is : \"\n",[87,213,215,218],{"class":89,"line":214},9,[87,216,217],{"class":93},"                         +",[87,219,220],{"class":101}," balance);\n",[87,222,224,227,230],{"class":89,"line":223},10,[87,225,226],{"class":93},"      return",[87,228,229],{"class":128}," true",[87,231,132],{"class":101},[87,233,235],{"class":89,"line":234},11,[87,236,237],{"class":101},"    }\n",[87,239,241,244,247],{"class":89,"line":240},12,[87,242,243],{"class":93},"    return",[87,245,246],{"class":128}," false",[87,248,132],{"class":101},[87,250,252],{"class":89,"line":251},13,[87,253,254],{"class":101},"  }\n",[87,256,258],{"class":89,"line":257},14,[87,259,260],{"class":101},"}\n",[87,262,264],{"class":89,"line":263},15,[87,265,138],{"emptyLinePlaceholder":7},[87,267,269,272,275,278,281,284],{"class":89,"line":268},16,[87,270,271],{"class":93},"public",[87,273,274],{"class":93}," class",[87,276,277],{"class":97}," BankAccount",[87,279,280],{"class":93}," extends",[87,282,98],{"class":283},"s30JN",[87,285,102],{"class":101},[87,287,289],{"class":89,"line":288},17,[87,290,291],{"class":108},"  \u002F\u002F Subclass handles authentication\n",[87,293,295,298,301,304,306,308,310,312],{"class":89,"line":294},18,[87,296,297],{"class":101},"  @",[87,299,300],{"class":118},"Override",[87,302,303],{"class":118}," boolean",[87,305,148],{"class":147},[87,307,151],{"class":101},[87,309,154],{"class":118},[87,311,158],{"class":157},[87,313,161],{"class":101},[87,315,317,319,322,325,328],{"class":89,"line":316},19,[87,318,167],{"class":93},[87,320,321],{"class":101}," (",[87,323,324],{"class":93},"!",[87,326,327],{"class":147},"securityCheck",[87,329,330],{"class":101},"()) {\n",[87,332,334,337,340,343],{"class":89,"line":333},20,[87,335,336],{"class":93},"      throw",[87,338,339],{"class":93}," new",[87,341,342],{"class":147}," IllegalAccessException",[87,344,345],{"class":101},"();\n",[87,347,349],{"class":89,"line":348},21,[87,350,237],{"class":101},[87,352,354,356,360,363,366],{"class":89,"line":353},22,[87,355,243],{"class":93},[87,357,359],{"class":358},"sP7S_"," super",[87,361,362],{"class":101},".",[87,364,365],{"class":147},"withdraw",[87,367,368],{"class":101},"(amount);\n",[87,370,372],{"class":89,"line":371},23,[87,373,254],{"class":101},[87,375,377],{"class":89,"line":376},24,[87,378,138],{"emptyLinePlaceholder":7},[87,380,382,384,387,389,392],{"class":89,"line":381},25,[87,383,115],{"class":93},[87,385,386],{"class":93}," final",[87,388,303],{"class":118},[87,390,391],{"class":147}," securityCheck",[87,393,394],{"class":101},"() {\n",[87,396,398],{"class":89,"line":397},26,[87,399,400],{"class":108},"    \u002F\u002F Check that account management may proceed\n",[87,402,404],{"class":89,"line":403},27,[87,405,254],{"class":101},[87,407,409],{"class":89,"line":408},28,[87,410,260],{"class":101},[87,412,414],{"class":89,"line":413},29,[87,415,138],{"emptyLinePlaceholder":7},[87,417,419,421,423,426],{"class":89,"line":418},30,[87,420,271],{"class":93},[87,422,274],{"class":93},[87,424,425],{"class":97}," Client",[87,427,428],{"class":101}," {\n",[87,430,432,435,438,441,444,446,449,452,455],{"class":89,"line":431},31,[87,433,434],{"class":93},"  public",[87,436,437],{"class":93}," static",[87,439,440],{"class":118}," void",[87,442,443],{"class":147}," main",[87,445,151],{"class":101},[87,447,448],{"class":118},"String",[87,450,451],{"class":101},"[] ",[87,453,454],{"class":157},"args",[87,456,161],{"class":101},[87,458,460,464,467,469,471,473],{"class":89,"line":459},32,[87,461,463],{"class":462},"sk8M1","    Account",[87,465,466],{"class":101}," account ",[87,468,125],{"class":93},[87,470,339],{"class":93},[87,472,277],{"class":147},[87,474,345],{"class":101},[87,476,478],{"class":89,"line":477},33,[87,479,480],{"class":108},"    \u002F\u002F Enforce security manager check\n",[87,482,484,487,490,492,495,497,499,502],{"class":89,"line":483},34,[87,485,486],{"class":118},"    boolean",[87,488,489],{"class":101}," result ",[87,491,125],{"class":93},[87,493,494],{"class":101}," account.",[87,496,365],{"class":147},[87,498,151],{"class":101},[87,500,501],{"class":128},"200.0",[87,503,504],{"class":101},");   \n",[87,506,508,511,513,515,518,521],{"class":89,"line":507},35,[87,509,510],{"class":101},"    System.out.",[87,512,205],{"class":147},[87,514,151],{"class":101},[87,516,517],{"class":210},"\"Withdrawal successful? \"",[87,519,520],{"class":93}," +",[87,522,523],{"class":101}," result);\n",[87,525,527],{"class":89,"line":526},36,[87,528,254],{"class":101},[87,530,532],{"class":89,"line":531},37,[87,533,260],{"class":101},[39,535,536,537,539,540,543,544,546,547,549,550,552,553,556],{},"At a later date, the maintainer of the ",[62,538,64],{}," class added a new method called ",[62,541,542],{},"overdraft()"," . However, the ",[62,545,68],{}," class maintainer was unaware of the change. Consequently, the client application became vulnerable to malicious invocations. For example, the ",[62,548,542],{}," method could be invoked directly on a ",[62,551,68],{}," object, avoiding the security checks that should have been present. The following noncompliant code example shows this ",[43,554,555],{"href":50},"vulnerability"," :",[74,558,560],{"quality":559},"bad",[78,561,563],{"className":80,"code":562,"language":82,"meta":83,"style":83},"class Account { \n  \u002F\u002F Maintains all banking-related data such as account balance\n  private double balance = 100;\n\n  boolean overdraft() {\n    balance += 300;     \u002F\u002F Add 300 in case there is an overdraft\n    System.out.println(\"Added back-up amount. The balance is :\" \n                       + balance);\n    return true;\n  }\n\n  \u002F\u002F Other Account methods\n}\n\npublic class BankAccount extends Account { \n  \u002F\u002F Subclass handles authentication\n  \u002F\u002F NOTE: unchanged from previous version\n  \u002F\u002F NOTE: lacks override of overdraft method\n}\n\npublic class Client {\n  public static void main(String[] args) {\n    Account account = new BankAccount();\n    \u002F\u002F Enforce security manager check\n    boolean result = account.withdraw(200.0);   \n    if (!result) {\n      result = account.overdraft();\n    }\n    System.out.println(\"Withdrawal successful? \" + result);\n  }\n}\n",[62,564,565,573,577,591,595,604,621,635,642,650,654,658,663,667,671,685,689,694,699,703,707,717,737,751,755,773,784,798,802,816,820],{"__ignoreMap":83},[87,566,567,569,571],{"class":89,"line":90},[87,568,94],{"class":93},[87,570,98],{"class":97},[87,572,102],{"class":101},[87,574,575],{"class":89,"line":105},[87,576,109],{"class":108},[87,578,579,581,583,585,587,589],{"class":89,"line":112},[87,580,115],{"class":93},[87,582,119],{"class":118},[87,584,122],{"class":101},[87,586,125],{"class":93},[87,588,129],{"class":128},[87,590,132],{"class":101},[87,592,593],{"class":89,"line":135},[87,594,138],{"emptyLinePlaceholder":7},[87,596,597,599,602],{"class":89,"line":141},[87,598,144],{"class":118},[87,600,601],{"class":147}," overdraft",[87,603,394],{"class":101},[87,605,606,609,612,615,618],{"class":89,"line":164},[87,607,608],{"class":101},"    balance ",[87,610,611],{"class":93},"+=",[87,613,614],{"class":128}," 300",[87,616,617],{"class":101},";     ",[87,619,620],{"class":108},"\u002F\u002F Add 300 in case there is an overdraft\n",[87,622,623,625,627,629,632],{"class":89,"line":187},[87,624,510],{"class":101},[87,626,205],{"class":147},[87,628,151],{"class":101},[87,630,631],{"class":210},"\"Added back-up amount. The balance is :\"",[87,633,634],{"class":101}," \n",[87,636,637,640],{"class":89,"line":199},[87,638,639],{"class":93},"                       +",[87,641,220],{"class":101},[87,643,644,646,648],{"class":89,"line":214},[87,645,243],{"class":93},[87,647,229],{"class":128},[87,649,132],{"class":101},[87,651,652],{"class":89,"line":223},[87,653,254],{"class":101},[87,655,656],{"class":89,"line":234},[87,657,138],{"emptyLinePlaceholder":7},[87,659,660],{"class":89,"line":240},[87,661,662],{"class":108},"  \u002F\u002F Other Account methods\n",[87,664,665],{"class":89,"line":251},[87,666,260],{"class":101},[87,668,669],{"class":89,"line":257},[87,670,138],{"emptyLinePlaceholder":7},[87,672,673,675,677,679,681,683],{"class":89,"line":263},[87,674,271],{"class":93},[87,676,274],{"class":93},[87,678,277],{"class":97},[87,680,280],{"class":93},[87,682,98],{"class":283},[87,684,102],{"class":101},[87,686,687],{"class":89,"line":268},[87,688,291],{"class":108},[87,690,691],{"class":89,"line":288},[87,692,693],{"class":108},"  \u002F\u002F NOTE: unchanged from previous version\n",[87,695,696],{"class":89,"line":294},[87,697,698],{"class":108},"  \u002F\u002F NOTE: lacks override of overdraft method\n",[87,700,701],{"class":89,"line":316},[87,702,260],{"class":101},[87,704,705],{"class":89,"line":333},[87,706,138],{"emptyLinePlaceholder":7},[87,708,709,711,713,715],{"class":89,"line":348},[87,710,271],{"class":93},[87,712,274],{"class":93},[87,714,425],{"class":97},[87,716,428],{"class":101},[87,718,719,721,723,725,727,729,731,733,735],{"class":89,"line":353},[87,720,434],{"class":93},[87,722,437],{"class":93},[87,724,440],{"class":118},[87,726,443],{"class":147},[87,728,151],{"class":101},[87,730,448],{"class":118},[87,732,451],{"class":101},[87,734,454],{"class":157},[87,736,161],{"class":101},[87,738,739,741,743,745,747,749],{"class":89,"line":371},[87,740,463],{"class":462},[87,742,466],{"class":101},[87,744,125],{"class":93},[87,746,339],{"class":93},[87,748,277],{"class":147},[87,750,345],{"class":101},[87,752,753],{"class":89,"line":376},[87,754,480],{"class":108},[87,756,757,759,761,763,765,767,769,771],{"class":89,"line":381},[87,758,486],{"class":118},[87,760,489],{"class":101},[87,762,125],{"class":93},[87,764,494],{"class":101},[87,766,365],{"class":147},[87,768,151],{"class":101},[87,770,501],{"class":128},[87,772,504],{"class":101},[87,774,775,777,779,781],{"class":89,"line":397},[87,776,167],{"class":93},[87,778,321],{"class":101},[87,780,324],{"class":93},[87,782,783],{"class":101},"result) {\n",[87,785,786,789,791,793,796],{"class":89,"line":403},[87,787,788],{"class":101},"      result ",[87,790,125],{"class":93},[87,792,494],{"class":101},[87,794,795],{"class":147},"overdraft",[87,797,345],{"class":101},[87,799,800],{"class":89,"line":408},[87,801,237],{"class":101},[87,803,804,806,808,810,812,814],{"class":89,"line":413},[87,805,510],{"class":101},[87,807,205],{"class":147},[87,809,151],{"class":101},[87,811,517],{"class":210},[87,813,520],{"class":93},[87,815,523],{"class":101},[87,817,818],{"class":89,"line":418},[87,819,254],{"class":101},[87,821,822],{"class":89,"line":431},[87,823,260],{"class":101},[39,825,826,827,829],{},"Although this code works as expected, it adds a dangerous attack vector. Because the ",[62,828,542],{}," method has no security check, a malicious client can invoke it without authentication:",[78,831,833],{"className":80,"code":832,"language":82,"meta":83,"style":83},"public class MaliciousClient {\n  public static void main(String[] args) {\n    Account account = new BankAccount();\n    \u002F\u002F No security check performed\n    boolean result = account.overdraft();\n    System.out.println(\"Withdrawal successful? \" + result);\n  }\n}\n",[62,834,835,846,866,880,885,899,913,917],{"__ignoreMap":83},[87,836,837,839,841,844],{"class":89,"line":90},[87,838,271],{"class":93},[87,840,274],{"class":93},[87,842,843],{"class":97}," MaliciousClient",[87,845,428],{"class":101},[87,847,848,850,852,854,856,858,860,862,864],{"class":89,"line":105},[87,849,434],{"class":93},[87,851,437],{"class":93},[87,853,440],{"class":118},[87,855,443],{"class":147},[87,857,151],{"class":101},[87,859,448],{"class":118},[87,861,451],{"class":101},[87,863,454],{"class":157},[87,865,161],{"class":101},[87,867,868,870,872,874,876,878],{"class":89,"line":112},[87,869,463],{"class":462},[87,871,466],{"class":101},[87,873,125],{"class":93},[87,875,339],{"class":93},[87,877,277],{"class":147},[87,879,345],{"class":101},[87,881,882],{"class":89,"line":135},[87,883,884],{"class":108},"    \u002F\u002F No security check performed\n",[87,886,887,889,891,893,895,897],{"class":89,"line":141},[87,888,486],{"class":118},[87,890,489],{"class":101},[87,892,125],{"class":93},[87,894,494],{"class":101},[87,896,795],{"class":147},[87,898,345],{"class":101},[87,900,901,903,905,907,909,911],{"class":89,"line":164},[87,902,510],{"class":101},[87,904,205],{"class":147},[87,906,151],{"class":101},[87,908,517],{"class":210},[87,910,520],{"class":93},[87,912,523],{"class":101},[87,914,915],{"class":89,"line":187},[87,916,254],{"class":101},[87,918,919],{"class":89,"line":199},[87,920,260],{"class":101},[54,922,924],{"id":923},"compliant-solution","Compliant Solution",[39,926,927,928,930,931,933],{},"In this compliant solution, the ",[62,929,68],{}," class provides an overriding version of the ",[62,932,542],{}," method that immediately fails, preventing misuse of the overdraft feature. All other aspects of the compliant solution remain unchanged.",[74,935,936],{"quality":76},[78,937,939],{"className":80,"code":938,"language":82,"meta":83,"style":83},"class BankAccount extends Account {\n  \u002F\u002F ...\n  @Override boolean overdraft() { \u002F\u002F Override\n    throw new IllegalAccessException();\n  }\n}\n",[62,940,941,953,958,974,985,989],{"__ignoreMap":83},[87,942,943,945,947,949,951],{"class":89,"line":90},[87,944,94],{"class":93},[87,946,277],{"class":97},[87,948,280],{"class":93},[87,950,98],{"class":283},[87,952,428],{"class":101},[87,954,955],{"class":89,"line":105},[87,956,957],{"class":108},"  \u002F\u002F ...\n",[87,959,960,962,964,966,968,971],{"class":89,"line":112},[87,961,297],{"class":101},[87,963,300],{"class":118},[87,965,303],{"class":118},[87,967,601],{"class":147},[87,969,970],{"class":101},"() { ",[87,972,973],{"class":108},"\u002F\u002F Override\n",[87,975,976,979,981,983],{"class":89,"line":135},[87,977,978],{"class":93},"    throw",[87,980,339],{"class":93},[87,982,342],{"class":147},[87,984,345],{"class":101},[87,986,987],{"class":89,"line":141},[87,988,254],{"class":101},[87,990,991],{"class":89,"line":164},[87,992,260],{"class":101},[39,994,995],{},"Alternatively, when the intended design permits the new method in the parent class to be invoked directly from a subclass without overriding, install a security manager check directly in the new method.",[54,997,999,1000,1003],{"id":998},"noncompliant-code-example-calendar","Noncompliant Code Example ( ",[62,1001,1002],{},"Calendar"," )",[39,1005,1006,1007,1010,1011,1014,1015,1018,1019,1022,1023,1026,1027,1029,1030,1034,1035,1038,1039,1041,1042,1045,1046,1048],{},"This noncompliant code example overrides the methods ",[62,1008,1009],{},"after()"," and ",[62,1012,1013],{},"compareTo()"," of the class ",[62,1016,1017],{},"java.util.Calendar"," . The ",[62,1020,1021],{},"Calendar.after()"," method returns a ",[62,1024,1025],{},"boolean"," value that indicates whether or not the ",[62,1028,1002],{}," represents a time ",[1031,1032,1033],"em",{},"after"," that represented by the specified ",[62,1036,1037],{},"Object"," parameter. The programmer wishes to extend this functionality so that the ",[62,1040,1009],{}," method returns ",[62,1043,1044],{},"true"," even when the two objects represent the same date. The programmer also overrides the method ",[62,1047,1013],{}," to provide a \"comparisons by day\" option to clients (for example, comparing today's date with the first day of the week, which differs among countries, to check whether it is a weekday).",[74,1050,1051],{"quality":559},[78,1052,1054],{"className":80,"code":1053,"language":82,"meta":83,"style":83},"class CalendarSubclass extends Calendar {\n  @Override public boolean after(Object when) {\n    \u002F\u002F Correctly calls Calendar.compareTo()\n    if (when instanceof Calendar && \n        super.compareTo((Calendar) when) == 0) {\n      return true;\n    }\n    return super.after(when);\n  }\n\n  @Override public int compareTo(Calendar anotherCalendar) {\n    return compareDays(this.getFirstDayOfWeek(),\n                       anotherCalendar.getFirstDayOfWeek());\n  }\n\n  private int compareDays(int currentFirstDayOfWeek,\n                          int anotherFirstDayOfWeek) {\n    return (currentFirstDayOfWeek > anotherFirstDayOfWeek) ? 1\n           : (currentFirstDayOfWeek == anotherFirstDayOfWeek) ? 0 : -1;\n  }\n\n  public static void main(String[] args) {\n    CalendarSubclass cs1 = new CalendarSubclass();\n    cs1.setTime(new Date());\n    \u002F\u002F Date of last Sunday (before now)\n    cs1.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);\n    \u002F\u002F Wed Dec 31 19:00:00 EST 1969\n    CalendarSubclass cs2 = new CalendarSubclass();\n    \u002F\u002F Expected to print true\n    System.out.println(cs1.after(cs2));\n  }\n\n  \u002F\u002F Implementation of other Calendar abstract methods\n}\n",[62,1055,1056,1070,1093,1098,1116,1136,1144,1148,1161,1165,1169,1192,1212,1222,1226,1230,1249,1259,1278,1303,1307,1311,1331,1347,1365,1370,1380,1385,1400,1405,1419,1423,1427,1432],{"__ignoreMap":83},[87,1057,1058,1060,1063,1065,1068],{"class":89,"line":90},[87,1059,94],{"class":93},[87,1061,1062],{"class":97}," CalendarSubclass",[87,1064,280],{"class":93},[87,1066,1067],{"class":283}," Calendar",[87,1069,428],{"class":101},[87,1071,1072,1074,1076,1079,1081,1084,1086,1088,1091],{"class":89,"line":105},[87,1073,297],{"class":101},[87,1075,300],{"class":118},[87,1077,1078],{"class":93}," public",[87,1080,303],{"class":118},[87,1082,1083],{"class":147}," after",[87,1085,151],{"class":101},[87,1087,1037],{"class":462},[87,1089,1090],{"class":157}," when",[87,1092,161],{"class":101},[87,1094,1095],{"class":89,"line":112},[87,1096,1097],{"class":108},"    \u002F\u002F Correctly calls Calendar.compareTo()\n",[87,1099,1100,1102,1105,1108,1111,1114],{"class":89,"line":135},[87,1101,167],{"class":93},[87,1103,1104],{"class":101}," (when ",[87,1106,1107],{"class":93},"instanceof",[87,1109,1110],{"class":101}," Calendar ",[87,1112,1113],{"class":93},"&&",[87,1115,634],{"class":101},[87,1117,1118,1121,1123,1126,1129,1132,1134],{"class":89,"line":141},[87,1119,1120],{"class":358},"        super",[87,1122,362],{"class":101},[87,1124,1125],{"class":147},"compareTo",[87,1127,1128],{"class":101},"((Calendar) when) ",[87,1130,1131],{"class":93},"==",[87,1133,182],{"class":128},[87,1135,161],{"class":101},[87,1137,1138,1140,1142],{"class":89,"line":164},[87,1139,226],{"class":93},[87,1141,229],{"class":128},[87,1143,132],{"class":101},[87,1145,1146],{"class":89,"line":187},[87,1147,237],{"class":101},[87,1149,1150,1152,1154,1156,1158],{"class":89,"line":199},[87,1151,243],{"class":93},[87,1153,359],{"class":358},[87,1155,362],{"class":101},[87,1157,1033],{"class":147},[87,1159,1160],{"class":101},"(when);\n",[87,1162,1163],{"class":89,"line":214},[87,1164,254],{"class":101},[87,1166,1167],{"class":89,"line":223},[87,1168,138],{"emptyLinePlaceholder":7},[87,1170,1171,1173,1175,1177,1180,1183,1185,1187,1190],{"class":89,"line":234},[87,1172,297],{"class":101},[87,1174,300],{"class":118},[87,1176,1078],{"class":93},[87,1178,1179],{"class":118}," int",[87,1181,1182],{"class":147}," compareTo",[87,1184,151],{"class":101},[87,1186,1002],{"class":462},[87,1188,1189],{"class":157}," anotherCalendar",[87,1191,161],{"class":101},[87,1193,1194,1196,1199,1201,1204,1206,1209],{"class":89,"line":240},[87,1195,243],{"class":93},[87,1197,1198],{"class":147}," compareDays",[87,1200,151],{"class":101},[87,1202,1203],{"class":358},"this",[87,1205,362],{"class":101},[87,1207,1208],{"class":147},"getFirstDayOfWeek",[87,1210,1211],{"class":101},"(),\n",[87,1213,1214,1217,1219],{"class":89,"line":251},[87,1215,1216],{"class":101},"                       anotherCalendar.",[87,1218,1208],{"class":147},[87,1220,1221],{"class":101},"());\n",[87,1223,1224],{"class":89,"line":257},[87,1225,254],{"class":101},[87,1227,1228],{"class":89,"line":263},[87,1229,138],{"emptyLinePlaceholder":7},[87,1231,1232,1234,1236,1238,1240,1243,1246],{"class":89,"line":268},[87,1233,115],{"class":93},[87,1235,1179],{"class":118},[87,1237,1198],{"class":147},[87,1239,151],{"class":101},[87,1241,1242],{"class":118},"int",[87,1244,1245],{"class":157}," currentFirstDayOfWeek",[87,1247,1248],{"class":101},",\n",[87,1250,1251,1254,1257],{"class":89,"line":288},[87,1252,1253],{"class":118},"                          int",[87,1255,1256],{"class":157}," anotherFirstDayOfWeek",[87,1258,161],{"class":101},[87,1260,1261,1263,1266,1269,1272,1275],{"class":89,"line":294},[87,1262,243],{"class":93},[87,1264,1265],{"class":101}," (currentFirstDayOfWeek ",[87,1267,1268],{"class":93},">",[87,1270,1271],{"class":101}," anotherFirstDayOfWeek) ",[87,1273,1274],{"class":93},"?",[87,1276,1277],{"class":128}," 1\n",[87,1279,1280,1283,1285,1287,1289,1291,1293,1295,1298,1301],{"class":89,"line":316},[87,1281,1282],{"class":93},"           :",[87,1284,1265],{"class":101},[87,1286,1131],{"class":93},[87,1288,1271],{"class":101},[87,1290,1274],{"class":93},[87,1292,182],{"class":128},[87,1294,556],{"class":93},[87,1296,1297],{"class":93}," -",[87,1299,1300],{"class":128},"1",[87,1302,132],{"class":101},[87,1304,1305],{"class":89,"line":333},[87,1306,254],{"class":101},[87,1308,1309],{"class":89,"line":348},[87,1310,138],{"emptyLinePlaceholder":7},[87,1312,1313,1315,1317,1319,1321,1323,1325,1327,1329],{"class":89,"line":353},[87,1314,434],{"class":93},[87,1316,437],{"class":93},[87,1318,440],{"class":118},[87,1320,443],{"class":147},[87,1322,151],{"class":101},[87,1324,448],{"class":118},[87,1326,451],{"class":101},[87,1328,454],{"class":157},[87,1330,161],{"class":101},[87,1332,1333,1336,1339,1341,1343,1345],{"class":89,"line":371},[87,1334,1335],{"class":462},"    CalendarSubclass",[87,1337,1338],{"class":101}," cs1 ",[87,1340,125],{"class":93},[87,1342,339],{"class":93},[87,1344,1062],{"class":147},[87,1346,345],{"class":101},[87,1348,1349,1352,1355,1357,1360,1363],{"class":89,"line":376},[87,1350,1351],{"class":101},"    cs1.",[87,1353,1354],{"class":147},"setTime",[87,1356,151],{"class":101},[87,1358,1359],{"class":93},"new",[87,1361,1362],{"class":147}," Date",[87,1364,1221],{"class":101},[87,1366,1367],{"class":89,"line":381},[87,1368,1369],{"class":108},"    \u002F\u002F Date of last Sunday (before now)\n",[87,1371,1372,1374,1377],{"class":89,"line":397},[87,1373,1351],{"class":101},[87,1375,1376],{"class":147},"set",[87,1378,1379],{"class":101},"(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);\n",[87,1381,1382],{"class":89,"line":403},[87,1383,1384],{"class":108},"    \u002F\u002F Wed Dec 31 19:00:00 EST 1969\n",[87,1386,1387,1389,1392,1394,1396,1398],{"class":89,"line":408},[87,1388,1335],{"class":462},[87,1390,1391],{"class":101}," cs2 ",[87,1393,125],{"class":93},[87,1395,339],{"class":93},[87,1397,1062],{"class":147},[87,1399,345],{"class":101},[87,1401,1402],{"class":89,"line":413},[87,1403,1404],{"class":108},"    \u002F\u002F Expected to print true\n",[87,1406,1407,1409,1411,1414,1416],{"class":89,"line":418},[87,1408,510],{"class":101},[87,1410,205],{"class":147},[87,1412,1413],{"class":101},"(cs1.",[87,1415,1033],{"class":147},[87,1417,1418],{"class":101},"(cs2));\n",[87,1420,1421],{"class":89,"line":431},[87,1422,254],{"class":101},[87,1424,1425],{"class":89,"line":459},[87,1426,138],{"emptyLinePlaceholder":7},[87,1428,1429],{"class":89,"line":477},[87,1430,1431],{"class":108},"  \u002F\u002F Implementation of other Calendar abstract methods\n",[87,1433,1434],{"class":89,"line":483},[87,1435,260],{"class":101},[39,1437,1438,1439,1441,1442,1444,1445,1447,1448,1450,1451,1454,1455,1459],{},"The ",[62,1440,1017],{}," class provides a ",[62,1443,1013],{}," method and an ",[62,1446,1009],{}," method. The ",[62,1449,1009],{}," method is documented in the ",[1031,1452,1453],{},"Java API Reference"," [ ",[43,1456,1458],{"href":1457},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-API14","API 2014"," ] as follows:",[1461,1462,1463],"blockquote",{},[39,1464,1438,1465,1467,1468,1470,1471,1473,1474,1477,1480,1482,1483,1486,1487,1489,1490,52],{},[62,1466,1009],{}," method returns whether this ",[62,1469,1002],{}," represents a time after the time represented by the specified ",[62,1472,1037],{}," . This method is equivalent to",[1475,1476],"br",{},[62,1478,1479],{},"compareTo(when) > 0  ",[1475,1481],{},"\nif and only if ",[62,1484,1485],{},"when"," is a ",[62,1488,1002],{}," instance. Otherwise, the method returns ",[62,1491,1492],{},"false",[39,1494,1495,1496,1498,1499,1501,1502,1498,1504,1506,1507,1509],{},"The documentation fails to state whether ",[62,1497,1009],{}," invokes ",[62,1500,1013],{}," or whether ",[62,1503,1013],{},[62,1505,1009],{}," . In the Oracle JDK 1.6 implementation, the source code for ",[62,1508,1009],{}," is as follows:",[74,1511,1512],{"quality":76},[78,1513,1515],{"className":80,"code":1514,"language":82,"meta":83,"style":83},"public boolean after(Object when) {\n  return when instanceof Calendar\n         && compareTo((Calendar) when) > 0;\n}\n",[62,1516,1517,1532,1545,1560],{"__ignoreMap":83},[87,1518,1519,1521,1523,1525,1527,1529],{"class":89,"line":90},[87,1520,271],{"class":93},[87,1522,303],{"class":118},[87,1524,1083],{"class":147},[87,1526,151],{"class":101},[87,1528,1037],{"class":462},[87,1530,1531],{"class":101}," when) {\n",[87,1533,1534,1537,1540,1542],{"class":89,"line":105},[87,1535,1536],{"class":93},"  return",[87,1538,1539],{"class":101}," when ",[87,1541,1107],{"class":93},[87,1543,1544],{"class":462}," Calendar\n",[87,1546,1547,1550,1552,1554,1556,1558],{"class":89,"line":112},[87,1548,1549],{"class":93},"         &&",[87,1551,1182],{"class":147},[87,1553,1128],{"class":101},[87,1555,1268],{"class":93},[87,1557,182],{"class":128},[87,1559,132],{"class":101},[87,1561,1562],{"class":89,"line":135},[87,1563,260],{"class":101},[39,1565,1566,1567,1570,1571,1573,1574,1576,1577,1579,1580,1583,1584,1586,1587,1589,1590,52],{},"In this case, the two objects are initially compared using the overriding ",[62,1568,1569],{},"CalendarSubclass.after()"," method, which invokes the superclass's ",[62,1572,1021],{}," method to perform the remainder of the comparison. But the ",[62,1575,1021],{}," method internally calls the ",[62,1578,1013],{}," method, which delegates to ",[62,1581,1582],{},"CalendarSubclass.compareTo()"," . Consequently, ",[62,1585,1569],{}," actually calls ",[62,1588,1582],{}," and returns ",[62,1591,1492],{},[39,1593,1594,1595,1597,1598,1600,1601,1605],{},"The developer of the subclass was unaware of the implementation details of ",[62,1596,1021],{}," and incorrectly assumed that the superclass's ",[62,1599,1009],{}," method would invoke only the superclass's methods without invoking overriding methods from the subclass. ",[43,1602,1604],{"href":1603},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet05-j","MET05-J. Ensure that constructors do not call overridable methods"," describes similar programming errors.",[39,1607,1608],{},"Such errors generally occur because the developer made assumptions about the implementation-specific details of the superclass. Even when these assumptions are initially correct, implementation details of the superclass may change without warning.",[54,1610,1612,1613,1003],{"id":1611},"compliant-solution-calendar","Compliant Solution ( ",[62,1614,1002],{},[39,1616,1617,1618,1622,1623,1627,1628,1631,1632,1634,1635,1638,1639,1642,1643,1646,1647,1649,1650,1653,1654,1657],{},"This compliant solution uses a design pattern called Composition and Forwarding (sometimes also called Delegation) [ ",[43,1619,1621],{"href":1620},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-Lieberman86","Lieberman 1986"," ], [ ",[43,1624,1626],{"href":1625},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-Gamma95","Gamma 1995"," ]. The compliant solution introduces a new ",[1031,1629,1630],{},"forwarder"," class that contains a private member field of the ",[62,1633,1002],{}," type; this is ",[1031,1636,1637],{},"composition"," rather than inheritance. In this example, the field refers to ",[62,1640,1641],{},"CalendarImplementation"," , a concrete instantiable implementation of the ",[62,1644,1645],{},"abstract"," ",[62,1648,1002],{}," class. The compliant solution also introduces a wrapper class called ",[62,1651,1652],{},"CompositeCalendar"," that provides the same overridden methods found in the ",[62,1655,1656],{},"CalendarSubclass"," from the preceding noncompliant code example.",[74,1659,1660],{"quality":76},[78,1661,1663],{"className":80,"code":1662,"language":82,"meta":83,"style":83},"\u002F\u002F The CalendarImplementation object is a concrete implementation\n\u002F\u002F of the abstract Calendar class\n\u002F\u002F Class ForwardingCalendar\npublic class ForwardingCalendar {\n  private final CalendarImplementation c;\n\n  public ForwardingCalendar(CalendarImplementation c) {\n    this.c = c;\n  }\n\n  CalendarImplementation getCalendarImplementation() {\n    return c;\n  }\n\n  public boolean after(Object when) {\n    return c.after(when);\n  }\n\n  public int compareTo(Calendar anotherCalendar) {\n    \u002F\u002F CalendarImplementation.compareTo() will be called\n    return c.compareTo(anotherCalendar);\n  }\n}\n\nclass CompositeCalendar extends ForwardingCalendar {\n  public CompositeCalendar(CalendarImplementation ci) {\n    super(ci);\n  }\n\n  @Override public boolean after(Object when) {\n    \u002F\u002F This will call the overridden version, i.e.\n    \u002F\u002F CompositeClass.compareTo();\n    if (when instanceof Calendar && \n        super.compareTo((Calendar)when) == 0) {\n      \u002F\u002F Return true if it is the first day of week\n      return true;\n    }\n    \u002F\u002F No longer compares with first day of week;\n    \u002F\u002F uses default comparison with epoch\n    return super.after(when); \n  }\n\n  @Override public int compareTo(Calendar anotherCalendar) {\n    return compareDays(\n             super.getCalendarImplementation().getFirstDayOfWeek(),\n             anotherCalendar.getFirstDayOfWeek());\n  }\n\n  private int compareDays(int currentFirstDayOfWeek, \n                          int anotherFirstDayOfWeek) {\n    return (currentFirstDayOfWeek > anotherFirstDayOfWeek) ? 1\n           : (currentFirstDayOfWeek == anotherFirstDayOfWeek) ? 0 : -1;\n  }\n\n  public static void main(String[] args) {\n    CalendarImplementation ci1 = new CalendarImplementation();\n    ci1.setTime(new Date());\n    \u002F\u002F Date of last Sunday (before now)\n    ci1.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);\n\n    CalendarImplementation ci2 = new CalendarImplementation();\n    CompositeCalendar c = new CompositeCalendar(ci1);\n    \u002F\u002F Expected to print true\n    System.out.println(c.after(ci2));\n  }\n}\n",[62,1664,1665,1670,1675,1680,1691,1703,1707,1722,1734,1738,1742,1752,1758,1762,1766,1782,1793,1797,1801,1817,1822,1833,1837,1841,1845,1858,1873,1881,1885,1889,1909,1914,1919,1933,1950,1955,1963,1967,1973,1979,1993,1998,2003,2024,2034,2052,2062,2067,2072,2090,2099,2114,2137,2142,2147,2168,2185,2201,2206,2215,2220,2236,2254,2259,2274,2279],{"__ignoreMap":83},[87,1666,1667],{"class":89,"line":90},[87,1668,1669],{"class":108},"\u002F\u002F The CalendarImplementation object is a concrete implementation\n",[87,1671,1672],{"class":89,"line":105},[87,1673,1674],{"class":108},"\u002F\u002F of the abstract Calendar class\n",[87,1676,1677],{"class":89,"line":112},[87,1678,1679],{"class":108},"\u002F\u002F Class ForwardingCalendar\n",[87,1681,1682,1684,1686,1689],{"class":89,"line":135},[87,1683,271],{"class":93},[87,1685,274],{"class":93},[87,1687,1688],{"class":97}," ForwardingCalendar",[87,1690,428],{"class":101},[87,1692,1693,1695,1697,1700],{"class":89,"line":141},[87,1694,115],{"class":93},[87,1696,386],{"class":93},[87,1698,1699],{"class":462}," CalendarImplementation",[87,1701,1702],{"class":101}," c;\n",[87,1704,1705],{"class":89,"line":164},[87,1706,138],{"emptyLinePlaceholder":7},[87,1708,1709,1711,1713,1715,1717,1720],{"class":89,"line":187},[87,1710,434],{"class":93},[87,1712,1688],{"class":147},[87,1714,151],{"class":101},[87,1716,1641],{"class":462},[87,1718,1719],{"class":157}," c",[87,1721,161],{"class":101},[87,1723,1724,1727,1730,1732],{"class":89,"line":199},[87,1725,1726],{"class":358},"    this",[87,1728,1729],{"class":101},".c ",[87,1731,125],{"class":93},[87,1733,1702],{"class":101},[87,1735,1736],{"class":89,"line":214},[87,1737,254],{"class":101},[87,1739,1740],{"class":89,"line":223},[87,1741,138],{"emptyLinePlaceholder":7},[87,1743,1744,1747,1750],{"class":89,"line":234},[87,1745,1746],{"class":462},"  CalendarImplementation",[87,1748,1749],{"class":147}," getCalendarImplementation",[87,1751,394],{"class":101},[87,1753,1754,1756],{"class":89,"line":240},[87,1755,243],{"class":93},[87,1757,1702],{"class":101},[87,1759,1760],{"class":89,"line":251},[87,1761,254],{"class":101},[87,1763,1764],{"class":89,"line":257},[87,1765,138],{"emptyLinePlaceholder":7},[87,1767,1768,1770,1772,1774,1776,1778,1780],{"class":89,"line":263},[87,1769,434],{"class":93},[87,1771,303],{"class":118},[87,1773,1083],{"class":147},[87,1775,151],{"class":101},[87,1777,1037],{"class":462},[87,1779,1090],{"class":157},[87,1781,161],{"class":101},[87,1783,1784,1786,1789,1791],{"class":89,"line":268},[87,1785,243],{"class":93},[87,1787,1788],{"class":101}," c.",[87,1790,1033],{"class":147},[87,1792,1160],{"class":101},[87,1794,1795],{"class":89,"line":288},[87,1796,254],{"class":101},[87,1798,1799],{"class":89,"line":294},[87,1800,138],{"emptyLinePlaceholder":7},[87,1802,1803,1805,1807,1809,1811,1813,1815],{"class":89,"line":316},[87,1804,434],{"class":93},[87,1806,1179],{"class":118},[87,1808,1182],{"class":147},[87,1810,151],{"class":101},[87,1812,1002],{"class":462},[87,1814,1189],{"class":157},[87,1816,161],{"class":101},[87,1818,1819],{"class":89,"line":333},[87,1820,1821],{"class":108},"    \u002F\u002F CalendarImplementation.compareTo() will be called\n",[87,1823,1824,1826,1828,1830],{"class":89,"line":348},[87,1825,243],{"class":93},[87,1827,1788],{"class":101},[87,1829,1125],{"class":147},[87,1831,1832],{"class":101},"(anotherCalendar);\n",[87,1834,1835],{"class":89,"line":353},[87,1836,254],{"class":101},[87,1838,1839],{"class":89,"line":371},[87,1840,260],{"class":101},[87,1842,1843],{"class":89,"line":376},[87,1844,138],{"emptyLinePlaceholder":7},[87,1846,1847,1849,1852,1854,1856],{"class":89,"line":381},[87,1848,94],{"class":93},[87,1850,1851],{"class":97}," CompositeCalendar",[87,1853,280],{"class":93},[87,1855,1688],{"class":283},[87,1857,428],{"class":101},[87,1859,1860,1862,1864,1866,1868,1871],{"class":89,"line":397},[87,1861,434],{"class":93},[87,1863,1851],{"class":147},[87,1865,151],{"class":101},[87,1867,1641],{"class":462},[87,1869,1870],{"class":157}," ci",[87,1872,161],{"class":101},[87,1874,1875,1878],{"class":89,"line":403},[87,1876,1877],{"class":358},"    super",[87,1879,1880],{"class":101},"(ci);\n",[87,1882,1883],{"class":89,"line":408},[87,1884,254],{"class":101},[87,1886,1887],{"class":89,"line":413},[87,1888,138],{"emptyLinePlaceholder":7},[87,1890,1891,1893,1895,1897,1899,1901,1903,1905,1907],{"class":89,"line":418},[87,1892,297],{"class":101},[87,1894,300],{"class":118},[87,1896,1078],{"class":93},[87,1898,303],{"class":118},[87,1900,1083],{"class":147},[87,1902,151],{"class":101},[87,1904,1037],{"class":462},[87,1906,1090],{"class":157},[87,1908,161],{"class":101},[87,1910,1911],{"class":89,"line":431},[87,1912,1913],{"class":108},"    \u002F\u002F This will call the overridden version, i.e.\n",[87,1915,1916],{"class":89,"line":459},[87,1917,1918],{"class":108},"    \u002F\u002F CompositeClass.compareTo();\n",[87,1920,1921,1923,1925,1927,1929,1931],{"class":89,"line":477},[87,1922,167],{"class":93},[87,1924,1104],{"class":101},[87,1926,1107],{"class":93},[87,1928,1110],{"class":101},[87,1930,1113],{"class":93},[87,1932,634],{"class":101},[87,1934,1935,1937,1939,1941,1944,1946,1948],{"class":89,"line":483},[87,1936,1120],{"class":358},[87,1938,362],{"class":101},[87,1940,1125],{"class":147},[87,1942,1943],{"class":101},"((Calendar)when) ",[87,1945,1131],{"class":93},[87,1947,182],{"class":128},[87,1949,161],{"class":101},[87,1951,1952],{"class":89,"line":507},[87,1953,1954],{"class":108},"      \u002F\u002F Return true if it is the first day of week\n",[87,1956,1957,1959,1961],{"class":89,"line":526},[87,1958,226],{"class":93},[87,1960,229],{"class":128},[87,1962,132],{"class":101},[87,1964,1965],{"class":89,"line":531},[87,1966,237],{"class":101},[87,1968,1970],{"class":89,"line":1969},38,[87,1971,1972],{"class":108},"    \u002F\u002F No longer compares with first day of week;\n",[87,1974,1976],{"class":89,"line":1975},39,[87,1977,1978],{"class":108},"    \u002F\u002F uses default comparison with epoch\n",[87,1980,1982,1984,1986,1988,1990],{"class":89,"line":1981},40,[87,1983,243],{"class":93},[87,1985,359],{"class":358},[87,1987,362],{"class":101},[87,1989,1033],{"class":147},[87,1991,1992],{"class":101},"(when); \n",[87,1994,1996],{"class":89,"line":1995},41,[87,1997,254],{"class":101},[87,1999,2001],{"class":89,"line":2000},42,[87,2002,138],{"emptyLinePlaceholder":7},[87,2004,2006,2008,2010,2012,2014,2016,2018,2020,2022],{"class":89,"line":2005},43,[87,2007,297],{"class":101},[87,2009,300],{"class":118},[87,2011,1078],{"class":93},[87,2013,1179],{"class":118},[87,2015,1182],{"class":147},[87,2017,151],{"class":101},[87,2019,1002],{"class":462},[87,2021,1189],{"class":157},[87,2023,161],{"class":101},[87,2025,2027,2029,2031],{"class":89,"line":2026},44,[87,2028,243],{"class":93},[87,2030,1198],{"class":147},[87,2032,2033],{"class":101},"(\n",[87,2035,2037,2040,2042,2045,2048,2050],{"class":89,"line":2036},45,[87,2038,2039],{"class":358},"             super",[87,2041,362],{"class":101},[87,2043,2044],{"class":147},"getCalendarImplementation",[87,2046,2047],{"class":101},"().",[87,2049,1208],{"class":147},[87,2051,1211],{"class":101},[87,2053,2055,2058,2060],{"class":89,"line":2054},46,[87,2056,2057],{"class":101},"             anotherCalendar.",[87,2059,1208],{"class":147},[87,2061,1221],{"class":101},[87,2063,2065],{"class":89,"line":2064},47,[87,2066,254],{"class":101},[87,2068,2070],{"class":89,"line":2069},48,[87,2071,138],{"emptyLinePlaceholder":7},[87,2073,2075,2077,2079,2081,2083,2085,2087],{"class":89,"line":2074},49,[87,2076,115],{"class":93},[87,2078,1179],{"class":118},[87,2080,1198],{"class":147},[87,2082,151],{"class":101},[87,2084,1242],{"class":118},[87,2086,1245],{"class":157},[87,2088,2089],{"class":101},", \n",[87,2091,2093,2095,2097],{"class":89,"line":2092},50,[87,2094,1253],{"class":118},[87,2096,1256],{"class":157},[87,2098,161],{"class":101},[87,2100,2102,2104,2106,2108,2110,2112],{"class":89,"line":2101},51,[87,2103,243],{"class":93},[87,2105,1265],{"class":101},[87,2107,1268],{"class":93},[87,2109,1271],{"class":101},[87,2111,1274],{"class":93},[87,2113,1277],{"class":128},[87,2115,2117,2119,2121,2123,2125,2127,2129,2131,2133,2135],{"class":89,"line":2116},52,[87,2118,1282],{"class":93},[87,2120,1265],{"class":101},[87,2122,1131],{"class":93},[87,2124,1271],{"class":101},[87,2126,1274],{"class":93},[87,2128,182],{"class":128},[87,2130,556],{"class":93},[87,2132,1297],{"class":93},[87,2134,1300],{"class":128},[87,2136,132],{"class":101},[87,2138,2140],{"class":89,"line":2139},53,[87,2141,254],{"class":101},[87,2143,2145],{"class":89,"line":2144},54,[87,2146,138],{"emptyLinePlaceholder":7},[87,2148,2150,2152,2154,2156,2158,2160,2162,2164,2166],{"class":89,"line":2149},55,[87,2151,434],{"class":93},[87,2153,437],{"class":93},[87,2155,440],{"class":118},[87,2157,443],{"class":147},[87,2159,151],{"class":101},[87,2161,448],{"class":118},[87,2163,451],{"class":101},[87,2165,454],{"class":157},[87,2167,161],{"class":101},[87,2169,2171,2174,2177,2179,2181,2183],{"class":89,"line":2170},56,[87,2172,2173],{"class":462},"    CalendarImplementation",[87,2175,2176],{"class":101}," ci1 ",[87,2178,125],{"class":93},[87,2180,339],{"class":93},[87,2182,1699],{"class":147},[87,2184,345],{"class":101},[87,2186,2188,2191,2193,2195,2197,2199],{"class":89,"line":2187},57,[87,2189,2190],{"class":101},"    ci1.",[87,2192,1354],{"class":147},[87,2194,151],{"class":101},[87,2196,1359],{"class":93},[87,2198,1362],{"class":147},[87,2200,1221],{"class":101},[87,2202,2204],{"class":89,"line":2203},58,[87,2205,1369],{"class":108},[87,2207,2209,2211,2213],{"class":89,"line":2208},59,[87,2210,2190],{"class":101},[87,2212,1376],{"class":147},[87,2214,1379],{"class":101},[87,2216,2218],{"class":89,"line":2217},60,[87,2219,138],{"emptyLinePlaceholder":7},[87,2221,2223,2225,2228,2230,2232,2234],{"class":89,"line":2222},61,[87,2224,2173],{"class":462},[87,2226,2227],{"class":101}," ci2 ",[87,2229,125],{"class":93},[87,2231,339],{"class":93},[87,2233,1699],{"class":147},[87,2235,345],{"class":101},[87,2237,2239,2242,2245,2247,2249,2251],{"class":89,"line":2238},62,[87,2240,2241],{"class":462},"    CompositeCalendar",[87,2243,2244],{"class":101}," c ",[87,2246,125],{"class":93},[87,2248,339],{"class":93},[87,2250,1851],{"class":147},[87,2252,2253],{"class":101},"(ci1);\n",[87,2255,2257],{"class":89,"line":2256},63,[87,2258,1404],{"class":108},[87,2260,2262,2264,2266,2269,2271],{"class":89,"line":2261},64,[87,2263,510],{"class":101},[87,2265,205],{"class":147},[87,2267,2268],{"class":101},"(c.",[87,2270,1033],{"class":147},[87,2272,2273],{"class":101},"(ci2));\n",[87,2275,2277],{"class":89,"line":2276},65,[87,2278,254],{"class":101},[87,2280,2282],{"class":89,"line":2281},66,[87,2283,260],{"class":101},[39,2285,2286,2287,2290,2291,2293,2294,2297,2298,2300,2301,2303,2304,2306,2307,2309,2310,2312,2313,2315,2316,2318,2319,2322,2323,2326,2327,2329,2330,2333,2334,2337,2338,2340,2341,52],{},"Note that each method of the class ",[62,2288,2289],{},"ForwardingCalendar"," redirects to methods of the contained ",[62,2292,1641],{}," class, from which it receives return values; this is the ",[1031,2295,2296],{},"forwarding"," mechanism. The ",[62,2299,2289],{}," class is largely independent of the implementation of the class ",[62,2302,1641],{}," . Consequently, future changes to ",[62,2305,1641],{}," are unlikely to break ",[62,2308,2289],{}," and are also unlikely to break ",[62,2311,1652],{}," . Invocations of the overriding ",[62,2314,1009],{}," method of ",[62,2317,1652],{}," perform the necessary comparison by using the ",[62,2320,2321],{},"CalendarImplementation.compareTo()"," method as required. Using ",[62,2324,2325],{},"super.after(when)"," forwards to ",[62,2328,2289],{}," , which invokes the ",[62,2331,2332],{},"CalendarImplementation.after()"," method as required. As a result, ",[62,2335,2336],{},"java.util.Calendar.after()"," invokes the ",[62,2339,2321],{}," method as required, resulting in the program correctly printing ",[62,2342,1044],{},[54,2344,2346],{"id":2345},"risk-assessment","Risk Assessment",[39,2348,2349,2350,2352],{},"Modifying a superclass without considering the effect on subclasses can introduce ",[43,2351,51],{"href":50}," . Subclasses that are developed with an incorrect understanding of the superclass implementation can be subject to erratic behavior, resulting in inconsistent data state and mismanaged control flow. Also, if the superclass implementation changes then the subclass may need to be redesigned to take into account these changes.",[2354,2355,2356,2357,2356,2387],"table",{},"\n  ",[2358,2359,2360,2361,2356],"thead",{},"\n    ",[2362,2363,2364,2365,2364,2369,2364,2372,2364,2375,2364,2378,2364,2381,2364,2384,2360],"tr",{},"\n      ",[2366,2367,2368],"th",{},"Rule",[2366,2370,2371],{},"Severity",[2366,2373,2374],{},"Likelihood",[2366,2376,2377],{},"Detectable",[2366,2379,2380],{},"Repairable",[2366,2382,2383],{},"Priority",[2366,2385,2386],{},"Level",[2388,2389,2360,2390,2356],"tbody",{},[2362,2391,2364,2392,2364,2396,2364,2399,2364,2402,2364,2405,2364,2407,2364,2414,2360],{},[2393,2394,2395],"td",{},"OBJ02-J",[2393,2397,2398],{},"Medium",[2393,2400,2401],{},"Probable",[2393,2403,2404],{},"No",[2393,2406,2404],{},[2393,2408,2410],{"style":2409},"color: #27ae60;",[2411,2412,2413],"b",{},"P4",[2393,2415,2416],{"style":2409},[2411,2417,2418],{},"L3",[2420,2421,2423],"h3",{"id":2422},"automated-detection","Automated Detection",[39,2425,2426],{},"Sound automated detection is not currently feasible.",[2420,2428,2430],{"id":2429},"related-vulnerabilities","Related Vulnerabilities",[39,2432,2433,2434,2437,2438,2441,2442,2445,2446,2450,2451,2454,2455,2458,2459,1018,2462,2464,2465,2468],{},"The introduction of the ",[62,2435,2436],{},"entrySet()"," method in the ",[62,2439,2440],{},"java.util.Hashtable"," superclass in JDK 1.2 left the ",[62,2443,2444],{},"java.security.Provider"," subclass ",[43,2447,2449],{"href":2448},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-vuln","vulnerable"," to a security attack. The ",[62,2452,2453],{},"Provider"," class extends ",[62,2456,2457],{},"java.util.Properties"," , which in turn extends ",[62,2460,2461],{},"Hashtable",[62,2463,2453],{}," class maps a cryptographic algorithm name (for example, ",[62,2466,2467],{},"RSA"," ) to a class that provides its implementation.",[39,2470,1438,2471,2473,2474,1010,2477,2480,2481,2483,2484,2486,2487,2491,2492,2494,2495,2497,2498,2502,2503,2506],{},[62,2472,2453],{}," class inherits the ",[62,2475,2476],{},"put()",[62,2478,2479],{},"remove()"," methods from ",[62,2482,2461],{}," and adds security manager checks to each. These checks ensure that malicious code cannot add or remove the mappings. When ",[62,2485,2436],{}," was introduced, it became possible for ",[43,2488,2490],{"href":2489},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-untru","untrusted code"," to remove the mappings from the ",[62,2493,2461],{}," because ",[62,2496,2453],{}," failed to override this method to provide the necessary security manager check [ ",[43,2499,2501],{"href":2500},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-SCG09","SCG 2009"," ]. This situation is commonly known as the ",[1031,2504,2505],{},"fragile class hierarchy"," problem.",[54,2508,2510],{"id":2509},"related-guidelines","Related Guidelines",[2354,2512,2513,2521],{},[2358,2514,2515],{},[2362,2516,2517,2519],{},[2366,2518],{},[2366,2520],{},[2388,2522,2523],{},[2362,2524,2525,2533],{},[2393,2526,2527],{},[43,2528,2532],{"href":2529,"rel":2530},"http:\u002F\u002Fwww.oracle.com\u002Ftechnetwork\u002Fjava\u002Fseccodeguide-139067.html",[2531],"nofollow","Secure Coding Guidelines for Java SE, Version 5.0",[2393,2534,2535],{},"Guideline 4-6 \u002F EXTEND-6: Understand how a superclass can affect subclass behavior",[54,2537,2539],{"id":2538},"bibliography","Bibliography",[2354,2541,2542,2550],{},[2358,2543,2544],{},[2362,2545,2546,2548],{},[2366,2547],{},[2366,2549],{},[2388,2551,2552,2569,2580,2592],{},[2362,2553,2554,2560],{},[2393,2555,2556,2557,2559],{},"[ ",[43,2558,1458],{"href":1457}," ]",[2393,2561,2562],{},[43,2563,2566,2567],{"href":2564,"rel":2565},"http:\u002F\u002Fdocs.oracle.com\u002Fjavase\u002F8\u002Fdocs\u002Fapi\u002F",[2531],"Class ",[62,2568,1002],{},[2362,2570,2571,2577],{},[2393,2572,2556,2573,2559],{},[43,2574,2576],{"href":2575},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-Bloch08","Bloch 2008",[2393,2578,2579],{},"Item 16, \"Favor Composition over Inheritance\"",[2362,2581,2582,2586],{},[2393,2583,2556,2584,2559],{},[43,2585,1626],{"href":1625},[2393,2587,2588,2591],{},[1031,2589,2590],{},"Design Patterns: Elements of Reusable Object-Oriented Software"," (p. 20)",[2362,2593,2594,2598],{},[2393,2595,2556,2596,2559],{},[43,2597,1621],{"href":1620},[2393,2599,2600],{},"\"Using Prototypical Objects to Implement Shared Behavior in Object-Oriented Systems\"",[2602,2603],"hr",{},[39,2605,2606,1646,2613,1646,2619],{},[43,2607,2609],{"href":2608},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj01-j",[2610,2611],"img",{"src":2612},"\u002Fattachments\u002F88487702\u002F88497198.png",[43,2614,2616],{"href":2615},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002F",[2610,2617],{"src":2618},"\u002Fattachments\u002F88487702\u002F88497196.png",[43,2620,2622],{"href":2621},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj03-j",[2610,2623],{"src":2624},"\u002Fattachments\u002F88487702\u002F88497197.png",[2626,2627,2628],"style",{},"html pre.shiki code .sC2Qs, html code.shiki .sC2Qs{--shiki-default:#D73A49;--shiki-dark:#F97583;--shiki-sepia:#F92672}html pre.shiki code .sz2Vg, html code.shiki .sz2Vg{--shiki-default:#6F42C1;--shiki-default-text-decoration:inherit;--shiki-dark:#B392F0;--shiki-dark-text-decoration:inherit;--shiki-sepia:#A6E22E;--shiki-sepia-text-decoration:underline}html pre.shiki code .sMOD_, html code.shiki .sMOD_{--shiki-default:#24292E;--shiki-dark:#E1E4E8;--shiki-sepia:#F8F8F2}html pre.shiki code .s8-w5, html code.shiki .s8-w5{--shiki-default:#6A737D;--shiki-dark:#6A737D;--shiki-sepia:#88846F}html pre.shiki code .sq6CD, html code.shiki .sq6CD{--shiki-default:#D73A49;--shiki-default-font-style:inherit;--shiki-dark:#F97583;--shiki-dark-font-style:inherit;--shiki-sepia:#66D9EF;--shiki-sepia-font-style:italic}html pre.shiki code .s7F3e, html code.shiki .s7F3e{--shiki-default:#005CC5;--shiki-dark:#79B8FF;--shiki-sepia:#AE81FF}html pre.shiki code .srTi1, html code.shiki .srTi1{--shiki-default:#6F42C1;--shiki-dark:#B392F0;--shiki-sepia:#A6E22E}html pre.shiki code .sTHNf, html code.shiki .sTHNf{--shiki-default:#E36209;--shiki-default-font-style:inherit;--shiki-dark:#FFAB70;--shiki-dark-font-style:inherit;--shiki-sepia:#FD971F;--shiki-sepia-font-style:italic}html pre.shiki code .sstjo, html code.shiki .sstjo{--shiki-default:#032F62;--shiki-dark:#9ECBFF;--shiki-sepia:#E6DB74}html pre.shiki code .s30JN, html code.shiki .s30JN{--shiki-default:#6F42C1;--shiki-default-font-style:inherit;--shiki-default-text-decoration:inherit;--shiki-dark:#B392F0;--shiki-dark-font-style:inherit;--shiki-dark-text-decoration:inherit;--shiki-sepia:#A6E22E;--shiki-sepia-font-style:italic;--shiki-sepia-text-decoration:underline}html pre.shiki code .sP7S_, html code.shiki .sP7S_{--shiki-default:#005CC5;--shiki-dark:#79B8FF;--shiki-sepia:#FD971F}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 .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);}",{"title":83,"searchDepth":105,"depth":105,"links":2630},[2631,2632,2633,2635,2637,2641,2642],{"id":56,"depth":105,"text":57},{"id":923,"depth":105,"text":924},{"id":998,"depth":105,"text":2634},"Noncompliant Code Example ( Calendar )",{"id":1611,"depth":105,"text":2636},"Compliant Solution ( Calendar )",{"id":2345,"depth":105,"text":2346,"children":2638},[2639,2640],{"id":2422,"depth":112,"text":2423},{"id":2429,"depth":112,"text":2430},{"id":2509,"depth":105,"text":2510},{"id":2538,"depth":105,"text":2539},"Developers often separate program logic across multiple classes or files to modularize code and to increase reusability. When developers modify a superclass (during maintenance, for example), the developer must ensure that changes in superclasses preserve all the program invariants on which the subclasses depend. Failure to maintain all relevant invariants can cause security vulnerabilities .","md",{"tags":2646},[2647,2648,2649,2650,2651,2652],"android-applicable","obj","draft","cwe-306","exportable-c++","rule","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj02-j",{"title":30,"description":2643},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F03.obj02-j","tQJqzsG0OZEkxZTKgjMpe5zjx-r6UzuIGg5tNkQf2e0",[2658,2661],{"title":2659,"path":2608,"stem":2660,"children":-1},"OBJ01-J. Limit accessibility of fields","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F02.obj01-j",{"title":2662,"path":2621,"stem":2663,"children":-1},"OBJ03-J. Prevent heap pollution","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F04.obj03-j",[2665],{"title":2666,"path":2667,"stem":2668,"children":2669},"SEI CERT Oracle Coding Standard for Java","\u002Fsei-cert-oracle-coding-standard-for-java","6.sei-cert-oracle-coding-standard-for-java\u002F1.index",[2670,2671,2811,3638,4037,4215],{"title":2666,"path":2667,"stem":2668},{"title":2672,"path":2673,"stem":2674,"children":2675},"Front Matter","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F1.index",[2676,2677,2681,2685,2689,2735,2773],{"title":2672,"path":2673,"stem":2674},{"title":2678,"path":2679,"stem":2680},"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":2682,"path":2683,"stem":2684},"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":2686,"path":2687,"stem":2688},"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":2690,"path":2691,"stem":2692,"children":2693},"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",[2694,2695,2699,2703,2707,2711,2715,2719,2723,2727,2731],{"title":2690,"path":2691,"stem":2692},{"title":2696,"path":2697,"stem":2698},"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":2700,"path":2701,"stem":2702},"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":2704,"path":2705,"stem":2706},"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":2708,"path":2709,"stem":2710},"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":2712,"path":2713,"stem":2714},"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":2716,"path":2717,"stem":2718},"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":2720,"path":2721,"stem":2722},"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":2724,"path":2725,"stem":2726},"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":2728,"path":2729,"stem":2730},"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":2732,"path":2733,"stem":2734},"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":2736,"path":2737,"stem":2738,"children":2739},"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",[2740,2741,2745,2749,2753,2757,2761,2765,2769],{"title":2736,"path":2737,"stem":2738},{"title":2742,"path":2743,"stem":2744},"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":2746,"path":2747,"stem":2748},"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":2750,"path":2751,"stem":2752},"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":2754,"path":2755,"stem":2756},"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":2758,"path":2759,"stem":2760},"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":2762,"path":2763,"stem":2764},"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":2766,"path":2767,"stem":2768},"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":2770,"path":2771,"stem":2772},"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":2774,"path":2775,"stem":2776,"children":2777},"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",[2778,2779,2782,2785,2788,2792,2795,2798,2801,2804,2808],{"title":2774,"path":2775,"stem":2776},{"title":2696,"path":2780,"stem":2781},"\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":2700,"path":2783,"stem":2784},"\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":2704,"path":2786,"stem":2787},"\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":2789,"path":2790,"stem":2791},"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":2712,"path":2793,"stem":2794},"\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":2716,"path":2796,"stem":2797},"\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":2720,"path":2799,"stem":2800},"\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":2724,"path":2802,"stem":2803},"\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":2805,"path":2806,"stem":2807},"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":2732,"path":2809,"stem":2810},"\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":2812,"path":2813,"stem":2814,"children":2815},"Rules","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F01.index",[2816,2817,2821,2847,2865,2911,2949,3023,3077,3103,3157,3217,3271,3329,3382,3432,3472,3530,3560,3586,3608],{"title":2812,"path":2813,"stem":2814},{"title":2818,"path":2819,"stem":2820},"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":2822,"path":2823,"stem":2824,"children":2825},"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",[2826,2827,2831,2835,2839,2843],{"title":2822,"path":2823,"stem":2824},{"title":2828,"path":2829,"stem":2830},"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":2832,"path":2833,"stem":2834},"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":2836,"path":2837,"stem":2838},"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":2840,"path":2841,"stem":2842},"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":2844,"path":2845,"stem":2846},"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":2848,"path":2849,"stem":2850,"children":2851},"Declarations and Initialization (DCL)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fdeclarations-and-initialization-dcl","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F04.declarations-and-initialization-dcl\u002F1.index",[2852,2853,2857,2861],{"title":2848,"path":2849,"stem":2850},{"title":2854,"path":2855,"stem":2856},"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":2858,"path":2859,"stem":2860},"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":2862,"path":2863,"stem":2864},"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":2866,"path":2867,"stem":2868,"children":2869},"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",[2870,2871,2875,2879,2883,2887,2891,2895,2899,2903,2907],{"title":2866,"path":2867,"stem":2868},{"title":2872,"path":2873,"stem":2874},"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":2876,"path":2877,"stem":2878},"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":2880,"path":2881,"stem":2882},"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":2884,"path":2885,"stem":2886},"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":2888,"path":2889,"stem":2890},"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":2892,"path":2893,"stem":2894},"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":2896,"path":2897,"stem":2898},"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":2900,"path":2901,"stem":2902},"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":2904,"path":2905,"stem":2906},"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":2908,"path":2909,"stem":2910},"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":2912,"path":2913,"stem":2914,"children":2915},"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",[2916,2917,2921,2925,2929,2933,2937,2941,2945],{"title":2912,"path":2913,"stem":2914},{"title":2918,"path":2919,"stem":2920},"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":2922,"path":2923,"stem":2924},"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":2926,"path":2927,"stem":2928},"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":2930,"path":2931,"stem":2932},"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":2934,"path":2935,"stem":2936},"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":2938,"path":2939,"stem":2940},"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":2942,"path":2943,"stem":2944},"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":2946,"path":2947,"stem":2948},"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":2950,"path":2951,"stem":2952,"children":2953},"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",[2954,2955,2959,2963,2967,2971,2975,2979,2983,2987,2991,2995,2999,3003,3007,3011,3015,3019],{"title":2950,"path":2951,"stem":2952},{"title":2956,"path":2957,"stem":2958},"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":2960,"path":2961,"stem":2962},"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":2964,"path":2965,"stem":2966},"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":2968,"path":2969,"stem":2970},"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":2972,"path":2973,"stem":2974},"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":2976,"path":2977,"stem":2978},"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":2980,"path":2981,"stem":2982},"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":2984,"path":2985,"stem":2986},"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":2988,"path":2989,"stem":2990},"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":2992,"path":2993,"stem":2994},"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":2996,"path":2997,"stem":2998},"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":3000,"path":3001,"stem":3002},"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":3004,"path":3005,"stem":3006},"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":3008,"path":3009,"stem":3010},"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":3012,"path":3013,"stem":3014},"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":3016,"path":3017,"stem":3018},"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":3020,"path":3021,"stem":3022},"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":3024,"path":3025,"stem":3026,"children":3027},"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",[3028,3029,3033,3037,3041,3045,3049,3053,3057,3061,3065,3069,3073],{"title":3024,"path":3025,"stem":3026},{"title":3030,"path":3031,"stem":3032},"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":3034,"path":3035,"stem":3036},"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":3038,"path":3039,"stem":3040},"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":3042,"path":3043,"stem":3044},"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":3046,"path":3047,"stem":3048},"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":3050,"path":3051,"stem":3052},"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":3054,"path":3055,"stem":3056},"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":3058,"path":3059,"stem":3060},"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":3062,"path":3063,"stem":3064},"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":3066,"path":3067,"stem":3068},"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":3070,"path":3071,"stem":3072},"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":3074,"path":3075,"stem":3076},"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":3078,"path":3079,"stem":3080,"children":3081},"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",[3082,3083,3087,3091,3095,3099],{"title":3078,"path":3079,"stem":3080},{"title":3084,"path":3085,"stem":3086},"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":3088,"path":3089,"stem":3090},"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":3092,"path":3093,"stem":3094},"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":3096,"path":3097,"stem":3098},"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":3100,"path":3101,"stem":3102},"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":3104,"path":3105,"stem":3106,"children":3107},"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",[3108,3109,3113,3117,3121,3125,3129,3133,3137,3141,3145,3149,3153],{"title":3104,"path":3105,"stem":3106},{"title":3110,"path":3111,"stem":3112},"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":3114,"path":3115,"stem":3116},"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":3118,"path":3119,"stem":3120},"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":3122,"path":3123,"stem":3124},"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":3126,"path":3127,"stem":3128},"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":3130,"path":3131,"stem":3132},"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":3134,"path":3135,"stem":3136},"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":3138,"path":3139,"stem":3140},"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":3142,"path":3143,"stem":3144},"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":3146,"path":3147,"stem":3148},"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":3150,"path":3151,"stem":3152},"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":3154,"path":3155,"stem":3156},"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":3158,"path":3159,"stem":3160,"children":3161},"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",[3162,3163,3167,3171,3175,3179,3183,3185,3189,3193,3197,3201,3205,3209,3213],{"title":3158,"path":3159,"stem":3160},{"title":3164,"path":3165,"stem":3166},"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":3168,"path":3169,"stem":3170},"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":3172,"path":3173,"stem":3174},"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":3176,"path":3177,"stem":3178},"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":3180,"path":3181,"stem":3182},"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":1604,"path":1603,"stem":3184},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F07.met05-j",{"title":3186,"path":3187,"stem":3188},"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":3190,"path":3191,"stem":3192},"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":3194,"path":3195,"stem":3196},"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":3198,"path":3199,"stem":3200},"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":3202,"path":3203,"stem":3204},"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":3206,"path":3207,"stem":3208},"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":3210,"path":3211,"stem":3212},"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":3214,"path":3215,"stem":3216},"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":3218,"path":3219,"stem":3220,"children":3221},"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",[3222,3223,3227,3231,3235,3239,3243,3247,3251,3255,3259,3263,3267],{"title":3218,"path":3219,"stem":3220},{"title":3224,"path":3225,"stem":3226},"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":3228,"path":3229,"stem":3230},"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":3232,"path":3233,"stem":3234},"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":3236,"path":3237,"stem":3238},"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":3240,"path":3241,"stem":3242},"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":3244,"path":3245,"stem":3246},"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":3248,"path":3249,"stem":3250},"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":3252,"path":3253,"stem":3254},"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":3256,"path":3257,"stem":3258},"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":3260,"path":3261,"stem":3262},"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":3264,"path":3265,"stem":3266},"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":3268,"path":3269,"stem":3270},"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":3272,"path":3273,"stem":3274,"children":3275},"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",[3276,3277,3281,3285,3289,3293,3297,3301,3305,3309,3313,3317,3321,3325],{"title":3272,"path":3273,"stem":3274},{"title":3278,"path":3279,"stem":3280},"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":3282,"path":3283,"stem":3284},"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":3286,"path":3287,"stem":3288},"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":3290,"path":3291,"stem":3292},"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":3294,"path":3295,"stem":3296},"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":3298,"path":3299,"stem":3300},"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":3302,"path":3303,"stem":3304},"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":3306,"path":3307,"stem":3308},"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":3310,"path":3311,"stem":3312},"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":3314,"path":3315,"stem":3316},"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":3318,"path":3319,"stem":3320},"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":3322,"path":3323,"stem":3324},"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":3326,"path":3327,"stem":3328},"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":3330,"path":3331,"stem":3332,"children":3333},"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",[3334,3335,3336,3337,3338,3342,3346,3350,3354,3358,3362,3366,3370,3374,3378],{"title":3330,"path":3331,"stem":3332},{"title":2659,"path":2608,"stem":2660},{"title":30,"path":2653,"stem":2655},{"title":2662,"path":2621,"stem":2663},{"title":3339,"path":3340,"stem":3341},"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":3343,"path":3344,"stem":3345},"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":3347,"path":3348,"stem":3349},"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":3351,"path":3352,"stem":3353},"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":3355,"path":3356,"stem":3357},"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":3359,"path":3360,"stem":3361},"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":3363,"path":3364,"stem":3365},"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":3367,"path":3368,"stem":3369},"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":3371,"path":3372,"stem":3373},"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":3375,"path":3376,"stem":3377},"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":3379,"path":3380,"stem":3381},"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":3383,"path":3384,"stem":3385,"children":3386},"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",[3387,3388,3392,3396,3400,3404,3408,3412,3416,3420,3424,3428],{"title":3383,"path":3384,"stem":3385},{"title":3389,"path":3390,"stem":3391},"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":3393,"path":3394,"stem":3395},"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":3397,"path":3398,"stem":3399},"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":3401,"path":3402,"stem":3403},"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":3405,"path":3406,"stem":3407},"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":3409,"path":3410,"stem":3411},"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":3413,"path":3414,"stem":3415},"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":3417,"path":3418,"stem":3419},"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":3421,"path":3422,"stem":3423},"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":3425,"path":3426,"stem":3427},"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":3429,"path":3430,"stem":3431},"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":3433,"path":3434,"stem":3435,"children":3436},"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",[3437,3438,3442,3446,3450,3460,3464,3468],{"title":3433,"path":3434,"stem":3435},{"title":3439,"path":3440,"stem":3441},"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":3443,"path":3444,"stem":3445},"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":3447,"path":3448,"stem":3449},"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":3451,"path":3452,"stem":3453,"children":3454},"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",[3455,3456],{"title":3451,"path":3452,"stem":3453},{"title":3457,"path":3458,"stem":3459},"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":3461,"path":3462,"stem":3463},"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":3465,"path":3466,"stem":3467},"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":3469,"path":3470,"stem":3471},"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":3473,"path":3474,"stem":3475,"children":3476},"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",[3477,3478,3482,3486,3490,3494,3498,3502,3506,3510,3514,3518,3522,3526],{"title":3473,"path":3474,"stem":3475},{"title":3479,"path":3480,"stem":3481},"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":3483,"path":3484,"stem":3485},"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":3487,"path":3488,"stem":3489},"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":3491,"path":3492,"stem":3493},"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":3495,"path":3496,"stem":3497},"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":3499,"path":3500,"stem":3501},"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":3503,"path":3504,"stem":3505},"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":3507,"path":3508,"stem":3509},"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":3511,"path":3512,"stem":3513},"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":3515,"path":3516,"stem":3517},"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":3519,"path":3520,"stem":3521},"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":3523,"path":3524,"stem":3525},"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":3527,"path":3528,"stem":3529},"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":3531,"path":3532,"stem":3533,"children":3534},"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",[3535,3536,3540,3544,3548,3552,3556],{"title":3531,"path":3532,"stem":3533},{"title":3537,"path":3538,"stem":3539},"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":3541,"path":3542,"stem":3543},"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":3545,"path":3546,"stem":3547},"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":3549,"path":3550,"stem":3551},"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":3553,"path":3554,"stem":3555},"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":3557,"path":3558,"stem":3559},"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":3561,"path":3562,"stem":3563,"children":3564},"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",[3565,3566,3570,3574,3578,3582],{"title":3561,"path":3562,"stem":3563},{"title":3567,"path":3568,"stem":3569},"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":3571,"path":3572,"stem":3573},"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":3575,"path":3576,"stem":3577},"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":3579,"path":3580,"stem":3581},"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":3583,"path":3584,"stem":3585},"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":3587,"path":3588,"stem":3589,"children":3590},"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",[3591,3592,3596,3600,3604],{"title":3587,"path":3588,"stem":3589},{"title":3593,"path":3594,"stem":3595},"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":3597,"path":3598,"stem":3599},"TSM01-J. Do not let the this reference escape during object construction","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F3.tsm01-j",{"title":3601,"path":3602,"stem":3603},"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":3605,"path":3606,"stem":3607},"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":3609,"path":3610,"stem":3611,"children":3612},"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",[3613,3614,3618,3622,3626,3630,3634],{"title":3609,"path":3610,"stem":3611},{"title":3615,"path":3616,"stem":3617},"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":3619,"path":3620,"stem":3621},"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":3623,"path":3624,"stem":3625},"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":3627,"path":3628,"stem":3629},"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":3631,"path":3632,"stem":3633},"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":3635,"path":3636,"stem":3637},"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":3639,"path":3640,"stem":3641,"children":3642},"Recommendations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F01.index",[3643,3644,3657,3675,3728,3753,3782,3803,3836,3869,3930,3955,3996],{"title":3639,"path":3640,"stem":3641},{"title":2822,"path":3645,"stem":3646,"children":3647},"\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",[3648,3649,3653],{"title":2822,"path":3645,"stem":3646},{"title":3650,"path":3651,"stem":3652},"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":3654,"path":3655,"stem":3656},"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":3658,"path":3659,"stem":3660,"children":3661},"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",[3662,3663,3667,3671],{"title":3658,"path":3659,"stem":3660},{"title":3664,"path":3665,"stem":3666},"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":3668,"path":3669,"stem":3670},"CON51-J. Do not assume that the sleep(), yield(), or getState() methods provide synchronization semantics","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F3.con51-j",{"title":3672,"path":3673,"stem":3674},"CON52-J. Document thread-safety and use annotations where applicable","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F4.con52-j",{"title":2848,"path":3676,"stem":3677,"children":3678},"\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",[3679,3680,3684,3688,3692,3696,3700,3704,3708,3712,3716,3720,3724],{"title":2848,"path":3676,"stem":3677},{"title":3681,"path":3682,"stem":3683},"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":3685,"path":3686,"stem":3687},"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":3689,"path":3690,"stem":3691},"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":3693,"path":3694,"stem":3695},"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":3697,"path":3698,"stem":3699},"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":3701,"path":3702,"stem":3703},"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":3705,"path":3706,"stem":3707},"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":3709,"path":3710,"stem":3711},"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":3713,"path":3714,"stem":3715},"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":3717,"path":3718,"stem":3719},"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":3721,"path":3722,"stem":3723},"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":3725,"path":3726,"stem":3727},"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":2866,"path":3729,"stem":3730,"children":3731},"\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",[3732,3733,3737,3741,3745,3749],{"title":2866,"path":3729,"stem":3730},{"title":3734,"path":3735,"stem":3736},"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":3738,"path":3739,"stem":3740},"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":3742,"path":3743,"stem":3744},"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":3746,"path":3747,"stem":3748},"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":3750,"path":3751,"stem":3752},"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":2912,"path":3754,"stem":3755,"children":3756},"\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",[3757,3758,3762,3766,3770,3774,3778],{"title":2912,"path":3754,"stem":3755},{"title":3759,"path":3760,"stem":3761},"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":3763,"path":3764,"stem":3765},"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":3767,"path":3768,"stem":3769},"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":3771,"path":3772,"stem":3773},"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":3775,"path":3776,"stem":3777},"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":3779,"path":3780,"stem":3781},"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":2950,"path":3783,"stem":3784,"children":3785},"\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",[3786,3787,3791,3795,3799],{"title":2950,"path":3783,"stem":3784},{"title":3788,"path":3789,"stem":3790},"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":3792,"path":3793,"stem":3794},"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":3796,"path":3797,"stem":3798},"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":3800,"path":3801,"stem":3802},"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":3024,"path":3804,"stem":3805,"children":3806},"\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",[3807,3808,3812,3816,3820,3824,3828,3832],{"title":3024,"path":3804,"stem":3805},{"title":3809,"path":3810,"stem":3811},"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":3813,"path":3814,"stem":3815},"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":3817,"path":3818,"stem":3819},"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":3821,"path":3822,"stem":3823},"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":3825,"path":3826,"stem":3827},"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":3829,"path":3830,"stem":3831},"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":3833,"path":3834,"stem":3835},"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":3158,"path":3837,"stem":3838,"children":3839},"\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",[3840,3841,3845,3849,3853,3857,3861,3865],{"title":3158,"path":3837,"stem":3838},{"title":3842,"path":3843,"stem":3844},"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":3846,"path":3847,"stem":3848},"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":3850,"path":3851,"stem":3852},"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":3854,"path":3855,"stem":3856},"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":3858,"path":3859,"stem":3860},"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":3862,"path":3863,"stem":3864},"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":3866,"path":3867,"stem":3868},"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":3218,"path":3870,"stem":3871,"children":3872},"\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",[3873,3874,3878,3882,3886,3890,3894,3898,3902,3906,3910,3914,3918,3922,3926],{"title":3218,"path":3870,"stem":3871},{"title":3875,"path":3876,"stem":3877},"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":3879,"path":3880,"stem":3881},"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":3883,"path":3884,"stem":3885},"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":3887,"path":3888,"stem":3889},"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":3891,"path":3892,"stem":3893},"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":3895,"path":3896,"stem":3897},"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":3899,"path":3900,"stem":3901},"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":3903,"path":3904,"stem":3905},"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":3907,"path":3908,"stem":3909},"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":3911,"path":3912,"stem":3913},"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":3915,"path":3916,"stem":3917},"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":3919,"path":3920,"stem":3921},"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":3923,"path":3924,"stem":3925},"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":3927,"path":3928,"stem":3929},"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":3272,"path":3931,"stem":3932,"children":3933},"\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",[3934,3935,3939,3943,3947,3951],{"title":3272,"path":3931,"stem":3932},{"title":3936,"path":3937,"stem":3938},"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":3940,"path":3941,"stem":3942},"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":3944,"path":3945,"stem":3946},"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":3948,"path":3949,"stem":3950},"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":3952,"path":3953,"stem":3954},"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":3330,"path":3956,"stem":3957,"children":3958},"\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",[3959,3960,3964,3968,3972,3976,3980,3984,3988,3992],{"title":3330,"path":3956,"stem":3957},{"title":3961,"path":3962,"stem":3963},"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":3965,"path":3966,"stem":3967},"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":3969,"path":3970,"stem":3971},"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":3973,"path":3974,"stem":3975},"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":3977,"path":3978,"stem":3979},"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":3981,"path":3982,"stem":3983},"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":3985,"path":3986,"stem":3987},"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":3989,"path":3990,"stem":3991},"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":3993,"path":3994,"stem":3995},"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":3383,"path":3997,"stem":3998,"children":3999},"\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",[4000,4001,4005,4009,4013,4017,4021,4025,4029,4033],{"title":3383,"path":3997,"stem":3998},{"title":4002,"path":4003,"stem":4004},"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":4006,"path":4007,"stem":4008},"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":4010,"path":4011,"stem":4012},"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":4014,"path":4015,"stem":4016},"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":4018,"path":4019,"stem":4020},"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":4022,"path":4023,"stem":4024},"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":4026,"path":4027,"stem":4028},"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":4030,"path":4031,"stem":4032},"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":4034,"path":4035,"stem":4036},"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":4038,"path":4039,"stem":4040,"children":4041},"Back Matter","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F1.index",[4042,4043,4047,4051,4055,4059,4185,4211],{"title":4038,"path":4039,"stem":4040},{"title":4044,"path":4045,"stem":4046},"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":4048,"path":4049,"stem":4050},"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":4052,"path":4053,"stem":4054},"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":4056,"path":4057,"stem":4058},"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":4060,"path":4061,"stem":4062,"children":4063},"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",[4064,4065,4069,4073,4077,4081,4085,4089,4093,4097,4101,4105,4109,4113,4117,4121,4125,4129,4133,4137,4141,4145,4149,4153,4157,4161,4165,4169,4173,4177,4181],{"title":4060,"path":4061,"stem":4062},{"title":4066,"path":4067,"stem":4068},"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":4070,"path":4071,"stem":4072},"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":4074,"path":4075,"stem":4076},"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":4078,"path":4079,"stem":4080},"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":4082,"path":4083,"stem":4084},"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":4086,"path":4087,"stem":4088},"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":4090,"path":4091,"stem":4092},"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":4094,"path":4095,"stem":4096},"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":4098,"path":4099,"stem":4100},"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":4102,"path":4103,"stem":4104},"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":4106,"path":4107,"stem":4108},"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":4110,"path":4111,"stem":4112},"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":4114,"path":4115,"stem":4116},"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":4118,"path":4119,"stem":4120},"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":4122,"path":4123,"stem":4124},"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":4126,"path":4127,"stem":4128},"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":4130,"path":4131,"stem":4132},"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":4134,"path":4135,"stem":4136},"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":4138,"path":4139,"stem":4140},"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":4142,"path":4143,"stem":4144},"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":4146,"path":4147,"stem":4148},"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":4150,"path":4151,"stem":4152},"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":4154,"path":4155,"stem":4156},"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":4158,"path":4159,"stem":4160},"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":4162,"path":4163,"stem":4164},"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":4166,"path":4167,"stem":4168},"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":4170,"path":4171,"stem":4172},"The Checker Framework","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fthe-checker-framework","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F28.the-checker-framework",{"title":4174,"path":4175,"stem":4176},"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":4178,"path":4179,"stem":4180},"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":4182,"path":4183,"stem":4184},"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":4186,"path":4187,"stem":4188,"children":4189},"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",[4190,4191,4195,4199,4203,4207],{"title":4186,"path":4187,"stem":4188},{"title":4192,"path":4193,"stem":4194},"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":4196,"path":4197,"stem":4198},"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":4200,"path":4201,"stem":4202},"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":4204,"path":4205,"stem":4206},"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":4208,"path":4209,"stem":4210},"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":4212,"path":4213,"stem":4214},"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":4216,"path":4217,"stem":4218,"children":4219},"Admin","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F1.index",[4220,4221,4225,4229,4233,4237],{"title":4216,"path":4217,"stem":4218},{"title":4222,"path":4223,"stem":4224},"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":4226,"path":4227,"stem":4228},"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":4230,"path":4231,"stem":4232},"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":4234,"path":4235,"stem":4236},"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":4234,"path":4235,"stem":4238},"6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F6.todo-list",1775657812952]