Skip to content

Commit aaa4d55

Browse files
committed
Added support for LinkedHashSet
- Fixes #25 - Seems to have been unlocked thanks to #27
1 parent 23cc186 commit aaa4d55

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

javaobj/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,6 +1989,7 @@ def do_period(self, unmarshaller, data):
19891989
"java.util.LinkedHashMap": JavaLinkedHashMap,
19901990
"java.util.TreeMap": JavaMap,
19911991
"java.util.HashSet": JavaSet,
1992+
"java.util.LinkedHashSet": JavaSet,
19921993
"java.util.TreeSet": JavaTreeSet,
19931994
"java.time.Ser": JavaTime,
19941995
"java.lang.Boolean": JavaBool,

tests/tests.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,11 @@ def test_sets(self):
361361
"""
362362
Tests handling of HashSet and TreeSet
363363
"""
364-
for filename in ("testHashSet.ser", "testTreeSet.ser"):
364+
for filename in (
365+
"testHashSet.ser",
366+
"testTreeSet.ser",
367+
"testLinkedHashSet.ser",
368+
):
365369
_logger.debug("Loading file: %s", filename)
366370
jobj = self.read_file(filename)
367371
pobj = javaobj.loads(jobj)

0 commit comments

Comments
 (0)