From fd56699f522f4abb713309badb0269cc739c06e2 Mon Sep 17 00:00:00 2001 From: Christoph Sturm Date: Mon, 29 Jul 2019 15:10:50 +0200 Subject: [PATCH 1/2] fix generics warning --- monitor/src/main/java/bisq/monitor/metric/P2PNetworkLoad.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor/src/main/java/bisq/monitor/metric/P2PNetworkLoad.java b/monitor/src/main/java/bisq/monitor/metric/P2PNetworkLoad.java index c11d0e73cdb..ad987334844 100644 --- a/monitor/src/main/java/bisq/monitor/metric/P2PNetworkLoad.java +++ b/monitor/src/main/java/bisq/monitor/metric/P2PNetworkLoad.java @@ -93,7 +93,7 @@ public class P2PNetworkLoad extends Metric implements MessageListener, SetupList * History implementation using a {@link LinkedHashMap} and its * {@link LinkedHashMap#removeEldestEntry(Map.Entry)} option. */ - private class FixedSizeHistoryTracker extends LinkedHashMap { + private class FixedSizeHistoryTracker extends LinkedHashMap { final int historySize; FixedSizeHistoryTracker(int historySize) { @@ -197,7 +197,7 @@ public P2PNetworkLoad(Reporter reporter) { public void configure(Properties properties) { super.configure(properties); - history = Collections.synchronizedMap(new FixedSizeHistoryTracker(Integer.parseInt(configuration.getProperty(HISTORY_SIZE, "200")))); + history = Collections.synchronizedMap(new FixedSizeHistoryTracker<>(Integer.parseInt(configuration.getProperty(HISTORY_SIZE, "200")))); Capabilities.app.addAll(Capability.DAO_FULL_NODE); } From ae254ec742bdb499fec900d859d5acc354f711c5 Mon Sep 17 00:00:00 2001 From: Christoph Sturm Date: Mon, 29 Jul 2019 15:14:52 +0200 Subject: [PATCH 2/2] Bisq --- .../src/main/java/bisq/monitor/metric/P2PNetworkLoad.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monitor/src/main/java/bisq/monitor/metric/P2PNetworkLoad.java b/monitor/src/main/java/bisq/monitor/metric/P2PNetworkLoad.java index ad987334844..a5a0c27e604 100644 --- a/monitor/src/main/java/bisq/monitor/metric/P2PNetworkLoad.java +++ b/monitor/src/main/java/bisq/monitor/metric/P2PNetworkLoad.java @@ -1,18 +1,18 @@ /* * This file is part of Bisq. * - * bisq is free software: you can redistribute it and/or modify it + * Bisq is free software: you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or (at * your option) any later version. * - * bisq is distributed in the hope that it will be useful, but WITHOUT + * Bisq is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public * License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with bisq. If not, see . + * along with Bisq. If not, see . */ package bisq.monitor.metric;