diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-02-06 17:45:34 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-02-06 17:45:34 +0000 |
| commit | fd7c556c3050b94f4d6727ade7878107c79f267a (patch) | |
| tree | 9dff948e896c4cd203b5772481b4f8e12ace0656 /src/main/resources/python/runtime/java/lang | |
| parent | b92265e3900119455c76053bebf4911c58d654f5 (diff) | |
Include return type when generating method names
Diffstat (limited to 'src/main/resources/python/runtime/java/lang')
| -rw-r--r-- | src/main/resources/python/runtime/java/lang/Integer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/resources/python/runtime/java/lang/Integer.py b/src/main/resources/python/runtime/java/lang/Integer.py index b9e9097..fcd85a9 100644 --- a/src/main/resources/python/runtime/java/lang/Integer.py +++ b/src/main/resources/python/runtime/java/lang/Integer.py @@ -1,16 +1,16 @@ class Integer(object): @staticmethod - def parseInt__java_lang_String(value): + def parseInt__java_lang_String__int(value): return int(value) @staticmethod - def valueOf__int(value): + def valueOf__int__java_lang_Integer(value): return value def __init__(self, value): self._value = value - def equals__java_lang_Object(self, other): + def equals__java_lang_Object__boolean(self, other): # TODO: test this properly return isinstance(other, Integer) and other._value == self._value |
