inspections: add default implementation of QuickFix.getName (delegate call to QuickFi...
authorDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Wed, 28 Sep 2016 15:09:43 +0000 (18:09 +0300)
committerDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Wed, 28 Sep 2016 15:09:43 +0000 (18:09 +0300)
platform/analysis-api/src/com/intellij/codeInspection/QuickFix.java

index e585d3bc49b1f2e2118bbf81500762b73b23c80e..2b0c46077a6cba6906b610036ad44517701eeb82 100644 (file)
@@ -37,7 +37,9 @@ public interface QuickFix<D extends CommonProblemDescriptor> extends WriteAction
    */
   @Nls(capitalization = Nls.Capitalization.Sentence)
   @NotNull
-  String getName();
+  default String getName() {
+    return getFamilyName();
+  }
 
   /**
    * @return text to appear in "Apply Fix" popup when multiple Quick Fixes exist (in the results of batch code inspection). For example,