You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2022/03/23 13:11:29 UTC
[isis] branch master updated: ISIS-2982: fixes PoReader empty lines check
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new bda1195 ISIS-2982: fixes PoReader empty lines check
bda1195 is described below
commit bda11958981d48906219d2dba3b0928326fc78e8
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Mar 23 14:11:19 2022 +0100
ISIS-2982: fixes PoReader empty lines check
---
.../java/org/apache/isis/core/runtimeservices/i18n/po/PoReader.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/core/runtimeservices/src/main/java/org/apache/isis/core/runtimeservices/i18n/po/PoReader.java b/core/runtimeservices/src/main/java/org/apache/isis/core/runtimeservices/i18n/po/PoReader.java
index 9ff5979..c7a515f 100644
--- a/core/runtimeservices/src/main/java/org/apache/isis/core/runtimeservices/i18n/po/PoReader.java
+++ b/core/runtimeservices/src/main/java/org/apache/isis/core/runtimeservices/i18n/po/PoReader.java
@@ -35,6 +35,7 @@ import org.apache.isis.commons.internal.collections._Lists;
import org.apache.isis.commons.internal.collections._Maps;
import org.apache.isis.commons.internal.collections._Sets;
+import lombok.val;
import lombok.extern.log4j.Log4j2;
@Log4j2
@@ -229,8 +230,8 @@ class PoReader extends PoAbstract {
}
for (final String candidate : candidates) {
- final List<String> lines = readUrl(candidate);
- if(lines != null) {
+ val lines = readUrl(candidate);
+ if(!lines.isEmpty()) {
return lines;
}
}