@@ -49,7 +49,7 @@ public CodeCoverageReporter(final List<String> pathList, final List<String> incl
4949 final String connectionName ) {
5050 this .pathList = pathList ;
5151 this .includeObjectList = includeObjectList ;
52- this . setConnection (connectionName );
52+ setConnection (connectionName );
5353 }
5454
5555 public CodeCoverageReporter (final List <String > pathList , final List <String > includeObjectList ,
@@ -67,7 +67,7 @@ private void setConnection(final String connectionName) {
6767 } else {
6868 try {
6969 // must be closed manually
70- this . conn = Connections .getInstance ()
70+ conn = Connections .getInstance ()
7171 .cloneConnection (Connections .getInstance ().getConnection (connectionName ));
7272 } catch (ConnectionException e ) {
7373 logger .severe (() -> "ConnectionException while setting connection: " + e .getMessage ());
@@ -94,9 +94,9 @@ private ArrayList<String> toStringList(final String s) {
9494 private void run () {
9595 logger .fine (() -> "Running code coverage reporter for " + pathList + "..." );
9696 try {
97- final UtplsqlDao dal = new UtplsqlDao (this . conn );
98- final String content = dal .htmlCodeCoverage (this . pathList , this . toStringList (this . schemas ),
99- this . toStringList (this . includeObjects ), this . toStringList (this . excludeObjects ));
97+ final UtplsqlDao dal = new UtplsqlDao (conn );
98+ final String content = dal .htmlCodeCoverage (pathList , toStringList (schemas ),
99+ toStringList (includeObjects ), toStringList (excludeObjects ));
100100 final File file = File .createTempFile ("utplsql_" , ".html" );
101101 logger .fine (() -> "Writing result to " + file + "..." );
102102 Files .write (file .toPath (), Arrays .asList (content .split (System .lineSeparator ())), StandardCharsets .UTF_8 );
@@ -130,22 +130,22 @@ public void setFrame(final CodeCoverageReporterDialog frame) {
130130 }
131131
132132 public CodeCoverageReporterDialog getFrame () {
133- return this . frame ;
133+ return frame ;
134134 }
135135
136136 public Connection getConnection () {
137- return this . conn ;
137+ return conn ;
138138 }
139139
140140 public List <String > getPathList () {
141- return this . pathList ;
141+ return pathList ;
142142 }
143143
144144 public List <String > getIncludeObjectList () {
145- if ((this . includeObjectList == null )) {
145+ if ((includeObjectList == null )) {
146146 return new ArrayList <String >();
147147 } else {
148- return this . includeObjectList ;
148+ return includeObjectList ;
149149 }
150150 }
151151
@@ -163,7 +163,7 @@ public void setExcludeObjects(final String excludeObjects) {
163163
164164 public Thread runAsync () {
165165 final Thread thread = new Thread (() -> {
166- this . run ();
166+ run ();
167167 });
168168 thread .setName ("code coverage reporter" );
169169 thread .start ();
0 commit comments