Skip to content

Commit bd45bf6

Browse files
committed
Release 5.2.2
2 parents ec78b31 + af1d54c commit bd45bf6

File tree

7 files changed

+13
-11
lines changed

7 files changed

+13
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Most of this code was created when I faced specific problems in my professional
1616
RS Library modules are maintained in the same Maven project and, hence, follow the same release cycle. That means that each modules will have the same version numbers and are published at the same time.
1717

1818
## Latest Version
19-
Latest version is 5.2.1. Please note that Java 21 is required since 5.1.0.
19+
Latest version is 5.2.2. Please note that Java 21 is required since 5.1.0.
2020

2121
## Upgrading v4 to v5
2222
V5 is a major release that removes several deprecated date and calendar classes. This includes the ``RsDate`` class and its descendants as well as some bean helper classes. They can be easily replaced nowadays with other standard libraries such as the Java Time API or commons-beans or alike.

baselib/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>eu.ralph-schuster</groupId>
55
<artifactId>libs</artifactId>
6-
<version>5.2.1</version>
6+
<version>5.2.2</version>
77
</parent>
88

99
<properties>

baselib/src/main/java/rs/baselib/collection/SyncUtils.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ public static <T> Collection<T> sync(
3737
Collection<T> rc = (Collection<T>)collection.getClass().getConstructor().newInstance();
3838

3939
// Add new values
40-
for (T value : newValues) {
41-
if (!existsFunction.apply(collection, value)) {
42-
value = addFunction.apply(value);
40+
if ((newValues != null) && !newValues.isEmpty()) {
41+
for (T value : newValues) {
42+
if (!existsFunction.apply(collection, value)) {
43+
value = addFunction.apply(value);
44+
}
45+
rc.add(value);
4346
}
44-
rc.add(value);
4547
}
4648

4749
// Remove values we did not see yet

jackson/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>eu.ralph-schuster</groupId>
55
<artifactId>libs</artifactId>
6-
<version>5.2.1</version>
6+
<version>5.2.2</version>
77
</parent>
88

99
<properties>

otp/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>eu.ralph-schuster</groupId>
55
<artifactId>libs</artifactId>
6-
<version>5.2.1</version>
6+
<version>5.2.2</version>
77
</parent>
88

99
<properties>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</properties>
1414

1515
<artifactId>libs</artifactId>
16-
<version>5.2.1</version>
16+
<version>5.2.2</version>
1717
<packaging>pom</packaging>
1818

1919
<url>https://github.com/technicalguru/rslibs</url>
@@ -24,7 +24,7 @@
2424
<connection>scm:git:https://github.com/technicalguru/rslibs.git</connection>
2525
<developerConnection>scm:git:https://github.com/technicalguru/rslibs.git</developerConnection>
2626
<url>https://github.com/technicalguru/rslibs</url>
27-
<tag>libs-5.2.1</tag>
27+
<tag>libs-5.2.2</tag>
2828
</scm>
2929

3030
<issueManagement>

templating/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>eu.ralph-schuster</groupId>
55
<artifactId>libs</artifactId>
6-
<version>5.2.1</version>
6+
<version>5.2.2</version>
77
</parent>
88

99
<properties>

0 commit comments

Comments
 (0)