Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.core/model/org/eclipse/jdt/core/util/CompilationUnitSorter.java')
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/core/util/CompilationUnitSorter.java92
1 files changed, 45 insertions, 47 deletions
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/core/util/CompilationUnitSorter.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/core/util/CompilationUnitSorter.java
index 23f801453..c4a942990 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/core/util/CompilationUnitSorter.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/core/util/CompilationUnitSorter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2018 IBM Corporation and others.
+ * Copyright (c) 2000, 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -84,7 +84,6 @@ public final class CompilationUnitSorter {
* Integer i2 = (Integer) b2.getProperty(RELATIVE_ORDER);
* return i1.intValue() - i2.intValue(); // preserve original order
* </pre>
- * </p>
*
* @see #sort(ICompilationUnit, int[], Comparator, int, IProgressMonitor)
* @see org.eclipse.jdt.core.dom.BodyDeclaration
@@ -127,34 +126,35 @@ public final class CompilationUnitSorter {
* The body declarations passed as parameters to the comparator
* always carry at least the following minimal signature information:
* <br>
- * <table border="1" width="80%" cellpadding="5">
+ * <table border="1">
* <tr>
- * <td width="20%"><code>TypeDeclaration</code></td>
- * <td width="50%"><code>modifiers, isInterface, name, superclass,
+ * <td><code>TypeDeclaration</code></td>
+ * <td><code>modifiers, isInterface, name, superclass,
* superInterfaces<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>FieldDeclaration</code></td>
- * <td width="50%"><code>modifiers, type, fragments
+ * <td><code>FieldDeclaration</code></td>
+ * <td><code>modifiers, type, fragments
* (VariableDeclarationFragments
* with name only)<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>MethodDeclaration</code></td>
- * <td width="50%"><code>modifiers, isConstructor, returnType, name,
+ * <td><code>MethodDeclaration</code></td>
+ * <td><code>modifiers, isConstructor, returnType, name,
* parameters
* (SingleVariableDeclarations with name and type only),
* thrownExceptions<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>Initializer</code></td>
- * <td width="50%"><code>modifiers<br>
+ * <td><code>Initializer</code></td>
+ * <td><code>modifiers<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* </table>
+ * <p>
* Clients should not rely on the AST nodes being properly parented or on
* having source range information. (Future releases may provide options
* for requesting additional information like source positions, full ASTs,
@@ -242,51 +242,51 @@ public final class CompilationUnitSorter {
* The body declarations passed as parameters to the comparator
* always carry at least the following minimal signature information:
* <br>
- * <table border="1" width="80%" cellpadding="5">
+ * <table border="1">
* <tr>
- * <td width="20%"><code>TypeDeclaration</code></td>
- * <td width="50%"><code>modifiers, isInterface, name, superclass,
+ * <td><code>TypeDeclaration</code></td>
+ * <td><code>modifiers, isInterface, name, superclass,
* superInterfaces, typeParameters<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>FieldDeclaration</code></td>
- * <td width="50%"><code>modifiers, type, fragments
+ * <td><code>FieldDeclaration</code></td>
+ * <td><code>modifiers, type, fragments
* (VariableDeclarationFragments
* with name only)<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>MethodDeclaration</code></td>
- * <td width="50%"><code>modifiers, isConstructor, returnType, name,
+ * <td><code>MethodDeclaration</code></td>
+ * <td><code>modifiers, isConstructor, returnType, name,
* typeParameters, parameters
* (SingleVariableDeclarations with name, type, and modifiers only),
* thrownExceptions<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>Initializer</code></td>
- * <td width="50%"><code>modifiers<br>
+ * <td><code>Initializer</code></td>
+ * <td><code>modifiers<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>AnnotationTypeDeclaration</code></td>
- * <td width="50%"><code>modifiers, name<br>
+ * <td><code>AnnotationTypeDeclaration</code></td>
+ * <td><code>modifiers, name<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>AnnotationTypeMemberDeclaration</code></td>
- * <td width="50%"><code>modifiers, name, type, default<br>
+ * <td><code>AnnotationTypeMemberDeclaration</code></td>
+ * <td><code>modifiers, name, type, default<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>EnumDeclaration</code></td>
- * <td width="50%"><code>modifiers, name, superInterfaces<br>
+ * <td><code>EnumDeclaration</code></td>
+ * <td><code>modifiers, name, superInterfaces<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>EnumConstantDeclaration</code></td>
- * <td width="50%"><code>modifiers, name, arguments<br>
+ * <td><code>EnumConstantDeclaration</code></td>
+ * <td><code>modifiers, name, arguments<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* </table>
@@ -294,7 +294,6 @@ public final class CompilationUnitSorter {
* having source range information. (Future releases may provide options
* for requesting additional information like source positions, full ASTs,
* non-recursive sorting, etc.)
- * </p>
*
* @param level the AST level; one of the <code>{@link AST}.JLS*</code> constants
* @param compilationUnit the given compilation unit, which must be a
@@ -371,55 +370,54 @@ public final class CompilationUnitSorter {
* <p>
* The body declarations passed as parameters to the comparator always carry
* at least the following minimal signature information: <br>
- * <table border="1" width="80%" cellpadding="5">
+ * <table border="1">
* <tr>
- * <td width="20%"><code>TypeDeclaration</code></td>
- * <td width="50%"><code>modifiers, isInterface, name, superclass,
+ * <td><code>TypeDeclaration</code></td>
+ * <td><code>modifiers, isInterface, name, superclass,
* superInterfaces, typeParameters<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>FieldDeclaration</code></td>
- * <td width="50%"><code>modifiers, type, fragments
+ * <td><code>FieldDeclaration</code></td>
+ * <td><code>modifiers, type, fragments
* (VariableDeclarationFragments
* with name only)<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>MethodDeclaration</code></td>
- * <td width="50%"><code>modifiers, isConstructor, returnType, name,
+ * <td><code>MethodDeclaration</code></td>
+ * <td><code>modifiers, isConstructor, returnType, name,
* typeParameters, parameters
* (SingleVariableDeclarations with name, type, and modifiers only),
* thrownExceptions<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>Initializer</code></td>
- * <td width="50%"><code>modifiers<br>
+ * <td><code>Initializer</code></td>
+ * <td><code>modifiers<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>AnnotationTypeDeclaration</code></td>
- * <td width="50%"><code>modifiers, name<br>
+ * <td><code>AnnotationTypeDeclaration</code></td>
+ * <td><code>modifiers, name<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>AnnotationTypeMemberDeclaration</code></td>
- * <td width="50%"><code>modifiers, name, type, default<br>
+ * <td><code>AnnotationTypeMemberDeclaration</code></td>
+ * <td><code>modifiers, name, type, default<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>EnumDeclaration</code></td>
- * <td width="50%"><code>modifiers, name, superInterfaces<br>
+ * <td><code>EnumDeclaration</code></td>
+ * <td><code>modifiers, name, superInterfaces<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* <tr>
- * <td width="20%"><code>EnumConstantDeclaration</code></td>
- * <td width="50%"><code>modifiers, name, arguments<br>
+ * <td><code>EnumConstantDeclaration</code></td>
+ * <td><code>modifiers, name, arguments<br>
* RELATIVE_ORDER property</code></td>
* </tr>
* </table>
- * </p>
*
* @param unit
* the CompilationUnit to sort

Back to the top