From 2e40c0dc9d73f7ab2b24230bb869f3c753baa85d Mon Sep 17 00:00:00 2001 From: Raymondlam1 Date: Fri, 8 Sep 2023 10:16:55 +0800 Subject: [PATCH] feat: sysenv sorted by property key #https://github.com/alibaba/arthas/issues/2619 --- .../com/taobao/arthas/core/command/model/SystemEnvModel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/taobao/arthas/core/command/model/SystemEnvModel.java b/core/src/main/java/com/taobao/arthas/core/command/model/SystemEnvModel.java index 4fcabefe3e..45a0923ae0 100644 --- a/core/src/main/java/com/taobao/arthas/core/command/model/SystemEnvModel.java +++ b/core/src/main/java/com/taobao/arthas/core/command/model/SystemEnvModel.java @@ -1,7 +1,7 @@ package com.taobao.arthas.core.command.model; -import java.util.HashMap; import java.util.Map; +import java.util.TreeMap; /** * sysenv KV Result @@ -9,7 +9,7 @@ */ public class SystemEnvModel extends ResultModel { - private Map env = new HashMap(); + private Map env = new TreeMap(); public SystemEnvModel() { }