From 48359adb3d79b3ae4430f18ba6bc3a482e696d6f Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Wed, 15 Dec 2021 16:53:06 +1300 Subject: [PATCH] #25 - Add file change detection using file length --- src/main/java/io/avaje/config/FileWatch.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/io/avaje/config/FileWatch.java b/src/main/java/io/avaje/config/FileWatch.java index 5771ed3..abf76d4 100644 --- a/src/main/java/io/avaje/config/FileWatch.java +++ b/src/main/java/io/avaje/config/FileWatch.java @@ -105,6 +105,7 @@ private static class Entry { Entry(File file) { this.file = file; this.lastMod = file.lastModified(); + this.lastLength = file.length(); this.yaml = isYaml(file.getName()); }