From 0478f38f1c29f43e3f488df1ece5571ef5f92b3e Mon Sep 17 00:00:00 2001 From: Henning Gerhardt Date: Mon, 26 Feb 2024 13:18:12 +0100 Subject: [PATCH] Replace bit or with logical or condition --- .../java/org/kitodo/production/helper/VariableReplacer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kitodo/src/main/java/org/kitodo/production/helper/VariableReplacer.java b/Kitodo/src/main/java/org/kitodo/production/helper/VariableReplacer.java index 5a41273c9dd..486b1d2b2d9 100644 --- a/Kitodo/src/main/java/org/kitodo/production/helper/VariableReplacer.java +++ b/Kitodo/src/main/java/org/kitodo/production/helper/VariableReplacer.java @@ -463,8 +463,8 @@ public boolean containsFiles(String stringWithVariables) { if (Objects.isNull(stringWithVariables)) { return false; } - return stringWithVariables.contains("(filename)") | stringWithVariables.contains("(basename)") - | stringWithVariables.contains("(relativepath)"); + return stringWithVariables.contains("(filename)") || stringWithVariables.contains("(basename)") + || stringWithVariables.contains("(relativepath)"); } /**