Upgrade org.json dependency

This commit is contained in:
aboyko
2023-04-18 16:19:06 -04:00
parent 2cc2617516
commit dfd392069e
3 changed files with 8 additions and 8 deletions

View File

@@ -134,7 +134,7 @@
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20160810</version>
<version>20230227</version>
</dependency>
<dependency>

View File

@@ -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;
}

View File

@@ -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();
}