File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
convertible-core/src/main/kotlin/pro/vlprojects/convertible/core/processor Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ class ConvertibleProcessor(
39
39
}
40
40
41
41
override fun finish () = definitions
42
+ .also { logger.info(" ${it.size} definitions found for code generating" ) }
42
43
.forEach { definition ->
43
44
val targetPackage = " ${definition.objectClassName.packageName} .${definition.scope.lowercase()} "
44
45
strategies
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class ConvertibleVisitor(
30
30
.filter { it.isOf(Convertible ::class ) }
31
31
.toList()
32
32
33
- if (convertibles.isEmpty ()) return
33
+ check (convertibles.isNotEmpty ()) { " No @Convertible annotations on class $className " }
34
34
35
35
convertibles.forEach { annotation ->
36
36
val nullable = annotation.getArgument<Boolean >(" nullable" ).let (::checkNotNull)
You can’t perform that action at this time.
0 commit comments