[NoArg] Reorganize module structure of NoArg plugin
This commit is contained in:
committed by
teamcity
parent
0f757c300a
commit
8fc4962213
+22
@@ -0,0 +1,22 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
annotation class NoArg
|
||||
|
||||
@NoArg
|
||||
class AuthenticationConfiguration(tokenExpiresIn: Long) {
|
||||
var tokenExpiryDate: String?
|
||||
|
||||
init {
|
||||
tokenExpiryDate = tokenExpiresIn.toString()
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val instance = AuthenticationConfiguration::class.java.newInstance()
|
||||
|
||||
if (instance.tokenExpiryDate != null) {
|
||||
return "Initializer invoked"
|
||||
}
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user