FindBugs fixes

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711708 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2015-10-31 23:13:35 +00:00
parent 8ebc22a84e
commit 72834dfffa
2 changed files with 6 additions and 6 deletions

View File

@ -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)
{

View File

@ -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 {