You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2026/06/07 05:43:13 UTC
(directory-studio) branch studio-2.0-RC1 updated: Bumped up to parent version 51. For some unkown reason, had to get rid of Map.of that does not compile with this parent pom version
This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch studio-2.0-RC1
in repository https://gitbox.apache.org/repos/asf/directory-studio.git
The following commit(s) were added to refs/heads/studio-2.0-RC1 by this push:
new 7c138a2bb Bumped up to parent version 51. For some unkown reason, had to get rid of Map.of that does not compile with this parent pom version
7c138a2bb is described below
commit 7c138a2bb66671b8f72656080de179b2f0a757ed
Author: emmanuel lecharny <el...@apache.org>
AuthorDate: Sun Jun 7 07:43:02 2026 +0200
Bumped up to parent version 51. For some unkown reason, had to get rid of Map.of that does not compile with this parent pom version
---
.../studio/ldapbrowser/core/utils/Utils.java | 30 +++++++++++++++-------
pom.xml | 2 +-
2 files changed, 22 insertions(+), 10 deletions(-)
diff --git a/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Utils.java b/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Utils.java
index 1247dd0a8..be9b13b5f 100644
--- a/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Utils.java
+++ b/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/utils/Utils.java
@@ -680,11 +680,17 @@ public class Utils
*/
public static CharSequenceTranslator createPostalAddressDecoder( String separator )
{
- return new LookupTranslator( Map.of(
- "$", separator, //$NON-NLS-1$
- "\\24", "$", //$NON-NLS-1$ //$NON-NLS-2$
- "\\5C", "\\", //$NON-NLS-1$ //$NON-NLS-2$
- "\\5c", "\\" ) ); //$NON-NLS-1$ //$NON-NLS-2$
+ Map<CharSequence, CharSequence> translateMap = new LinkedHashMap()
+ {
+ {
+ put( "$", separator );
+ put( "\24", "$" );
+ put( "\5C", "\\" );
+ put( "\5c", "\\" );
+ }
+ };
+
+ return new LookupTranslator( translateMap );
}
@@ -696,9 +702,15 @@ public class Utils
*/
public static CharSequenceTranslator createPostalAddressEncoder( String separator )
{
- return new LookupTranslator( Map.of(
- "\\", "\\5C", //$NON-NLS-1$ //$NON-NLS-2$
- "$", "\\24", //$NON-NLS-1$ //$NON-NLS-2$
- separator, "$" ) ); //$NON-NLS-1$
+ Map<CharSequence, CharSequence> translateMap = new LinkedHashMap()
+ {
+ {
+ put( "\\", "\5C" );
+ put( "$", "\24" );
+ put( separator, "$" );
+ }
+ };
+
+ return new LookupTranslator( translateMap );
}
}
diff --git a/pom.xml b/pom.xml
index 8c05d7af8..80b131eee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.directory.project</groupId>
<artifactId>project</artifactId>
- <version>50</version>
+ <version>51</version>
<relativePath />
</parent>