FindBugs warning: ExcelStyleDateFormatter doesn't override java.text.SimpleDAtaFormat.equals(Object)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717930 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3b24eaacd3
commit
26abacebaf
@ -179,4 +179,14 @@ public class ExcelStyleDateFormatter extends SimpleDateFormat {
|
|||||||
|
|
||||||
return new StringBuffer(s);
|
return new StringBuffer(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (!(o instanceof ExcelStyleDateFormatter)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
ExcelStyleDateFormatter other = (ExcelStyleDateFormatter) o;
|
||||||
|
return dateToBeFormatted == other.dateToBeFormatted;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user