Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ public RunProfileState getState(@NotNull Executor executor, @NotNull ExecutionEn
@Override
public DartCommandLineRunConfiguration clone() {
final DartCommandLineRunConfiguration clone = (DartCommandLineRunConfiguration)super.clone();
clone.myRunnerParameters = myRunnerParameters.clone();
return clone;
try {
clone.myRunnerParameters = myRunnerParameters.clone();
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
return clone;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public void check(final @NotNull Project project) throws RuntimeConfigurationErr
}

@Override
protected DartCommandLineRunnerParameters clone() {
protected DartCommandLineRunnerParameters clone() throws CloneNotSupportedException {
try {
final DartCommandLineRunnerParameters clone = (DartCommandLineRunnerParameters)super.clone();
clone.myEnvs = new LinkedHashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ public class DartCommandLineRunningState extends CommandLineState {

public DartCommandLineRunningState(final @NotNull ExecutionEnvironment env) throws ExecutionException {
super(env);
myRunnerParameters = ((DartRunConfiguration)env.getRunProfile()).getRunnerParameters().clone();
try {
myRunnerParameters = ((DartRunConfiguration)env.getRunProfile()).getRunnerParameters().clone();
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}

final Project project = env.getProject();
final Project project = env.getProject();
try {
myRunnerParameters.check(project);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ public void checkConfiguration() throws RuntimeConfigurationError {
@Override
public DartRemoteDebugConfiguration clone() {
final DartRemoteDebugConfiguration clone = (DartRemoteDebugConfiguration)super.clone();
clone.myParameters = myParameters.clone();
return clone;
try {
clone.myParameters = myParameters.clone();
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
return clone;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void setDartProjectPath(final @NotNull String dartProjectPath) {
}

@Override
protected DartRemoteDebugParameters clone() {
protected DartRemoteDebugParameters clone() throws CloneNotSupportedException {
try {
return (DartRemoteDebugParameters)super.clone();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ protected DartTestRunConfiguration(final Project project, final ConfigurationFac
@Override
public RunConfiguration clone() {
final DartTestRunConfiguration clone = (DartTestRunConfiguration)super.clone();
clone.myRunnerParameters = myRunnerParameters.clone();
return clone;
try {
clone.myRunnerParameters = myRunnerParameters.clone();
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
return clone;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void check(@NotNull Project project) throws RuntimeConfigurationError {
}

@Override
protected final DartTestRunnerParameters clone() {
protected final DartTestRunnerParameters clone() throws CloneNotSupportedException {
return (DartTestRunnerParameters)super.clone();
}

Expand Down