Upgrade org.json dependency
This commit is contained in:
@@ -134,7 +134,7 @@
|
||||
<dependency>
|
||||
<groupId>org.json</groupId>
|
||||
<artifactId>json</artifactId>
|
||||
<version>20160810</version>
|
||||
<version>20230227</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2022 VMware, Inc.
|
||||
* Copyright (c) 2022, 2023 VMware, Inc.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
@@ -13,14 +13,14 @@ package org.springframework.ide.vscode.boot.java.livehover.v2;
|
||||
public class Measurements {
|
||||
|
||||
private String statistic;
|
||||
private Double value;
|
||||
private Number value;
|
||||
|
||||
public String getStatistic() {
|
||||
return statistic;
|
||||
}
|
||||
|
||||
|
||||
public Double getValue() {
|
||||
public Number getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2020 Pivotal, Inc.
|
||||
* Copyright (c) 2020, 2023 Pivotal, Inc.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
@@ -33,20 +33,20 @@ public interface RequestMappingMetrics {
|
||||
|
||||
@Override
|
||||
public double getTotalTime() {
|
||||
Double d = findStatistic(measurements, "TOTAL_TIME");
|
||||
Number d = findStatistic(measurements, "TOTAL_TIME");
|
||||
return d == null ? 0 : d.doubleValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getMaxTime() {
|
||||
Double d = findStatistic(measurements, "MAX");
|
||||
Number d = findStatistic(measurements, "MAX");
|
||||
return d == null ? 0 : d.doubleValue();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public long getCallsCount() {
|
||||
Double d = findStatistic(measurements, "COUNT");
|
||||
Number d = findStatistic(measurements, "COUNT");
|
||||
return d == null ? 0 : d.longValue();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user