mirror of
https://github.com/apache/commons-csv.git
synced 2025-02-10 03:56:05 +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
|
* @return <tt>true</tt> is comments are supported, <tt>false</tt> otherwise
|
||||||
*/
|
*/
|
||||||
public boolean isCommentingDisabled() {
|
public boolean isCommentingEnabled() {
|
||||||
return this.commentStart == DISABLED;
|
return this.commentStart != DISABLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -98,7 +98,7 @@ public class CSVPrinter {
|
|||||||
* @param comment the comment to output
|
* @param comment the comment to output
|
||||||
*/
|
*/
|
||||||
public void printComment(String comment) throws IOException {
|
public void printComment(String comment) throws IOException {
|
||||||
if (format.isCommentingDisabled()) {
|
if (!format.isCommentingEnabled()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!newLine) {
|
if (!newLine) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user