Home | History | Annotate | Download | only in core
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3 *  2016 and later: Unicode, Inc. and others.
      4 * License & terms of use: http://www.unicode.org/copyright.html#License
      5 *******************************************************************************
      6 * Copyright (C) 2013, International Business Machines Corporation and         *
      7 * others. All Rights Reserved.                                                *
      8 *******************************************************************************
      9 -->
     10 <FindBugsFilter>
     11 	<Match>
     12 		<Class name="com.ibm.icu.impl.locale.AsciiUtil"/>
     13 		<Or>
     14 			<Method name="caseIgnoreCompare" params="java.lang.String,java.lang.String" returns="int"/>
     15 			<Method name="caseIgnoreMatch" params="java.lang.String,java.lang.String" returns="boolean"/>
     16 		</Or>
     17 		<Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ"/>
     18 	</Match>
     19 
     20 	<Match>
     21 		<Class name="com.ibm.icu.text.UTF16$StringComparator"/>
     22 		<Method name="compare" params="java.lang.String,java.lang.String" returns="int"/>
     23 		<Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ"/>
     24 	</Match>
     25 
     26 	<Match>
     27 		<Class name="com.ibm.icu.impl.RelativeDateFormat"/>
     28 		<Field name="fDateFormat"/>
     29 		<Bug pattern="UWF_UNWRITTEN_FIELD"/>
     30 	</Match>
     31 
     32 	<Match>
     33 		<Class name="com.ibm.icu.impl.CalendarAstronomer"/>
     34 		<Or>
     35 			<Method name="eclipticObliquity" params="" returns="double"/>
     36 			<Method name="getJulianCentury" params="" returns="double"/>
     37 			<Method name="getJulianDay" params="" returns="double"/>
     38 		</Or>
     39 		<Bug pattern="FE_FLOATING_POINT_EQUALITY"/>
     40 	</Match>
     41 
     42 	<Match>
     43 		<Class name="com.ibm.icu.text.DecimalFormat"/>
     44 		<Method name="round" params="double,double,double,int,boolean" returns="double"/>
     45 		<Bug pattern="FE_FLOATING_POINT_EQUALITY"/>
     46 	</Match>
     47 
     48 	<Match>
     49 		<Class name="com.ibm.icu.text.NFRule"/>
     50 		<Method name="doParse" params="java.lang.String,java.text.ParsePosition,boolean,double" returns="java.lang.Number"/>
     51 		<Bug pattern="FE_FLOATING_POINT_EQUALITY"/>
     52 	</Match>
     53 
     54 	<Match>
     55 		<Class name="com.ibm.icu.impl.UnicodeRegex"/>
     56 		<Field name="log"/>
     57 		<Bug pattern="UWF_NULL_FIELD"/>
     58 	</Match>
     59 
     60 </FindBugsFilter>
     61