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/08/26 06:12:26 UTC
(directory-ldap-api) branch master updated: Transform the provided String to a byte so that ot can be parsed
This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git
The following commit(s) were added to refs/heads/master by this push:
new 2a19e47f3 Transform the provided String to a byte so that ot can be parsed
2a19e47f3 is described below
commit 2a19e47f390007467fd1d05bcd5979c1ee822702
Author: emmanuel lecharny <el...@apache.org>
AuthorDate: Wed Aug 26 08:12:21 2026 +0200
Transform the provided String to a byte so that ot can be parsed
---
util/src/main/java/org/apache/directory/api/util/Position.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/util/src/main/java/org/apache/directory/api/util/Position.java b/util/src/main/java/org/apache/directory/api/util/Position.java
index 52dc3d823..847078e0b 100644
--- a/util/src/main/java/org/apache/directory/api/util/Position.java
+++ b/util/src/main/java/org/apache/directory/api/util/Position.java
@@ -53,13 +53,14 @@ public class Position
/**
- * A public constructor
+ * A public constructor.
*
* @param text The String to parse
*/
public Position( String text )
{
this.text = text;
+ bytes = Strings.getBytesUtf8( text );
}