Skip to content

Commit 9acd5cd

Browse files
committed
bad logic, should use || rather than &&, but instanceof covers the null case anyway
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1200112 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2417ea6 commit 9acd5cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/csv/writer/CSVConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public void setFieldHeader(boolean fieldHeader) {
283283
* @see java.lang.Object#equals(java.lang.Object)
284284
*/
285285
public boolean equals(Object obj) {
286-
if (obj == null && !(obj instanceof CSVConfig)) {
286+
if (!(obj instanceof CSVConfig)) {
287287
return false;
288288
}
289289
return super.equals(obj);

0 commit comments

Comments
 (0)