throw new IllegalArgumentException("file must not be a directory");
}
- OPCPackage pack = new ZipPackage(file, access);
+ OPCPackage pack = new ZipPackage(file, access); //NOSONAR
try {
if (pack.partList == null && access != PackageAccess.WRITE) {
pack.getParts();
public boolean untrackColumns(Collection<Integer> columns)
{
untrackedColumns.addAll(columns);
- return maxColumnWidths.keySet().removeAll(columns);
+ boolean result = false;
+ for (Integer col : columns) {
+ result = maxColumnWidths.remove(col) != null || result;
+ }
+ return result;
}
/**
*/
public boolean untrackColumn(int column) {
untrackedColumns.add(column);
- return maxColumnWidths.keySet().remove(column);
+ return maxColumnWidths.remove(column) != null;
}
/**