Skip to content

Commit ca156a0

Browse files
authored
refactor(java): add lang.Record class (#26)
1 parent 4cd1fef commit ca156a0

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/java/lang/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"Number",
2323
"Object",
2424
"Readable",
25+
"Record",
2526
"Runnable",
2627
"RuntimeException",
2728
"StackTraceElement",
@@ -855,6 +856,12 @@ def __init__(self, message=None, cause=None):
855856
super(UnsupportedOperationException, self).__init__(message, cause)
856857

857858

859+
class Record(Object):
860+
def __init__(self):
861+
# type: () -> None
862+
super(Record, self).__init__()
863+
864+
858865
class Thread(Object):
859866
"""A thread is a thread of execution in a program.
860867

stubs/stubs/java/lang/__init__.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@ class UnsupportedOperationException(RuntimeException):
256256
self, message: Optional[str] = ..., cause: Optional[Throwable] = ...
257257
) -> None: ...
258258

259+
class Record(Object):
260+
def __init__(self) -> None: ...
261+
259262
class Thread(Object):
260263
@staticmethod
261264
def sleep(millis: long) -> None: ...

0 commit comments

Comments
 (0)