From 48681e8877e48ddeb878cdd74ff22df1d264773c Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Fri, 25 Sep 2015 20:01:27 -0400 Subject: [PATCH] Move assert where it belongs --- .../google/refine/importers/tree/TreeImportingParserBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/src/com/google/refine/importers/tree/TreeImportingParserBase.java b/main/src/com/google/refine/importers/tree/TreeImportingParserBase.java index 94cea7cd4..1f2cfb403 100644 --- a/main/src/com/google/refine/importers/tree/TreeImportingParserBase.java +++ b/main/src/com/google/refine/importers/tree/TreeImportingParserBase.java @@ -215,9 +215,9 @@ abstract public class TreeImportingParserBase extends ImportingParserBase { int filenameColumnIndex = -1; if (includeFileSources) { filenameColumnIndex = addFilenameColumn(project); + // If the column add fails for any reason, we'll end up overwriting data in the first column + assert filenameColumnIndex == 0; } - // If the column add fails for any reason, we'll end up overwriting data in the first column - assert filenameColumnIndex == 0; XmlImportUtilities.importTreeData(treeParser, project, recordPath, rootColumnGroup, limit2, new ImportParameters(trimStrings, storeEmptyStrings, guessCellValueTypes, includeFileSources,