mirror of https://github.com/apache/poi.git
FindBugs fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711708 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
785b37342e
commit
944253c786
|
@ -505,10 +505,9 @@ public class MutableSection extends Section
|
|||
throws IOException
|
||||
{
|
||||
int length = TypeWriter.writeUIntToStream(out, dictionary.size());
|
||||
for (final Iterator<Long> i = dictionary.keySet().iterator(); i.hasNext();)
|
||||
{
|
||||
final Long key = i.next();
|
||||
final String value = dictionary.get(key);
|
||||
for (Map.Entry<Long,String> ls : dictionary.entrySet()) {
|
||||
final Long key = ls.getKey();
|
||||
final String value = ls.getValue();
|
||||
|
||||
if (codepage == CodePageUtil.CP_UNICODE)
|
||||
{
|
||||
|
|
|
@ -76,8 +76,9 @@ public final class CollaboratingWorkbooksEnvironment {
|
|||
}
|
||||
public static void setupFormulaEvaluator(Map<String,FormulaEvaluator> evaluators) {
|
||||
Map<String, WorkbookEvaluator> evaluatorsByName = new HashMap<String, WorkbookEvaluator>(evaluators.size());
|
||||
for (String wbName : evaluators.keySet()) {
|
||||
FormulaEvaluator eval = evaluators.get(wbName);
|
||||
for (Map.Entry<String,FormulaEvaluator> swb : evaluators.entrySet()) {
|
||||
String wbName = swb.getKey();
|
||||
FormulaEvaluator eval = swb.getValue();
|
||||
if (eval instanceof WorkbookEvaluatorProvider) {
|
||||
evaluatorsByName.put(wbName, ((WorkbookEvaluatorProvider)eval)._getWorkbookEvaluator());
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue