File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
jvm/src/main/scala/org/portablescala/reflect Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,17 @@ package org.portablescala.reflect
2
2
3
3
import java .lang .reflect .InvocationTargetException
4
4
5
- /**
6
- * A wrapper for a class that can be instantiated.
5
+ /** A wrapper for a class that can be instantiated.
7
6
*
8
7
* @param runtimeClass
9
8
* The `java.lang.Class[_]` representing the class.
10
9
*/
11
10
final class InstantiatableClass private [reflect] (val runtimeClass : Class [_]) {
12
-
13
11
/** A list of the public constructors declared in this class. */
14
12
val declaredConstructors : List [InvokableConstructor ] =
15
- runtimeClass.getConstructors.map(new InvokableConstructor (_)).toList
13
+ runtimeClass.getConstructors() .map(new InvokableConstructor (_)).toList
16
14
17
- /**
18
- * Instantiates this class using its zero-argument constructor.
15
+ /** Instantiates this class using its zero-argument constructor.
19
16
*
20
17
* @throws java.lang.InstantiationException
21
18
* (caused by a `NoSuchMethodException`)
You can’t perform that action at this time.
0 commit comments