Useless generic parameter removed

This commit is contained in:
Andrey Breslav
2013-08-26 12:03:22 +04:00
parent ca3d7f9780
commit acfb85e3fd
9 changed files with 11 additions and 11 deletions
@@ -30,11 +30,11 @@ import org.jetbrains.jet.lang.psi.JetFile;
import org.jetbrains.jet.lang.psi.JetPsiUtil;
import org.jetbrains.jet.plugin.JetBundle;
public abstract class AbstractCodeTransformationIntention<T extends Transformer> extends BaseIntentionAction {
private final T transformer;
public abstract class AbstractCodeTransformationIntention extends BaseIntentionAction {
private final Transformer transformer;
private final Predicate<PsiElement> isApplicable;
protected AbstractCodeTransformationIntention(@NotNull T transformer, @NotNull Predicate<PsiElement> isApplicable) {
protected AbstractCodeTransformationIntention(@NotNull Transformer transformer, @NotNull Predicate<PsiElement> isApplicable) {
this.transformer = transformer;
this.isApplicable = isApplicable;
setText(JetBundle.message(transformer.getKey()));
@@ -11,7 +11,7 @@ import org.jetbrains.jet.plugin.intentions.AbstractCodeTransformationIntention;
import org.jetbrains.jet.plugin.intentions.branchedTransformations.WhenUtils;
import org.jetbrains.jet.plugin.intentions.Transformer;
public class EliminateWhenSubjectIntention extends AbstractCodeTransformationIntention<Transformer> {
public class EliminateWhenSubjectIntention extends AbstractCodeTransformationIntention {
private static final Transformer TRANSFORMER = new Transformer() {
@NotNull
@Override
@@ -11,7 +11,7 @@ import org.jetbrains.jet.plugin.intentions.AbstractCodeTransformationIntention;
import org.jetbrains.jet.plugin.intentions.branchedTransformations.WhenUtils;
import org.jetbrains.jet.plugin.intentions.Transformer;
public class FlattenWhenIntention extends AbstractCodeTransformationIntention<Transformer> {
public class FlattenWhenIntention extends AbstractCodeTransformationIntention {
private static final Transformer TRANSFORMER = new Transformer() {
@NotNull
@Override
@@ -25,7 +25,7 @@ import org.jetbrains.jet.plugin.intentions.AbstractCodeTransformationIntention;
import org.jetbrains.jet.plugin.intentions.branchedTransformations.BranchedFoldingUtils;
import org.jetbrains.jet.plugin.intentions.branchedTransformations.FoldableKind;
public abstract class FoldBranchedExpressionIntention extends AbstractCodeTransformationIntention<FoldableKind> {
public abstract class FoldBranchedExpressionIntention extends AbstractCodeTransformationIntention {
protected FoldBranchedExpressionIntention(@NotNull final FoldableKind foldableKind) {
super(
foldableKind,
@@ -11,7 +11,7 @@ import org.jetbrains.jet.plugin.intentions.AbstractCodeTransformationIntention;
import org.jetbrains.jet.plugin.intentions.branchedTransformations.IfWhenUtils;
import org.jetbrains.jet.plugin.intentions.Transformer;
public class IfToWhenIntention extends AbstractCodeTransformationIntention<Transformer> {
public class IfToWhenIntention extends AbstractCodeTransformationIntention {
private static final Transformer TRANSFORMER = new Transformer() {
@NotNull
@Override
@@ -11,7 +11,7 @@ import org.jetbrains.jet.plugin.intentions.AbstractCodeTransformationIntention;
import org.jetbrains.jet.plugin.intentions.branchedTransformations.WhenUtils;
import org.jetbrains.jet.plugin.intentions.Transformer;
public class IntroduceWhenSubjectIntention extends AbstractCodeTransformationIntention<Transformer> {
public class IntroduceWhenSubjectIntention extends AbstractCodeTransformationIntention {
private static final Transformer TRANSFORMER = new Transformer() {
@NotNull
@Override
@@ -24,7 +24,7 @@ import org.jetbrains.jet.lang.psi.JetExpression;
import org.jetbrains.jet.plugin.intentions.branchedTransformations.*;
import org.jetbrains.jet.plugin.intentions.AbstractCodeTransformationIntention;
public abstract class UnfoldBranchedExpressionIntention extends AbstractCodeTransformationIntention<UnfoldableKind> {
public abstract class UnfoldBranchedExpressionIntention extends AbstractCodeTransformationIntention {
protected UnfoldBranchedExpressionIntention(@NotNull final UnfoldableKind unfoldableKind) {
super(
unfoldableKind,
@@ -27,7 +27,7 @@ import org.jetbrains.jet.plugin.intentions.AbstractCodeTransformationIntention;
import org.jetbrains.jet.plugin.intentions.branchedTransformations.IfWhenUtils;
import org.jetbrains.jet.plugin.intentions.Transformer;
public class WhenToIfIntention extends AbstractCodeTransformationIntention<Transformer> {
public class WhenToIfIntention extends AbstractCodeTransformationIntention {
private static final Transformer TRANSFORMER = new Transformer() {
@NotNull
@Override
@@ -26,7 +26,7 @@ import org.jetbrains.jet.lang.psi.JetProperty;
import org.jetbrains.jet.plugin.intentions.AbstractCodeTransformationIntention;
import org.jetbrains.jet.plugin.intentions.Transformer;
public class SplitPropertyDeclarationIntention extends AbstractCodeTransformationIntention<Transformer> {
public class SplitPropertyDeclarationIntention extends AbstractCodeTransformationIntention {
private static final Transformer TRANSFORMER = new Transformer() {
@NotNull
@Override