Commit df33c14c authored by Kristof Szabados's avatar Kristof Szabados
Browse files

could be final.


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent 30ba48a0
......@@ -91,7 +91,7 @@ public class Cli extends UserInterface {
final File config_file = new File(args[0]);
System.out.printf("Using configuration file: %s\n", config_file.getName());
CfgAnalyzer cfgAnalyzer = new CfgAnalyzer();
final CfgAnalyzer cfgAnalyzer = new CfgAnalyzer();
final boolean config_file_failure = cfgAnalyzer.parse(config_file);
if (config_file_failure) {
System.out.println("Error was found in the configuration file. Exiting");
......@@ -290,7 +290,7 @@ public class Cli extends UserInterface {
return 1; //EXIT_FAILURE
}
BufferedReader console_reader = new BufferedReader(new InputStreamReader(System.in));
final BufferedReader console_reader = new BufferedReader(new InputStreamReader(System.in));
do {
try {
......@@ -450,8 +450,9 @@ public class Cli extends UserInterface {
if (line_read == null || line_read.isEmpty()) {
return;
}
String[] splitted_line = line_read.split("\\s");
String command = splitted_line[0];
final String[] splitted_line = line_read.split("\\s");
final String command = splitted_line[0];
String argument = null;
if (splitted_line.length == 2) {
argument = splitted_line[1];
......
......@@ -10,8 +10,8 @@ package org.eclipse.titan.runtime.core.mctr;
public class CliMain {
public static void main(final String[] args) {
Cli userInterface = new Cli();
int max_ptcs = -1;
final Cli userInterface = new Cli();
final int max_ptcs = -1;
final MainController mainController = new MainController();
userInterface.setMainController(mainController);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment