changeset 807:9239a3ef0bbd monetdbs

Move code
author Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
date Tue, 12 Dec 2023 11:58:04 +0100 (16 months ago)
parents f478317138d7
children 6b7778153d23
files src/main/java/org/monetdb/mcl/net/Target.java
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/org/monetdb/mcl/net/Target.java
+++ b/src/main/java/org/monetdb/mcl/net/Target.java
@@ -60,6 +60,17 @@ public class Target {
         }
     }
 
+    public static String unpackHost(String host) {
+        switch (host) {
+            case "localhost.":
+                return "localhost";
+            case "localhost":
+                return "";
+            default:
+                return host;
+        }
+    }
+
     public void setString(String key, String value) throws ValidationError {
         Parameter parm = Parameter.forName(key);
         if (parm != null)
@@ -153,17 +164,6 @@ public class Target {
         }
     }
 
-    public static String unpackHost(String host) {
-        switch (host) {
-            case "localhost.":
-                return "localhost";
-            case "localhost":
-                return "";
-            default:
-                return host;
-        }
-    }
-
     public boolean isTls() {
         return tls;
     }