Skip to content

Commit 4e8c781

Browse files
committed
PMD: Remove useless parentheses
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1742467 13f79535-47bb-0310-9956-ffa450edef68
1 parent cf1460b commit 4e8c781

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/csv/CSVPrinter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ private void printAndQuote(final Object object, final CharSequence value, final
231231
char c = value.charAt(pos);
232232

233233
// TODO where did this rule come from?
234-
if (newRecord && (c < '0' || (c > '9' && c < 'A') || (c > 'Z' && c < 'a') || (c > 'z'))) {
234+
if (newRecord && (c < '0' || c > '9' && c < 'A' || c > 'Z' && c < 'a' || c > 'z')) {
235235
quote = true;
236236
} else if (c <= COMMENT) {
237237
// Some other chars at the start of a value caused the parser to fail, so for now

0 commit comments

Comments
 (0)