File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -1399,25 +1399,12 @@ def transform(self, java_object):
13991399 # Get the Java java_object class name
14001400 classname = java_object .get_class ().name
14011401
1402- if classname == "java.util.ArrayList" :
1402+ if classname in ( "java.util.ArrayList" , "java.util.LinkedList" ) :
14031403 # @serialData The length of the array backing the <tt>ArrayList</tt>
14041404 # instance is emitted (int), followed by all of its
14051405 # elements (each an <tt>Object</tt>) in the proper order
14061406 log_debug ("---" )
1407- log_debug ("java.util.ArrayList" )
1408- log_debug (java_object .annotations )
1409- log_debug ("---" )
1410-
1411- new_object = self .JavaList ()
1412- java_object .copy (new_object )
1413- new_object .extend (java_object .annotations [1 :])
1414-
1415- log_debug (">>> java_object: {0}" .format (new_object ))
1416- return new_object
1417-
1418- elif classname == "java.util.LinkedList" :
1419- log_debug ("---" )
1420- log_debug ("java.util.LinkedList" )
1407+ log_debug (classname )
14211408 log_debug (java_object .annotations )
14221409 log_debug ("---" )
14231410
You can’t perform that action at this time.
0 commit comments