File tree Expand file tree Collapse file tree 6 files changed +9
-10
lines changed
src/main/java/org/utplsql/cli Expand file tree Collapse file tree 6 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 8
8
9
9
public class CommandProvider {
10
10
11
- private Map <String , ICommand > commands ;
12
- private JCommander jCommander ;
11
+ private final Map <String , ICommand > commands = new HashMap <>() ;
12
+ private final JCommander jCommander ;
13
13
14
14
public CommandProvider ( JCommander jCommander ) {
15
15
this .jCommander = jCommander ;
16
16
init ();
17
17
}
18
18
19
19
private void init () {
20
- commands = new HashMap <>();
21
-
22
20
addCommand (new RunCommand ());
23
21
addCommand (new VersionInfoCommand ());
24
22
addCommand (new ReportersCommand ());
Original file line number Diff line number Diff line change 5
5
public class ConnectionInfo {
6
6
7
7
public static final String COMMANDLINE_PARAM_DESCRIPTION = "<user>/<password>@//<host>[:<port>]/<service> OR <user>/<password>@<TNSName> OR <user>/<password>@<host>:<port>:<SID>" ;
8
- private String connectionInfo ;
8
+ private final String connectionInfo ;
9
9
10
10
public ConnectionInfo (String connectionInfo ) {
11
11
this .connectionInfo = connectionInfo ;
Original file line number Diff line number Diff line change 7
7
*/
8
8
public class HelpCommand implements ICommand {
9
9
10
- private String errorMessage ;
11
- private JCommander jCommander ;
10
+ private final String errorMessage ;
11
+ private final JCommander jCommander ;
12
12
13
13
public HelpCommand (JCommander jCommander ) {
14
14
this .jCommander = jCommander ;
15
+ this .errorMessage = null ;
15
16
}
16
17
17
18
public HelpCommand ( JCommander jCommander , String errorMessage ) {
Original file line number Diff line number Diff line change @@ -118,5 +118,5 @@ public List<ReporterOptions> getReporterOptionsList() {
118
118
return reporterOptionsList ;
119
119
}
120
120
121
- public int getNumberOfReporters () { return reporterOptionsList .size (); };
121
+ public int getNumberOfReporters () { return reporterOptionsList .size (); }
122
122
}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ interface ConnectStringPossibility {
23
23
24
24
private static final Logger logger = LoggerFactory .getLogger (TestedDataSourceProvider .class );
25
25
private final ConnectionConfig config ;
26
- private List <ConnectStringPossibility > possibilities = new ArrayList <>();
26
+ private final List <ConnectStringPossibility > possibilities = new ArrayList <>();
27
27
28
28
public TestedDataSourceProvider (ConnectionConfig config ) {
29
29
this .config = config ;
Original file line number Diff line number Diff line change 3
3
public class StringBlockFormatter {
4
4
5
5
private String headline ;
6
- private StringBuilder content = new StringBuilder ();
6
+ private final StringBuilder content = new StringBuilder ();
7
7
8
8
public StringBlockFormatter () {}
9
9
You can’t perform that action at this time.
0 commit comments