From acb284ff889b001b6133171180cc5d60973dc7e2 Mon Sep 17 00:00:00 2001 From: marhali Date: Fri, 28 Oct 2022 15:44:20 +0200 Subject: [PATCH] fix properties parsing Resolves #190 --- CHANGELOG.md | 8 +++++--- .../io/parser/properties/PropertiesParserStrategy.java | 4 +--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2934414..0707971 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,12 +3,14 @@ # easy-i18n Changelog ## [Unreleased] +### Fixed +- Parsing for .properties files ## [4.2.4] -### Changed -- Improved exception handling on syntax errors +### Changed +- Improved exception handling on syntax errors -### Fixed +### Fixed - Some settings are not retained on IDE restarts ## [4.2.3] diff --git a/src/main/java/de/marhali/easyi18n/io/parser/properties/PropertiesParserStrategy.java b/src/main/java/de/marhali/easyi18n/io/parser/properties/PropertiesParserStrategy.java index 936dbf8..007c788 100644 --- a/src/main/java/de/marhali/easyi18n/io/parser/properties/PropertiesParserStrategy.java +++ b/src/main/java/de/marhali/easyi18n/io/parser/properties/PropertiesParserStrategy.java @@ -47,9 +47,7 @@ public class PropertiesParserStrategy extends ParserStrategy { throw new SyntaxException(ex.getMessage(), file); } - if(!input.isEmpty()) { - PropertiesMapper.read(file.getLocale(), input, targetData, converter); - } + PropertiesMapper.read(file.getLocale(), input, targetData, converter); } }