diff options
author | Martin Polden <mpolden@mpolden.no> | 2022-01-28 17:48:47 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2022-01-28 17:48:47 +0100 |
commit | eeed2728e76617b1b7503cc4070b9df2f4971a74 (patch) | |
tree | c05ad037b40e94317020dfeb9650626feb1c7f00 | |
parent | c58fe9e096554ec64a64060db4fc127f9d89f614 (diff) |
Move SnippetGenerator to vespajlib
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/process/ChildProcessException.java | 2 | ||||
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/text/SnippetGenerator.java (renamed from node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/text/SnippetGenerator.java) | 4 | ||||
-rw-r--r-- | vespajlib/src/test/java/com/yahoo/text/SnippetGeneratorTest.java (renamed from node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/task/util/text/SnippetGeneratorTest.java) | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/process/ChildProcessException.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/process/ChildProcessException.java index 8663aba4244..defaff78577 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/process/ChildProcessException.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/process/ChildProcessException.java @@ -2,7 +2,7 @@ package com.yahoo.vespa.hosted.node.admin.task.util.process; -import com.yahoo.vespa.hosted.node.admin.task.util.text.SnippetGenerator; +import com.yahoo.text.SnippetGenerator; /** * Base class for child process related exceptions, with a util to build an error message diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/text/SnippetGenerator.java b/vespajlib/src/main/java/com/yahoo/text/SnippetGenerator.java index 61a7be25ec8..756fe9b48e4 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/text/SnippetGenerator.java +++ b/vespajlib/src/main/java/com/yahoo/text/SnippetGenerator.java @@ -1,7 +1,9 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.vespa.hosted.node.admin.task.util.text; +package com.yahoo.text; /** + * Truncate text to a snippet suitable for logging. + * * @author hakon */ public class SnippetGenerator { diff --git a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/task/util/text/SnippetGeneratorTest.java b/vespajlib/src/test/java/com/yahoo/text/SnippetGeneratorTest.java index a0b2df8783f..e8ffdb16978 100644 --- a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/task/util/text/SnippetGeneratorTest.java +++ b/vespajlib/src/test/java/com/yahoo/text/SnippetGeneratorTest.java @@ -1,5 +1,5 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.vespa.hosted.node.admin.task.util.text; +package com.yahoo.text; import org.junit.Test; @@ -56,4 +56,4 @@ public class SnippetGeneratorTest { "This is a long text that should be snippeted", 50, "This is a long text that should be snippeted"); } -}
\ No newline at end of file +} |