From bf7a89e304b5b2afc38aeccb2835ab6850084dd1 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Thu, 17 Dec 2015 12:18:39 -0500 Subject: [PATCH] Remove optionality from streaming useCompressedOops field --- core/src/main/java/org/elasticsearch/monitor/jvm/JvmInfo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/monitor/jvm/JvmInfo.java b/core/src/main/java/org/elasticsearch/monitor/jvm/JvmInfo.java index 22f0ed912d0..82a99bd0bd1 100644 --- a/core/src/main/java/org/elasticsearch/monitor/jvm/JvmInfo.java +++ b/core/src/main/java/org/elasticsearch/monitor/jvm/JvmInfo.java @@ -375,7 +375,7 @@ public class JvmInfo implements Streamable, ToXContent { mem.readFrom(in); gcCollectors = in.readStringArray(); memoryPools = in.readStringArray(); - useCompressedOops = in.readOptionalString(); + useCompressedOops = in.readString(); } @Override @@ -400,7 +400,7 @@ public class JvmInfo implements Streamable, ToXContent { mem.writeTo(out); out.writeStringArray(gcCollectors); out.writeStringArray(memoryPools); - out.writeOptionalString(useCompressedOops); + out.writeString(useCompressedOops); } public static class Mem implements Streamable {