bug 59748: replace remaining Hashtable usages in contrib/poi-ruby and hssf examples

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1750182 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-06-25 05:22:05 +00:00
parent 6f0825c5b4
commit a0f9c1d707
2 changed files with 6 additions and 5 deletions

View File

@ -34,7 +34,7 @@
#include <java/lang/Double.h>
#include <java/io/StringWriter.h>
#include <java/io/PrintWriter.h>
#include <java/util/Hashtable.h>
#include <java/util/HashMap.h>
#include <java/util/Date.h>
#include <java/util/Calendar.h>
#include <java/lang/System.h>
@ -74,7 +74,7 @@ typedef JArray<jstring> *jstringArray;
static java::lang::Thread *nextThread;
static java::util::Hashtable *objects;
static java::util::HashMap *objects;
static void store_reference(jobject object) {
@ -599,9 +599,9 @@ static const jshort U_SINGLE_ACCOUNTING;
JvAttachCurrentThread(NULL, NULL);
nextThread = new java::lang::Thread();
objects = new java::util::Hashtable();
objects = new java::util::HashMap();
java::util::Hashtable *props = (java::util::Hashtable *)
java::util::HashMap *props = (java::util::HashMap *)
java::lang::System::getProperties();
props->put(JvNewStringUTF("inRuby"), objects);

View File

@ -127,7 +127,8 @@ public class InCellLists {
// a Hashtable or HashMap as the ArrayList will preserve the
// ordering of the items added to it; the first item added will
// be the first item recovered and the last item added, the last
// item recovered.
// item recovered. Alternatively, a LinkedHashMap could be used
// to preserve order.
row = sheet.createRow(4);
cell = row.createCell(0);
multiLevelListItems = new ArrayList<MultiLevelListItem>();