mirror of
https://github.com/apache/commons-csv.git
synced 2025-02-09 19:45:38 +00:00
CSV-79 - CSVFormat.isCommentingDisabled() is confusing/confused
renamed method to isCommentingEnabled and fixed code git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1303483 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d0035e6c7a
commit
9fb2b4f2b1
@ -232,8 +232,8 @@ public class CSVFormat implements Serializable {
|
||||
*
|
||||
* @return <tt>true</tt> is comments are supported, <tt>false</tt> otherwise
|
||||
*/
|
||||
public boolean isCommentingDisabled() {
|
||||
return this.commentStart == DISABLED;
|
||||
public boolean isCommentingEnabled() {
|
||||
return this.commentStart != DISABLED;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user