From 2160fbc19653a70791e76c020a421d6d25ea7a9e Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Mon, 9 Dec 2024 13:24:18 +0100 Subject: [PATCH] Neg this --- .../secdispatcher/internal/sources/FileMasterSource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/codehaus/plexus/components/secdispatcher/internal/sources/FileMasterSource.java b/src/main/java/org/codehaus/plexus/components/secdispatcher/internal/sources/FileMasterSource.java index 4bca7b6..0851549 100644 --- a/src/main/java/org/codehaus/plexus/components/secdispatcher/internal/sources/FileMasterSource.java +++ b/src/main/java/org/codehaus/plexus/components/secdispatcher/internal/sources/FileMasterSource.java @@ -98,7 +98,7 @@ private String readFile(String transformed) throws SecDispatcherException { if (file.isAbsolute() && Files.exists(file)) { try { return Files.readAllLines(file).stream() - .filter(l -> l.startsWith("#")) + .filter(l -> !l.startsWith("#")) .map(String::trim) .findFirst() .orElse(null);