Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,9 @@ public ReadCache readCache(PackagePart sharedStringsTablePackagePart) {

// In order to be compatible with the code
// If the user set up `maxCacheActivateSize`, then continue using it
if (maxCacheActivateSize != null) {
return new Ehcache(maxCacheActivateSize, maxCacheActivateBatchCount);
} else {
if (maxCacheActivateBatchCount == null) {
maxCacheActivateBatchCount = DEFAULT_MAX_EHCACHE_ACTIVATE_BATCH_COUNT;
}
return new Ehcache(maxCacheActivateSize, maxCacheActivateBatchCount);
if (maxCacheActivateBatchCount == null) {
maxCacheActivateBatchCount = DEFAULT_MAX_EHCACHE_ACTIVATE_BATCH_COUNT;
}
return new Ehcache(maxCacheActivateSize, maxCacheActivateBatchCount);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,6 @@ public static void setExcelStyleRoundingMode(DecimalFormat format, RoundingMode
/**
* Format class for Excel's SSN format. This class mimics Excel's built-in SSN formatting.
*/
@SuppressWarnings("serial")
private static final class SSNFormat extends Format {
private static final DecimalFormat df = createIntegerOnlyFormat("000000000");

Expand Down Expand Up @@ -777,7 +776,6 @@ public Object parseObject(String source, ParsePosition pos) {
/**
* Format class for Excel Zip + 4 format. This class mimics Excel's built-in formatting for Zip + 4.
*/
@SuppressWarnings("serial")
private static final class ZipPlusFourFormat extends Format {
private static final DecimalFormat df = createIntegerOnlyFormat("000000000");

Expand Down Expand Up @@ -807,7 +805,6 @@ public Object parseObject(String source, ParsePosition pos) {
/**
* Format class for Excel phone number format. This class mimics Excel's built-in phone number formatting.
*/
@SuppressWarnings("serial")
private static final class PhoneFormat extends Format {
private static final DecimalFormat df = createIntegerOnlyFormat("##########");

Expand Down Expand Up @@ -857,7 +854,7 @@ public Object parseObject(String source, ParsePosition pos) {
* non-cachable wrapper around a
* {@link CellFormatResult}
*/
private final class CellFormatResultWrapper extends Format {
private static final class CellFormatResultWrapper extends Format {
private final CellFormatResult result;

private CellFormatResultWrapper(CellFormatResult result) {
Expand Down