}
if (obj instanceof StringProperty) {
StringProperty sp = (StringProperty)obj;
- return (sp.str == this.str
- || sp.str.equals(this.str));
+ return sp.str.equals(this.str);
}
return false;
}
// convert number to integer
try {
if (number != null && number.trim().length() > 0) {
- result = Float.valueOf(number);
+ result = Float.parseFloat(number);
}
} catch (Exception e) {
throw new FOPException("number format error: cannot convert '"
float result = 0;
size = size.substring(0, size.length() - sFONTSUFFIX.length());
try {
- result = (Float.valueOf(size));
+ result = Float.parseFloat(size);
} catch (Exception e) {
throw new FOPException("Invalid font size value '" + size + "'");
}
<Class name="org.apache.fop.servlet.FopServlet"/>
</And>
</Match>
+
+ <Match>
+ <Bug pattern="DMI_RANDOM_USED_ONLY_ONCE"/>
+ </Match>
+ <Match>
+ <Bug pattern="FL_FLOATS_AS_LOOP_COUNTERS"/>
+ </Match>
+ <Match>
+ <Bug pattern="IM_MULTIPLYING_RESULT_OF_IREM"/>
+ </Match>
+ <Match>
+ <Bug pattern="MC_OVERRIDABLE_METHOD_CALL_IN_CONSTRUCTOR"/>
+ </Match>
+ <Match>
+ <Bug pattern="MS_EXPOSE_REP"/>
+ </Match>
+
<!-- Bug in findbugs? -->
<Match>
<Bug pattern="RC_REF_COMPARISON"/>