Skip to content

Commit

Permalink
refactor: Deprecate methods computeImports in DJPP (#2124)
Browse files Browse the repository at this point in the history
  • Loading branch information
surli authored and monperrus committed Jun 28, 2018
1 parent 8d644cf commit 661b01a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<CtImport> computeImports(CtType<?> type) {
context.currentTopLevel = type;
importsContext.computeImports(context.currentTopLevel);
Expand All @@ -304,7 +307,10 @@ public Collection<CtImport> 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);
Expand Down

0 comments on commit 661b01a

Please sign in to comment.