Skip to content

Commit 33605fd

Browse files
committed
test compilation only
1 parent 68a0984 commit 33605fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

http-generator-core/src/main/java/io/avaje/http/generator/core/BaseProcessor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ private void writeAdapter(Element controller) {
131131

132132
writeControllerAdapter(reader);
133133
TypeElement typeElement = (TypeElement) controller;
134-
if (typeElement.getInterfaces().isEmpty()
134+
if (APContext.isTestCompilation()
135+
&& typeElement.getInterfaces().isEmpty()
135136
&& "java.lang.Object".equals(typeElement.getSuperclass().toString())) {
136137
new TestClientWriter(reader).write();
137138
}

0 commit comments

Comments
 (0)