mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[Formatter] remove obvious comments
This commit is contained in:
@@ -22,8 +22,8 @@ import org.jetbrains.annotations.NotNull;
|
||||
* alignment object instance from the <code>getAlignment</code> method
|
||||
* are aligned with each other.
|
||||
*
|
||||
* @see com.intellij.formatting.Block#getAlignment()
|
||||
* @see com.intellij.formatting.ChildAttributes#getAlignment()
|
||||
* @see Block#getAlignment()
|
||||
* @see ChildAttributes#getAlignment()
|
||||
*/
|
||||
|
||||
public abstract class Alignment {
|
||||
@@ -36,23 +36,10 @@ public abstract class Alignment {
|
||||
myFactory = factory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shorthand for calling {@link #createAlignment(boolean)} with <code>'false'</code>.
|
||||
*
|
||||
* @return alignment object with default settings
|
||||
*/
|
||||
public static Alignment createAlignment() {
|
||||
return createAlignment(false, Anchor.LEFT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delegates the processing to {@link #createAlignment(boolean, Anchor)} with given <code>'allow backward shift'</code> value
|
||||
* and {@link Anchor#LEFT}.
|
||||
*
|
||||
* @param allowBackwardShift flag that specifies if former aligned block may be shifted to right in order to align to subsequent
|
||||
* aligned block
|
||||
* @return alignment object with the given <code>'allow backward shift'</code> setting
|
||||
*/
|
||||
public static Alignment createAlignment(boolean allowBackwardShift) {
|
||||
return createAlignment(allowBackwardShift, Anchor.LEFT);
|
||||
}
|
||||
|
||||
@@ -20,12 +20,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Gof Template Method for {@link BlockAlignmentProcessor}.
|
||||
*
|
||||
* @author Denis Zhdanov
|
||||
* @since 4/29/11 11:52 AM
|
||||
*/
|
||||
public abstract class AbstractBlockAlignmentProcessor implements BlockAlignmentProcessor {
|
||||
|
||||
@Override
|
||||
|
||||
@@ -33,20 +33,10 @@ public class AlignmentImpl extends Alignment {
|
||||
private AlignmentImpl myParentAlignment;
|
||||
private ProbablyIncreasingLowerboundAlgorithm<LeafBlockWrapper> myOffsetRespBlocksCalculator;
|
||||
|
||||
/**
|
||||
* Creates new <code>AlignmentImpl</code> object with <code>'false'</code> as <code>'allows backward shift'</code> argument flag.
|
||||
*/
|
||||
AlignmentImpl() {
|
||||
this(false, Anchor.LEFT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates new <code>AlignmentImpl</code> object with the given <code>'allows backward shift'</code> argument flag.
|
||||
*
|
||||
* @param allowBackwardShift flag that indicates if it should be possible to shift former aligned block to right
|
||||
* in order to align to subsequent aligned block (see {@link Alignment#createAlignment(boolean, Anchor)})
|
||||
* @param anchor alignment anchor (see {@link Alignment#createAlignment(boolean, Anchor)})
|
||||
*/
|
||||
AlignmentImpl(boolean allowBackwardShift, @NotNull Anchor anchor) {
|
||||
myAllowBackwardShift = allowBackwardShift;
|
||||
myAnchor = anchor;
|
||||
|
||||
Reference in New Issue
Block a user