Skip to content

Commit

Permalink
Merge pull request #710 from focus-shift/clean
Browse files Browse the repository at this point in the history
Minor Cleanups
  • Loading branch information
derTobsch authored Dec 26, 2024
2 parents a4dd7e8 + 56f8e16 commit 9138f89
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static ManagerParameter create(final Locale locale) {
* @return an {@link CalendarPartManagerParameter} based on {@link ManagerParameter}
*/
public static ManagerParameter create(final Locale locale, final Properties properties) {
final String calendarPart = "".equals(locale.getCountry()) ? locale.getLanguage() : locale.getCountry();
final String calendarPart = locale.getCountry().isEmpty() ? locale.getLanguage() : locale.getCountry();
return create(calendarPart, properties);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public Properties getProperties() {

if (configURLs != null) {
stream(configURLs.split(","))
.filter(Objects::nonNull)
.filter(not(String::isEmpty))
.map(String::trim)
.map(this::createUrl)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import static java.lang.String.format;

public class LazyServiceLoaderCache<S> {

private static final Logger LOG = LoggerFactory.getLogger(LazyServiceLoaderCache.class.getName());

private final Class<S> clz;
Expand Down

0 comments on commit 9138f89

Please sign in to comment.