From 8b8f0e3c628a243841a6953d77d67f74e837617b Mon Sep 17 00:00:00 2001 From: David Roberts Date: Thu, 15 Feb 2024 15:01:39 +0000 Subject: [PATCH] [ML] Alter comment that referred to RapidJSON We no longer use RapidJSON in the ML C++, so make a comment that referred to it more generic. --- .../xpack/ml/process/StateToProcessWriterHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/process/StateToProcessWriterHelper.java b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/process/StateToProcessWriterHelper.java index 4c42609c44833..72395e5295d7a 100644 --- a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/process/StateToProcessWriterHelper.java +++ b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/process/StateToProcessWriterHelper.java @@ -27,8 +27,8 @@ public static void writeStateToStream(BytesReference source, OutputStream stream --length; } source.slice(0, length).writeTo(stream); - // This is dictated by RapidJSON on the C++ side; it treats a '\0' as end-of-file - // even when it's not really end-of-file, and this is what we need because we're + // This is dictated by the JSON parser on the C++ side; it treats a '\0' as the character + // that separates distinct JSON documents, and this is what we need because we're // sending multiple JSON documents via the same named pipe. stream.write(0); }