Skip to content

Commit

Permalink
[core] organize imports #2579
Browse files Browse the repository at this point in the history
automated cleanup

#2579
  • Loading branch information
EcljpseB0T committed Sep 30, 2024
1 parent 83cc196 commit 1ced1b2
Show file tree
Hide file tree
Showing 973 changed files with 2,350 additions and 5,027 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@
*******************************************************************************/
package org.eclipse.jdt.annotation;

import java.lang.annotation.ElementType;
import static org.eclipse.jdt.annotation.DefaultLocation.*;
import static org.eclipse.jdt.annotation.DefaultLocation.FIELD;
import static org.eclipse.jdt.annotation.DefaultLocation.PARAMETER;
import static org.eclipse.jdt.annotation.DefaultLocation.RETURN_TYPE;
import static org.eclipse.jdt.annotation.DefaultLocation.TYPE_ARGUMENT;
import static org.eclipse.jdt.annotation.DefaultLocation.TYPE_BOUND;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@
package com.sun.mirror.apt;


import com.sun.mirror.declaration.AnnotationTypeDeclaration;
import com.sun.mirror.declaration.Declaration;
import com.sun.mirror.declaration.PackageDeclaration;
import com.sun.mirror.declaration.TypeDeclaration;
import com.sun.mirror.util.DeclarationFilter;
import com.sun.mirror.util.Declarations;
import com.sun.mirror.util.Types;
import java.util.Collection;
import java.util.Map;

import com.sun.mirror.declaration.*;
import com.sun.mirror.util.*;


/**
* The environment encapsulating the state needed by an annotation processor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@
package com.sun.mirror.apt;


import com.sun.mirror.declaration.AnnotationTypeDeclaration;
import java.util.Collection;
import java.util.Set;

import com.sun.mirror.declaration.AnnotationTypeDeclaration;


/**
* A factory for creating annotation processors.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@

package com.sun.mirror.apt;

import java.util.*;
import java.util.Arrays;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

/**
* Utilities to create specialized annotation processors.
Expand Down
5 changes: 4 additions & 1 deletion org.eclipse.jdt.apt.core/src/com/sun/mirror/apt/Filer.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
package com.sun.mirror.apt;


import java.io.*;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

package com.sun.mirror.declaration;

import java.util.Map;
import com.sun.mirror.type.AnnotationType;
import com.sun.mirror.util.SourcePosition;
import java.util.Map;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@
package com.sun.mirror.declaration;


import java.util.Collection;

import com.sun.mirror.type.ClassType;
import java.util.Collection;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@
package com.sun.mirror.declaration;


import com.sun.mirror.type.MirroredTypeException;
import com.sun.mirror.type.MirroredTypesException;
import com.sun.mirror.type.TypeMirror;
import com.sun.mirror.util.DeclarationVisitor;
import com.sun.mirror.util.Declarations;
import com.sun.mirror.util.SourcePosition;
import java.lang.annotation.Annotation;
import java.util.Collection;

import com.sun.mirror.type.*;
import com.sun.mirror.util.*;


/**
* Represents the declaration of a program element such as a package,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@
package com.sun.mirror.declaration;


import java.util.Collection;

import com.sun.mirror.type.ReferenceType;
import java.util.Collection;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
package com.sun.mirror.declaration;


import com.sun.mirror.type.DeclaredType;
import com.sun.mirror.type.InterfaceType;
import java.util.Collection;

import com.sun.mirror.type.*;


/**
* Represents the declaration of a class or interface.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
package com.sun.mirror.declaration;


import com.sun.mirror.type.ReferenceType;
import com.sun.mirror.type.TypeVariable;
import java.util.Collection;

import com.sun.mirror.type.*;


/**
* Represents a formal type parameter of a generic type, method,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
package com.sun.mirror.type;


import com.sun.mirror.declaration.*;
import com.sun.mirror.declaration.ClassDeclaration;
import com.sun.mirror.declaration.TypeDeclaration;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@
package com.sun.mirror.type;


import java.util.Collection;

import com.sun.mirror.declaration.TypeDeclaration;
import java.util.Collection;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
package com.sun.mirror.type;


import com.sun.mirror.declaration.*;
import com.sun.mirror.declaration.InterfaceDeclaration;
import com.sun.mirror.declaration.TypeDeclaration;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@
package com.sun.mirror.type;


import com.sun.mirror.declaration.Declaration;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;

import com.sun.mirror.declaration.Declaration;


/**
* Thrown when an application attempts to access a sequence of {@link Class}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@


import com.sun.mirror.declaration.Declaration;
import com.sun.mirror.util.Types;
import com.sun.mirror.util.TypeVisitor;
import com.sun.mirror.util.Types;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
package com.sun.mirror.type;


import com.sun.mirror.declaration.*;
import com.sun.mirror.declaration.TypeParameterDeclaration;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@
package com.sun.mirror.util;


import java.util.ArrayList;
import java.util.Collection;
import static com.sun.mirror.declaration.Modifier.PRIVATE;
import static com.sun.mirror.declaration.Modifier.PROTECTED;
import static com.sun.mirror.declaration.Modifier.PUBLIC;

import com.sun.mirror.declaration.Declaration;
import com.sun.mirror.declaration.Modifier;

import static com.sun.mirror.declaration.Modifier.*;
import java.util.ArrayList;
import java.util.Collection;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
package com.sun.mirror.util;


import com.sun.mirror.declaration.*;
import com.sun.mirror.declaration.MemberDeclaration;
import com.sun.mirror.declaration.MethodDeclaration;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
package com.sun.mirror.util;

import com.sun.mirror.declaration.*;

import java.util.SortedSet;
import java.util.TreeSet;

Expand Down
13 changes: 10 additions & 3 deletions org.eclipse.jdt.apt.core/src/com/sun/mirror/util/Types.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,18 @@
package com.sun.mirror.util;


import com.sun.mirror.declaration.TypeDeclaration;
import com.sun.mirror.declaration.TypeParameterDeclaration;
import com.sun.mirror.type.ArrayType;
import com.sun.mirror.type.DeclaredType;
import com.sun.mirror.type.PrimitiveType;
import com.sun.mirror.type.ReferenceType;
import com.sun.mirror.type.TypeMirror;
import com.sun.mirror.type.TypeVariable;
import com.sun.mirror.type.VoidType;
import com.sun.mirror.type.WildcardType;
import java.util.Collection;

import com.sun.mirror.declaration.*;
import com.sun.mirror.type.*;


/**
* Utility methods for operating on types.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package org.eclipse.jdt.apt.core.build;

import java.io.File;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.taskdefs.Java;
import org.apache.tools.ant.types.Path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
*******************************************************************************/
package org.eclipse.jdt.apt.core.env;

