diff --git a/src/main/java/spoon/reflect/visitor/DefaultJavaPrettyPrinter.java b/src/main/java/spoon/reflect/visitor/DefaultJavaPrettyPrinter.java index 98cb13ca19f..c5da4738c35 100644 --- a/src/main/java/spoon/reflect/visitor/DefaultJavaPrettyPrinter.java +++ b/src/main/java/spoon/reflect/visitor/DefaultJavaPrettyPrinter.java @@ -295,7 +295,10 @@ protected void exitCtExpression(CtExpression e) { /** * Make the imports for a given type. + * + * @deprecated We intend to remove those method from the DJPP and to compute imports directly in CompilationUnit in the future. */ + @Deprecated public Collection computeImports(CtType type) { context.currentTopLevel = type; importsContext.computeImports(context.currentTopLevel); @@ -304,7 +307,10 @@ public Collection computeImports(CtType type) { /** * Make the imports for all elements. + * + * @deprecated We intend to remove those method from the DJPP and to compute imports directly in CompilationUnit in the future. */ + @Deprecated public void computeImports(CtElement element) { if (env.isAutoImports()) { importsContext.computeImports(element);