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) {
174
174
final URL url = file .toURI ().toURL ();
175
175
logger .fine (() -> "Opening " + url .toExternalForm () + " in browser..." );
176
176
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 )) {
178
178
desktop .browse (url .toURI ());
179
179
logger .fine (() -> url .toExternalForm () + " opened in browser." );
180
180
} else {
@@ -229,9 +229,7 @@ public void setExcludeObjects(final String excludeObjects) {
229
229
}
230
230
231
231
public Thread runAsync () {
232
- final Thread thread = new Thread (() -> {
233
- run ();
234
- });
232
+ final Thread thread = new Thread (this ::run );
235
233
thread .setName ("code coverage reporter" );
236
234
thread .start ();
237
235
return thread ;
You can’t perform that action at this time.
0 commit comments