Browse Source

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
pull/33/head
Javen O'Neal 8 years ago
parent
commit
a0f9c1d707

+ 4
- 4
src/contrib/poi-ruby/Poi4R.i 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);


+ 2
- 1
src/examples/src/org/apache/poi/hssf/usermodel/examples/InCellLists.java 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>();

Loading…
Cancel
Save