import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
String ref = address.formatAsString();
CTSelection ctsel = getSheetTypeSelection();
ctsel.setActiveCell(ref);
- ctsel.setSqref(Arrays.asList(ref));
+ ctsel.setSqref(Collections.singletonList(ref));
}
/**
package org.apache.poi.xssf.usermodel.helpers;
-import java.util.Arrays;
+import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.Set;
}
public static void addIgnoredErrors(CTIgnoredError err, String ref, IgnoredErrorType... ignoredErrorTypes) {
- err.setSqref(Arrays.asList(ref));
+ err.setSqref(Collections.singletonList(ref));
for (IgnoredErrorType errType : ignoredErrorTypes) {
XSSFIgnoredErrorHelper.set(errType, err);
}