From b033db6a210df04570475e252b835001e8517714 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Wed, 11 May 2016 21:32:00 +0000 Subject: [PATCH] Reuse constant instead of magic char. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1743434 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/csv/CSVFormat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java index b0922335..203bc5bb 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -1164,10 +1164,10 @@ public final class CSVFormat implements Serializable { int len = count; int pos = 0; - while (pos < len && charSequence.charAt(pos) <= Constants.SP) { + while (pos < len && charSequence.charAt(pos) <= SP) { pos++; } - while (pos < len && charSequence.charAt(len - 1) <= Constants.SP) { + while (pos < len && charSequence.charAt(len - 1) <= SP) { len--; } return pos > 0 || len < count ? charSequence.subSequence(pos, len) : charSequence;