Fix FileSnapshot#saveNoConfig

We should not use configuration when creating FileSnapshot when
accessing FileBasedConfig.

Change-Id: Ic521632870f18bb004751642b9d30648dd94049a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2019-07-19 14:42:40 +02:00
parent d8d9427277
commit 72d6e304b8
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ public static FileSnapshot save(File path) {
* @return the snapshot.
*/
public static FileSnapshot saveNoConfig(File path) {
return new FileSnapshot(path);
return new FileSnapshot(path, false);
}
private static Object getFileKey(BasicFileAttributes fileAttributes) {