Skip to content

Commit f94b7c9

Browse files
committed
JavaString str() returns the string value
1 parent b0e9bac commit f94b7c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

javaobj/deserialize/beans.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,11 @@ def __init__(self, handle: int, data: bytes):
103103
self.value: str = value
104104
self.length: int = length
105105

106-
def __str__(self) -> str:
106+
def __repr__(self) -> str:
107107
return "[String {0:x}: {1}]".format(self.handle, self.value)
108108

109-
__repr__ = __str__
109+
def __str__(self):
110+
return self.value
110111

111112

112113
class JavaField:

0 commit comments

Comments
 (0)