提交 3db48a18 编写于 作者: J jialinsun

modify ugly code

上级 e36e8f1f
...@@ -126,16 +126,16 @@ public class ProductLineConfigManager implements Initializable, LogEnabled { ...@@ -126,16 +126,16 @@ public class ProductLineConfigManager implements Initializable, LogEnabled {
public void buildDefaultDashboard(ProductLine productLine, String domain) { public void buildDefaultDashboard(ProductLine productLine, String domain) {
String productiLine = productLine.getId(); String line = productLine.getId();
boolean userMonitor = false; boolean userMonitor = false;
boolean networkMonitor = false; boolean networkMonitor = false;
boolean systemMonitor = false; boolean systemMonitor = false;
if ("broker-service".equals(domain)) { if ("broker-service".equals(domain)) {
userMonitor = true; userMonitor = true;
} else if (productiLine.startsWith(NETWORK_MONITOR_PREFIX)) { } else if (line.startsWith(NETWORK_MONITOR_PREFIX)) {
networkMonitor = true; networkMonitor = true;
} else if (productiLine.startsWith(SYSTEM_MONITOR_PREFIX)) { } else if (line.startsWith(SYSTEM_MONITOR_PREFIX)) {
systemMonitor = true; systemMonitor = true;
} }
productLine.setNetworkDashboard(networkMonitor); productLine.setNetworkDashboard(networkMonitor);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册