Updated Branches: refs/heads/camel-2.12.x d0c4a8255 -> 56fe3ef3a
CAMEL-7142: Polished the comment. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/56fe3ef3 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/56fe3ef3 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/56fe3ef3 Branch: refs/heads/camel-2.12.x Commit: 56fe3ef3af7491f587749cd907f0c3ad5f04511d Parents: d0c4a82 Author: Babak Vahdat <bvah...@apache.org> Authored: Sat Jan 18 19:29:41 2014 +0100 Committer: Babak Vahdat <bvah...@apache.org> Committed: Sat Jan 18 19:30:51 2014 +0100 ---------------------------------------------------------------------- .../java/org/apache/camel/dataformat/csv/CsvDataFormat.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/56fe3ef3/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/CsvDataFormat.java ---------------------------------------------------------------------- diff --git a/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/CsvDataFormat.java b/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/CsvDataFormat.java index 7994ab6..9d42739 100644 --- a/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/CsvDataFormat.java +++ b/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/CsvDataFormat.java @@ -69,9 +69,9 @@ public class CsvDataFormat implements DataFormat { for (Field field : CSVStrategy.class.getFields()) { try { if (field.get(null) == csvStrategy) { - // return a safe copy of the static constant so that we don't cause any side effect - // by the other CsvDataFormat objects in case we would change any property on this - // strategy itself (e.g. it's delimiter through the #unmarshal() method below) + // return a safe copy of the declared constant so that we don't cause any side effect + // by (potentially) other CsvDataFormat objects in use as we change properties of + // the strategy (e.g. it's set delimiter through the #unmarshal() method below) LOGGER.debug("Returning a clone of {} as it is the declared constant {} by the CSVStrategy class", csvStrategy, field.getName()); return (CSVStrategy) csvStrategy.clone(); @@ -230,4 +230,4 @@ public class CsvDataFormat implements DataFormat { } } -} \ No newline at end of file +}