From 085cb28e8d334c4dce3704d1f6fd8d09daeda859 Mon Sep 17 00:00:00 2001 From: carlosuc3m <100329787@alumnos.uc3m.es> Date: Mon, 4 Sep 2023 02:05:14 +0200 Subject: [PATCH] change methods to private --- .../io/bioimage/modelrunner/system/PlatformDetection.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/bioimage/modelrunner/system/PlatformDetection.java b/src/main/java/io/bioimage/modelrunner/system/PlatformDetection.java index 5ab1c835..941f7663 100644 --- a/src/main/java/io/bioimage/modelrunner/system/PlatformDetection.java +++ b/src/main/java/io/bioimage/modelrunner/system/PlatformDetection.java @@ -159,11 +159,11 @@ public static boolean isMacOS() { return getOs().equals(PlatformDetection.OS_OSX); } - public static String getPythonArchDetectionCommand() { + private static String getPythonArchDetectionCommand() { return PYTHON_ARCH_DETECTION_COMMAND; } - public static String executeUnameM() { + private static String executeUnameM() { if (UNAME_M != null) return UNAME_M; Process proc; @@ -177,7 +177,7 @@ public static String executeUnameM() { return UNAME_M; } - public static String waitProcessExecutionAndGetOutputText(Process proc) throws IOException { + private static String waitProcessExecutionAndGetOutputText(Process proc) throws IOException { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(proc.getInputStream())); String inputStreamTxt = ""; boolean first = true; @@ -195,7 +195,7 @@ public static String waitProcessExecutionAndGetOutputText(Process proc) throws I return inputStreamTxt; } - public static String readBufferedReaderIntoStringIntoString(BufferedReader input) throws IOException { + private static String readBufferedReaderIntoStringIntoString(BufferedReader input) throws IOException { String text = ""; String line; while ((line = input.readLine()) != null) {