Skip to content

Commit 4b2c0e8

Browse files
committed
remove constructor
1 parent c0f2308 commit 4b2c0e8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

python/pyspark/ml/wrapper.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,10 @@ class JavaWrapper(Params):
4545

4646
__metaclass__ = ABCMeta
4747

48-
def __init__(self):
49-
super(JavaWrapper, self).__init__()
50-
#: The wrapped Java companion object. Subclasses should initialize
51-
#: it properly. The param values in the Java object should be
52-
#: synced with the Python wrapper in fit/transform/evaluate/copy.
53-
self._java_obj = None
48+
#: The wrapped Java companion object. Subclasses should initialize
49+
#: it properly. The param values in the Java object should be
50+
#: synced with the Python wrapper in fit/transform/evaluate/copy.
51+
_java_obj = None
5452

5553
@staticmethod
5654
def _new_java_obj(java_class, *args):

0 commit comments

Comments
 (0)