Skip to content

Commit 5d10246

Browse files
committed
removed debug comments
1 parent db520c5 commit 5d10246

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

modules/jooby-apt/src/main/java/io/jooby/apt/JoobyProcessor.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment
121121
TypeElement cls = (TypeElement) method.getEnclosingElement();
122122
TypeElement superCls = (TypeElement) ((DeclaredType) cls.getSuperclass()).asElement();
123123
superCls.getEnclosedElements();
124-
//System.out.println("\tANNOTATION: " + httpMethod + ", METHOD: " + method + ", CLS " + cls + ", <<" + superCls);
125124
if (!classMap.containsKey(cls)) {
126125
classMap.put(cls, new ArrayList<>());
127126
}
@@ -139,11 +138,8 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment
139138
if (c.getKind() == ElementKind.CLASS) {
140139
TypeElement newOwner = (TypeElement) c;
141140
TypeElement oldOwner = (TypeElement) ((DeclaredType) newOwner.getSuperclass()).asElement();
142-
//System.out.println("\tOWNER::" + oldOwner + " contained in " + classMap.keySet());
143141
if (classMap.containsKey(oldOwner)) {
144-
//System.out.println("\t\tCONTAINSKEY::" + oldOwner);
145142
for (MVCMethod e : classMap.get(oldOwner)) {
146-
//System.out.println("\t\t\tMVCMETHOD::" + e);
147143
for (String path : path(e.httpMethod, e.method, newOwner)) {
148144
HandlerCompiler compiler = new HandlerCompiler(processingEnvironment, e.method, newOwner, e.httpMethod, path);
149145
result.add(compiler);
@@ -163,7 +159,6 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment
163159
String moduleClass = module.getModuleClass();
164160
byte[] moduleBin = module.compile(handlers);
165161
onClass(moduleClass, moduleBin);
166-
//System.out.println("@moduleClass: " + moduleClass);
167162
writeClass(filer.createClassFile(moduleClass), moduleBin);
168163

169164
moduleList.add(moduleClass);
@@ -177,7 +172,6 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment
177172
private void doServices(Filer filer) throws IOException {
178173
String location = "META-INF/services/" + MvcFactory.class.getName();
179174
FileObject resource = filer.createResource(StandardLocation.CLASS_OUTPUT, "", location);
180-
//System.out.println(">>>>>>>>>>>>>>>>>> " + location + ": " + moduleList);
181175
String content = moduleList.stream().limit(1)
182176
.collect(Collectors.joining(System.getProperty("line.separator")));
183177
onResource(location, content);

modules/jooby-apt/src/main/java/io/jooby/internal/apt/HandlerCompiler.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,9 @@ private List<String> mediaType(Element element, Set<String> types) {
307307
.orElseGet(() -> {
308308
if (element instanceof ExecutableElement) {
309309
if (element.getEnclosingElement() == realOwnerElement) {
310-
//System.out.println("MEDIATYPE(mock) " + element + " < " + ownerElement + " (" + realOwnerElement + ")");
311310
return mediaType(ownerElement, types);
312311
}
313312
else {
314-
//System.out.println("MEDIATYPE(real) " + element + " < " + element.getEnclosingElement());
315313
return mediaType(element.getEnclosingElement(), types);
316314
}
317315
}

0 commit comments

Comments
 (0)