From c30443bae7ffff69145fc6aeba7044a82a411677 Mon Sep 17 00:00:00 2001 From: Omar Allfuraydi Date: Wed, 13 Sep 2023 16:45:44 +0300 Subject: [PATCH] Formatted the code 2 space --- .../tech/tablesaw/plotly/display/Browser.java | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/jsplot/src/main/java/tech/tablesaw/plotly/display/Browser.java b/jsplot/src/main/java/tech/tablesaw/plotly/display/Browser.java index 15eb2d2aa..3f6fa968f 100644 --- a/jsplot/src/main/java/tech/tablesaw/plotly/display/Browser.java +++ b/jsplot/src/main/java/tech/tablesaw/plotly/display/Browser.java @@ -7,24 +7,24 @@ public class Browser { - public static void main(String[] args) throws Exception { + public static void main(String[] args) throws Exception { - if (Desktop.isDesktopSupported()) { - Desktop.getDesktop().browse(new URI("http://www.example.com")); - } + if (Desktop.isDesktopSupported()) { + Desktop.getDesktop().browse(new URI("http://www.example.com")); } + } - public void browse(File file) throws IOException { - if (Desktop.isDesktopSupported()) { - if (Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) { - Desktop.getDesktop().browse(file.toURI()); - } else if (Desktop.getDesktop().isSupported(Desktop.Action.OPEN)) { - Desktop.getDesktop().open(file); - } else { - throw new UnsupportedOperationException("Neither open nor browse are supported"); - } - } else { - throw new UnsupportedOperationException("Browser not supported."); - } + public void browse(File file) throws IOException { + if (Desktop.isDesktopSupported()) { + if (Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) { + Desktop.getDesktop().browse(file.toURI()); + } else if (Desktop.getDesktop().isSupported(Desktop.Action.OPEN)) { + Desktop.getDesktop().open(file); + } else { + throw new UnsupportedOperationException("Neither open nor browse are supported"); + } + } else { + throw new UnsupportedOperationException("Browser not supported."); } + } }