This is an automated email from the ASF dual-hosted git repository.
andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git
The following commit(s) were added to refs/heads/main by this push:
new 7e01a1e Fix obvious Objects.equals(value, value) bug in PropertyUtils
new 56b138e Merge pull request #1183 from vorburger/patch-1
7e01a1e is described below
commit 7e01a1eee64df7b16703b75318c17d67bcffb7e9
Author: Michael Vorburger ⛑️ <[email protected]>
AuthorDate: Mon Jan 31 12:23:13 2022 +0100
Fix obvious Objects.equals(value, value) bug in PropertyUtils
---
jena-base/src/main/java/org/apache/jena/atlas/lib/PropertyUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/jena-base/src/main/java/org/apache/jena/atlas/lib/PropertyUtils.java
b/jena-base/src/main/java/org/apache/jena/atlas/lib/PropertyUtils.java
index cc2d298..bba9d3b 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/lib/PropertyUtils.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/lib/PropertyUtils.java
@@ -131,7 +131,7 @@ public class PropertyUtils {
public void checkMetadata(Properties properties, String key, String
expected) {
String value = properties.getProperty(key) ;
- if ( !Objects.equals(value, value) )
+ if ( !Objects.equals(value, expected) )
inconsistent(properties, key, value, expected) ;
}