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) {
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);
formatMap.put(format, index);
return index;
return indexPrimitive;
}
@Override

Loading…
Cancel
Save