import com.sun.mirror.apt.AnnotationProcessorEnvironment;
import org.eclipse.jdt.apt.core.util.EclipseMessager;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.dom.CompilationUnit;

import com.sun.mirror.apt.AnnotationProcessorEnvironment;

/**
* Extended the APT {@link AnnotationProcessorEnvironment} to expose
* extra API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@
*******************************************************************************/
package org.eclipse.jdt.apt.core.env;

import java.util.Set;

import com.sun.mirror.apt.AnnotationProcessor;
import com.sun.mirror.apt.AnnotationProcessorFactory;
import com.sun.mirror.declaration.AnnotationTypeDeclaration;
import java.util.Set;

/**
* Extend the APT annotation processor factory API to provide extra features.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@

package org.eclipse.jdt.apt.core.env;

import com.sun.mirror.apt.AnnotationProcessorEnvironment;
import org.eclipse.core.resources.IFile;
import org.eclipse.jdt.apt.core.internal.env.BaseProcessorEnv;
import org.eclipse.jdt.apt.core.internal.util.TestCodeUtil;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.dom.CompilationUnit;

import com.sun.mirror.apt.AnnotationProcessorEnvironment;

public class EnvironmentFactory {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,12 @@

package org.eclipse.jdt.apt.core.internal;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import com.sun.mirror.apt.AnnotationProcessor;
import com.sun.mirror.apt.AnnotationProcessorFactory;
import com.sun.mirror.apt.AnnotationProcessorListener;
import com.sun.mirror.apt.RoundCompleteListener;
import com.sun.mirror.declaration.AnnotationTypeDeclaration;
import java.util.*;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.IWorkspaceRunnable;
Expand All @@ -35,10 +30,10 @@
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.apt.core.env.Phase;
import org.eclipse.jdt.apt.core.internal.env.AbstractCompilationEnv;
import org.eclipse.jdt.apt.core.internal.env.AbstractCompilationEnv.EnvCallback;
import org.eclipse.jdt.apt.core.internal.env.BuildEnv;
import org.eclipse.jdt.apt.core.internal.env.EclipseRoundCompleteEvent;
import org.eclipse.jdt.apt.core.internal.env.ReconcileEnv;
import org.eclipse.jdt.apt.core.internal.env.AbstractCompilationEnv.EnvCallback;
import org.eclipse.jdt.apt.core.internal.generatedfile.GeneratedFileManager;
import org.eclipse.jdt.apt.core.internal.util.FactoryPath;
import org.eclipse.jdt.apt.core.util.AptConfig;
Expand All @@ -48,12 +43,6 @@
import org.eclipse.jdt.core.compiler.CategorizedProblem;
import org.eclipse.jdt.core.compiler.ReconcileContext;

import com.sun.mirror.apt.AnnotationProcessor;
import com.sun.mirror.apt.AnnotationProcessorFactory;
import com.sun.mirror.apt.AnnotationProcessorListener;
import com.sun.mirror.apt.RoundCompleteListener;
import com.sun.mirror.declaration.AnnotationTypeDeclaration;

public class APTDispatchRunnable implements IWorkspaceRunnable
{
/**
Expand Down
Loading

0 comments on commit 1ced1b2

Please sign in to comment.