genericify ConfigurationFactoryEx
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Fri, 22 Jan 2016 12:34:36 +0000 (15:34 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Fri, 22 Jan 2016 12:34:58 +0000 (15:34 +0300)
platform/lang-impl/src/com/intellij/execution/configuration/ConfigurationFactoryEx.java

index 5ada39788d17fd9e43886784b96ae8d005fadc8e..fce860c856a91e0ba80a59e576caaa55c0f67787 100644 (file)
@@ -23,14 +23,14 @@ import org.jetbrains.annotations.NotNull;
 /**
  * @author nik
  */
-public abstract class ConfigurationFactoryEx extends ConfigurationFactory {
+public abstract class ConfigurationFactoryEx<T extends RunConfiguration> extends ConfigurationFactory {
   protected ConfigurationFactoryEx(@NotNull ConfigurationType type) {
     super(type);
   }
 
-  public void onNewConfigurationCreated(@NotNull RunConfiguration configuration) {
+  public void onNewConfigurationCreated(@NotNull T configuration) {
   }
 
-  public void onConfigurationCopied(@NotNull RunConfiguration configuration) {
+  public void onConfigurationCopied(@NotNull T configuration) {
   }
 }