diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java
index 0cb637e9..ff41b37d 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -232,8 +232,8 @@ public class CSVFormat implements Serializable {
*
* @return true is comments are supported, false otherwise
*/
- public boolean isCommentingDisabled() {
- return this.commentStart == DISABLED;
+ public boolean isCommentingEnabled() {
+ return this.commentStart != DISABLED;
}
/**
diff --git a/src/main/java/org/apache/commons/csv/CSVPrinter.java b/src/main/java/org/apache/commons/csv/CSVPrinter.java
index c32b4f1c..1f6288d2 100644
--- a/src/main/java/org/apache/commons/csv/CSVPrinter.java
+++ b/src/main/java/org/apache/commons/csv/CSVPrinter.java
@@ -98,7 +98,7 @@ public class CSVPrinter {
* @param comment the comment to output
*/
public void printComment(String comment) throws IOException {
- if (format.isCommentingDisabled()) {
+ if (!format.isCommentingEnabled()) {
return;
}
if (!newLine) {