summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/file/UnixPath.java2
-rw-r--r--node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/task/util/file/UnixPathTest.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/file/UnixPath.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/file/UnixPath.java
index 56d517d0b80..94c2df1a8b8 100644
--- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/file/UnixPath.java
+++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/file/UnixPath.java
@@ -105,7 +105,7 @@ public class UnixPath {
}
/** Create an empty file and return true, or false if the file already exists (the file may not be regular). */
- public boolean touch() {
+ public boolean create() {
try {
Files.createFile(path);
return true;
diff --git a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/task/util/file/UnixPathTest.java b/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/task/util/file/UnixPathTest.java
index d5af2b0c4b7..bbe96272b4b 100644
--- a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/task/util/file/UnixPathTest.java
+++ b/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/task/util/file/UnixPathTest.java
@@ -50,9 +50,9 @@ public class UnixPathTest {
@Test
void touch() {
UnixPath path = new UnixPath(fs.getPath("example.txt"));
- assertTrue(path.touch());
+ assertTrue(path.create());
assertEquals("", path.readUtf8File());
- assertFalse(path.touch());
+ assertFalse(path.create());
}
@Test