New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Mon Oct 11 04:28:07 UTC 2021


Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.

1 new defect(s) introduced to LibreOffice found with Coverity Scan.
1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 1492820:  SpotBugs: Performance  (FB.WMI_WRONG_MAP_ITERATOR)
/qadevOOo/tests/java/ifc/text/_NumberingLevel.java: 143 in ifc.text._NumberingLevel.testPropertyArray()()


________________________________________________________________________________________________________
*** CID 1492820:  SpotBugs: Performance  (FB.WMI_WRONG_MAP_ITERATOR)
/qadevOOo/tests/java/ifc/text/_NumberingLevel.java: 143 in ifc.text._NumberingLevel.testPropertyArray()()
137                 // get rest of properties and check if they are optional
138                 if (! NumberingLevel.isEmpty()){
139                     for (Iterator<String> e = NumberingLevel.keySet().iterator() ; e.hasNext() ;) {
140                         String property = e.next();
141     
142                         // if some elements are not optional -> failed
>>>     CID 1492820:  SpotBugs: Performance  (FB.WMI_WRONG_MAP_ITERATOR)
>>>     ifc.text._NumberingLevel.testPropertyArray() makes inefficient use of keySet iterator instead of entrySet iterator.
143                         if ( ! NumberingLevel.get(property).booleanValue() ){
144     
145                             if ( status ) {
146                                 log.println("FAILED: com.sun.star.text.NumberingLevel -> " +
147                                             "could not find not optional property:");
148                             }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DTst2_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJi-2B3Xj-2BB3rIzdNTPogSmZqCenrqsgmhMvk-2B8-2FHP7Svtlv2Qwtwl8EK-2FjZh5-2BiIJX-2FGHnFA6dV4MbwbY-2ByBuBpShjUvl0SitzzA93IEzgOTUaw2rawkWzfxUtI7D9ipK8Q0LkSMx9KsNd33tE7zCrZlEFWpvwMMuDf-2BkdEGiiRirRQ-3D



More information about the LibreOffice mailing list