lang -> lang3 (LANG-563)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@889228 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
14e9231cb0
commit
fdbdd0174a
|
@ -25,28 +25,28 @@
|
|||
|
||||
<!-- Reason: Optimization to use == -->
|
||||
<Match>
|
||||
<Class name="org.apache.commons.lang.BooleanUtils" />
|
||||
<Class name="org.apache.commons.lang3.BooleanUtils" />
|
||||
<Method name="toBoolean" />
|
||||
<Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ" />
|
||||
</Match>
|
||||
|
||||
<!-- Reason: Optimization to use == -->
|
||||
<Match>
|
||||
<Class name="org.apache.commons.lang.StringUtils" />
|
||||
<Class name="org.apache.commons.lang3.StringUtils" />
|
||||
<Method name="indexOfDifference"/>
|
||||
<Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ" />
|
||||
</Match>
|
||||
|
||||
<!-- Reason: Very much intended to do a fall through on the switch -->
|
||||
<Match>
|
||||
<Class name="org.apache.commons.lang.math.NumberUtils" />
|
||||
<Class name="org.apache.commons.lang3.math.NumberUtils" />
|
||||
<Method name="createNumber"/>
|
||||
<Bug pattern="SF_SWITCH_FALLTHROUGH" />
|
||||
</Match>
|
||||
|
||||
<!-- Reason: Very much intended to do a fall through on the switch -->
|
||||
<Match>
|
||||
<Class name="org.apache.commons.lang.time.DateUtils" />
|
||||
<Class name="org.apache.commons.lang3.time.DateUtils" />
|
||||
<Method name="getFragment"/>
|
||||
<Bug pattern="SF_SWITCH_FALLTHROUGH" />
|
||||
</Match>
|
||||
|
@ -54,41 +54,41 @@
|
|||
<!-- Reason: hashCode is lazily loaded in Range classes -->
|
||||
<!-- TODO: Work out why regex didn't work here -->
|
||||
<Match>
|
||||
<Class name="org.apache.commons.lang.math.DoubleRange" />
|
||||
<Class name="org.apache.commons.lang3.math.DoubleRange" />
|
||||
<Field name="hashCode" />
|
||||
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Class name="org.apache.commons.lang.math.FloatRange" />
|
||||
<Class name="org.apache.commons.lang3.math.FloatRange" />
|
||||
<Field name="hashCode" />
|
||||
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Class name="org.apache.commons.lang.math.IntRange" />
|
||||
<Class name="org.apache.commons.lang3.math.IntRange" />
|
||||
<Field name="hashCode" />
|
||||
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Class name="org.apache.commons.lang.math.LongRange" />
|
||||
<Class name="org.apache.commons.lang3.math.LongRange" />
|
||||
<Field name="hashCode" />
|
||||
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Class name="org.apache.commons.lang.math.NumberRange" />
|
||||
<Class name="org.apache.commons.lang3.math.NumberRange" />
|
||||
<Field name="hashCode" />
|
||||
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
|
||||
</Match>
|
||||
|
||||
<!-- Reason: toProperString is lazily loaded -->
|
||||
<Match>
|
||||
<Class name="org.apache.commons.lang.math.Fraction" />
|
||||
<Class name="org.apache.commons.lang3.math.Fraction" />
|
||||
<Field name="toProperString" />
|
||||
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
|
||||
</Match>
|
||||
|
||||
<!-- Reason: It does call super.clone(), but via a subsequent method -->
|
||||
<Match>
|
||||
<Class name="org.apache.commons.lang.text.StrTokenizer" />
|
||||
<Class name="org.apache.commons.lang3.text.StrTokenizer" />
|
||||
<Method name="clone"/>
|
||||
<Bug pattern="CN_IDIOM_NO_SUPER_CALL" />
|
||||
</Match>
|
||||
|
|
Loading…
Reference in New Issue