}
protected long getNextAxId(CTPlotArea plotArea) {
- long totalAxisCount = 0L
+ return 0L
+ plotArea.sizeOfValAxArray()
+ plotArea.sizeOfCatAxArray()
+ plotArea.sizeOfDateAxArray()
+ plotArea.sizeOfSerAxArray();
- return totalAxisCount;
}
}
if (val != null && !val.isEmpty()) {
int codepage = ((LongPropertyValue) val.get(0)).getValue();
try {
- String encoding = CodePageUtil.codepageToEncoding(codepage, true);
- generalcodepage = encoding;
+ generalcodepage = CodePageUtil.codepageToEncoding(codepage, true);
} catch (UnsupportedEncodingException e) {
LOG.atWarn().log("Invalid codepage ID {} set for the message via {}, ignoring", box(codepage), MAPIProperty.MESSAGE_CODEPAGE);
}
int codepage = LocaleUtil.getDefaultCodePageFromLCID(lcid);
try {
if (codepage != 0) {
- String encoding = CodePageUtil.codepageToEncoding(codepage, true);
- generalcodepage = encoding;
+ generalcodepage = CodePageUtil.codepageToEncoding(codepage, true);
}
} catch (UnsupportedEncodingException e) {
LOG.atWarn().log("Invalid codepage ID {}from locale ID{} set for the message via {}, ignoring", box(codepage), box(lcid), MAPIProperty.MESSAGE_LOCALE_ID);
if (header.toLowerCase(LocaleUtil.getUserLocale()).startsWith("content-type")) {
Matcher m = GUESS_7_BIT_ENCODING_PATTERN.matcher(header);
if (m.matches()) {
- String encoding = m.group(1);
- generalcodepage = encoding;
+ generalcodepage = m.group(1);
}
}
}
public String toString()
{
- String builder = "[Grfhic]\n" +
+ return "[Grfhic]\n" +
" .grfhic = " +
" ( " + field_1_grfhic + " )\n" +
" .fHtmlChecked = " + isFHtmlChecked() + '\n' +
" .fHtmlHangingIndentBeneathNumber = " + isFHtmlHangingIndentBeneathNumber() + '\n' +
" .fHtmlBuiltInBullet = " + isFHtmlBuiltInBullet() + '\n' +
"[/Grfhic]";
- return builder;
}
/**
RefListEval refListEval = (RefListEval) valueEval;
result = refListEval.getList().size();
}
- NumberEval numberEval = new NumberEval(new NumberPtg(result));
- return numberEval;
+ return new NumberEval(new NumberPtg(result));
} catch (Exception e) {
return ErrorEval.VALUE_INVALID;
}