@@ -55,13 +55,13 @@ def __init__(self):
5555 list .__init__ (self )
5656 JavaInstance .__init__ (self )
5757
58- def load_from_instance (self , instance , indent = 0 ):
59- # type: (JavaInstance, int) -> bool
58+ def load_from_instance (self , indent = 0 ):
59+ # type: (int) -> bool
6060 """
6161 Load content from a parsed instance object
6262 """
6363 # Lists have their content in there annotations
64- for cd , annotations in instance .annotations .items ():
64+ for cd , annotations in self .annotations .items ():
6565 if cd .name in self .HANDLED_CLASSES :
6666 self .extend (ann for ann in annotations [1 :])
6767 return True
@@ -94,12 +94,12 @@ def __eq__(self, other):
9494 def __lt__ (self , other ):
9595 return self .value < other
9696
97- def load_from_instance (self , instance , indent = 0 ):
98- # type: (JavaInstance, int) -> bool
97+ def load_from_instance (self , indent = 0 ):
98+ # type: (int) -> bool
9999 """
100100 Load content from a parsed instance object
101101 """
102- for fields in instance .field_data .values ():
102+ for fields in self .field_data .values ():
103103 for field , value in fields .items ():
104104 if field .name == "value" :
105105 self .value = value
@@ -134,13 +134,13 @@ def __init__(self):
134134 dict .__init__ (self )
135135 JavaInstance .__init__ (self )
136136
137- def load_from_instance (self , instance , indent = 0 ):
138- # type: (JavaInstance, int) -> bool
137+ def load_from_instance (self , indent = 0 ):
138+ # type: (int) -> bool
139139 """
140140 Load content from a parsed instance object
141141 """
142142 # Maps have their content in there annotations
143- for cd , annotations in instance .annotations .items ():
143+ for cd , annotations in self .annotations .items ():
144144 if cd .name in JavaMap .HANDLED_CLASSES :
145145 # Group annotation elements 2 by 2
146146 args = [iter (annotations [1 :])] * 2
@@ -201,13 +201,13 @@ def __init__(self):
201201 set .__init__ (self )
202202 JavaInstance .__init__ (self )
203203
204- def load_from_instance (self , instance , indent = 0 ):
205- # type: (JavaInstance, int) -> bool
204+ def load_from_instance (self , indent = 0 ):
205+ # type: (int) -> bool
206206 """
207207 Load content from a parsed instance object
208208 """
209209 # Lists have their content in there annotations
210- for cd , annotations in instance .annotations .items ():
210+ for cd , annotations in self .annotations .items ():
211211 if cd .name in self .HANDLED_CLASSES :
212212 self .update (x for x in annotations [1 :])
213213 return True
@@ -222,13 +222,13 @@ class JavaTreeSet(JavaSet):
222222
223223 HANDLED_CLASSES = "java.util.TreeSet"
224224
225- def load_from_instance (self , instance , indent = 0 ):
226- # type: (JavaInstance, int) -> bool
225+ def load_from_instance (self , indent = 0 ):
226+ # type: (int) -> bool
227227 """
228228 Load content from a parsed instance object
229229 """
230230 # Lists have their content in there annotations
231- for cd , annotations in instance .annotations .items ():
231+ for cd , annotations in self .annotations .items ():
232232 if cd .name == self .HANDLED_CLASSES :
233233 # Annotation[1] == size of the set
234234 self .update (x for x in annotations [2 :])
@@ -300,19 +300,19 @@ def __str__(self):
300300 "nano={s.nano}, offset={s.offset}, zone={s.zone})"
301301 ).format (s = self )
302302
303- def load_from_blockdata (self , reader , indent = 0 ):
303+ def load_from_blockdata (self , parser , reader , indent = 0 ):
304304 """
305305 Ignore the SC_BLOCK_DATA flag
306306 """
307307 return True
308308
309- def load_from_instance (self , instance , indent = 0 ):
310- # type: (JavaInstance, int) -> bool
309+ def load_from_instance (self , indent = 0 ):
310+ # type: (int) -> bool
311311 """
312312 Load content from a parsed instance object
313313 """
314314 # Lists have their content in there annotations
315- for cd , annotations in instance .annotations .items ():
315+ for cd , annotations in self .annotations .items ():
316316 if cd .name == self .HANDLED_CLASSES :
317317 # Convert back annotations to bytes
318318 # latin-1 is used to ensure that bytes are kept as is
0 commit comments