add NotNull, default impl

This commit is contained in:
Vladimir Krivosheev
2017-09-01 15:11:19 +02:00
parent 7675771cce
commit a1457de7da
3 changed files with 2 additions and 21 deletions
@@ -61,21 +61,11 @@ public class CompileStepBeforeRunNoErrorCheck
return CompileStepBeforeRun.shouldCreateTask(runConfiguration) ? new MakeBeforeRunTaskNoErrorCheck() : null;
}
@Override
public boolean configureTask(@NotNull RunConfiguration runConfiguration, @NotNull MakeBeforeRunTaskNoErrorCheck task) {
return false;
}
@Override
public String getName() {
return ExecutionBundle.message("before.launch.compile.step.no.error.check");
}
@Override
public boolean canExecuteTask(@NotNull RunConfiguration configuration, @NotNull MakeBeforeRunTaskNoErrorCheck task) {
return true;
}
@Override
public boolean executeTask(DataContext context,
RunConfiguration configuration,
@@ -63,15 +63,6 @@ public class MakeProjectStepBeforeRun extends BeforeRunTaskProvider<MakeProjectS
return AllIcons.Actions.Compile;
}
public boolean configureTask(@NotNull RunConfiguration runConfiguration, @NotNull MakeProjectBeforeRunTask task) {
return false;
}
@Override
public boolean canExecuteTask(@NotNull RunConfiguration configuration, @NotNull MakeProjectBeforeRunTask task) {
return true;
}
public boolean executeTask(DataContext context, final RunConfiguration configuration, final ExecutionEnvironment env, MakeProjectBeforeRunTask task) {
return CompileStepBeforeRun.doMake(myProject, configuration, env, false, true);
}
@@ -94,10 +94,10 @@ public class UnknownBeforeRunTaskProvider extends BeforeRunTaskProvider<UnknownB
element.removeContent();
final List attributes = myConfig.getAttributes();
for (Object attribute : attributes) {
element.setAttribute((Attribute)((Attribute)attribute).clone());
element.setAttribute(((Attribute)attribute).clone());
}
for (Object child : myConfig.getChildren()) {
element.addContent((Element)((Element)child).clone());
element.addContent(((Element)child).clone());
}
}
}