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 88
99public class CommandProvider {
1010
11- private Map <String , ICommand > commands ;
12- private JCommander jCommander ;
11+ private final Map <String , ICommand > commands = new HashMap <>() ;
12+ private final JCommander jCommander ;
1313
1414 public CommandProvider ( JCommander jCommander ) {
1515 this .jCommander = jCommander ;
1616 init ();
1717 }
1818
1919 private void init () {
20- commands = new HashMap <>();
21-
2220 addCommand (new RunCommand ());
2321 addCommand (new VersionInfoCommand ());
2422 addCommand (new ReportersCommand ());
Original file line number Diff line number Diff line change 55public class ConnectionInfo {
66
77 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 ;
99
1010 public ConnectionInfo (String connectionInfo ) {
1111 this .connectionInfo = connectionInfo ;
Original file line number Diff line number Diff line change 77 */
88public class HelpCommand implements ICommand {
99
10- private String errorMessage ;
11- private JCommander jCommander ;
10+ private final String errorMessage ;
11+ private final JCommander jCommander ;
1212
1313 public HelpCommand (JCommander jCommander ) {
1414 this .jCommander = jCommander ;
15+ this .errorMessage = null ;
1516 }
1617
1718 public HelpCommand ( JCommander jCommander , String errorMessage ) {
Original file line number Diff line number Diff line change @@ -118,5 +118,5 @@ public List<ReporterOptions> getReporterOptionsList() {
118118 return reporterOptionsList ;
119119 }
120120
121- public int getNumberOfReporters () { return reporterOptionsList .size (); };
121+ public int getNumberOfReporters () { return reporterOptionsList .size (); }
122122}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ interface ConnectStringPossibility {
2323
2424 private static final Logger logger = LoggerFactory .getLogger (TestedDataSourceProvider .class );
2525 private final ConnectionConfig config ;
26- private List <ConnectStringPossibility > possibilities = new ArrayList <>();
26+ private final List <ConnectStringPossibility > possibilities = new ArrayList <>();
2727
2828 public TestedDataSourceProvider (ConnectionConfig config ) {
2929 this .config = config ;
Original file line number Diff line number Diff line change 33public class StringBlockFormatter {
44
55 private String headline ;
6- private StringBuilder content = new StringBuilder ();
6+ private final StringBuilder content = new StringBuilder ();
77
88 public StringBlockFormatter () {}
99
You can’t perform that action at this time.
0 commit comments