Browse Source

削减一次多余的java.lang.Short#shortValue调用

pull/2117/head
XenoAmess 3 years ago
parent
commit
bdc85e0445
  1. 5
      src/main/java/com/alibaba/excel/metadata/csv/CsvDataFormat.java

5
src/main/java/com/alibaba/excel/metadata/csv/CsvDataFormat.java

@ -45,10 +45,11 @@ public class CsvDataFormat implements DataFormat {
if (index != null) { if (index != null) {
return index; return index;
} }
index = (short)(formatList.size() + BuiltinFormats.MIN_CUSTOM_DATA_FORMAT_INDEX); short indexPrimitive = (short)(formatList.size() + BuiltinFormats.MIN_CUSTOM_DATA_FORMAT_INDEX);
index = indexPrimitive;
formatList.add(format); formatList.add(format);
formatMap.put(format, index); formatMap.put(format, index);
return index; return indexPrimitive;
} }
@Override @Override

Loading…
Cancel
Save