IG: fix introduce constant fix

This commit is contained in:
Bas Leijdekkers
2017-09-14 22:20:32 +02:00
parent b2a1ab243a
commit 762c287cbe
@@ -1,5 +1,5 @@
/*
* Copyright 2003-2016 Dave Griffith, Bas Leijdekkers
* Copyright 2003-2017 Dave Griffith, Bas Leijdekkers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,6 +15,7 @@
*/
package com.siyeh.ig.fixes;
import com.intellij.psi.PsiElement;
import com.intellij.refactoring.JavaRefactoringActionHandlerFactory;
import com.intellij.refactoring.RefactoringActionHandler;
import com.siyeh.InspectionGadgetsBundle;
@@ -33,4 +34,9 @@ public class IntroduceConstantFix extends RefactoringInspectionGadgetsFix {
public RefactoringActionHandler getHandler() {
return JavaRefactoringActionHandlerFactory.getInstance().createIntroduceConstantHandler();
}
@Override
public PsiElement getElementToRefactor(PsiElement element) {
return element;
}
}