From 2f8373b81a7b79d943836cd9c5dea9888e87bd38 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)"); } /**