File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
sqldev/src/main/java/org/utplsql/sqldev/coverage Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ public static void openInBrowser(String html) {
174174 final URL url = file .toURI ().toURL ();
175175 logger .fine (() -> "Opening " + url .toExternalForm () + " in browser..." );
176176 final Desktop desktop = Desktop .isDesktopSupported () ? Desktop .getDesktop () : null ;
177- if (desktop != null && desktop .isSupported (Desktop .Action .BROWSE ) && url != null ) {
177+ if (desktop != null && desktop .isSupported (Desktop .Action .BROWSE )) {
178178 desktop .browse (url .toURI ());
179179 logger .fine (() -> url .toExternalForm () + " opened in browser." );
180180 } else {
@@ -229,9 +229,7 @@ public void setExcludeObjects(final String excludeObjects) {
229229 }
230230
231231 public Thread runAsync () {
232- final Thread thread = new Thread (() -> {
233- run ();
234- });
232+ final Thread thread = new Thread (this ::run );
235233 thread .setName ("code coverage reporter" );
236234 thread .start ();
237235 return thread ;
You can’t perform that action at this time.
0 commit comments