Now generates @Deprecated annotation for deprecated methods.

This commit is contained in:
Ioannis Tsakpinis 2012-12-12 19:18:35 +02:00
parent ce4153e883
commit 778765c6de
1 changed files with 2 additions and 0 deletions

View File

@ -234,6 +234,8 @@ public class JavaMethodsGenerator {
private static void printMethodWithMultiType(AnnotationProcessorEnvironment env, TypeMap type_map, PrintWriter writer, InterfaceDeclaration interface_decl, MethodDeclaration method, Map<ParameterDeclaration, TypeInfo> typeinfos_instance, Mode mode, boolean generate_error_checks, boolean context_specific) {
Utils.printDocComment(writer, method);
if ( method.getAnnotation(Deprecated.class) != null )
writer.println("\t@Deprecated");
if ( interface_decl.getAnnotation(Private.class) == null && method.getAnnotation(Private.class) == null )
writer.print("\tpublic static ");
else