Skip to content

Commit 3164eb6

Browse files
authored
Release 0.11.1 - fix checkstyle (#101)
1 parent 0725117 commit 3164eb6

4 files changed

Lines changed: 23 additions & 10 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ configurations.archives.artifacts.clear()
4545

4646
allprojects {
4747
group = 'com.uber.m3'
48-
version = '0.11.0'
48+
version = '0.11.1'
4949

5050
apply plugin: 'java'
5151
apply plugin: 'maven'

core/src/jmh/java/com/uber/m3/tally/AbstractReporterBenchmark.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@
5353
@Fork(value = 2, jvmArgsAppend = {"-server", "-XX:+UseG1GC"})
5454
@State(Scope.Benchmark)
5555
public abstract class AbstractReporterBenchmark<Reporter extends StatsReporter> {
56-
57-
private Logger logger = LoggerFactory.getLogger(getClass());
58-
5956
private static final ImmutableMap<String, String> DEFAULT_TAGS = new ImmutableMap.Builder<String, String>(5)
6057
.put("tag1", "test1")
6158
.put("tag2", "test2")
@@ -80,6 +77,8 @@ public abstract class AbstractReporterBenchmark<Reporter extends StatsReporter>
8077

8178
private static final int TARGET_PARALLELISM = 4;
8279

80+
private Logger logger = LoggerFactory.getLogger(getClass());
81+
8382
private Reporter reporter;
8483

8584
@Benchmark

core/src/main/java/com/uber/m3/util/ListSet.java

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
1-
package com.uber.m3.util;
1+
// Copyright (c) 2021 Uber Technologies, Inc.
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy
4+
// of this software and associated documentation files (the "Software"), to deal
5+
// in the Software without restriction, including without limitation the rights
6+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
// copies of the Software, and to permit persons to whom the Software is
8+
// furnished to do so, subject to the following conditions:
9+
//
10+
// The above copyright notice and this permission notice shall be included in
11+
// all copies or substantial portions of the Software.
12+
//
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
// THE SOFTWARE.
220

21+
package com.uber.m3.util;
322

423
import java.util.ArrayList;
524
import java.util.Collection;
625
import java.util.Iterator;
726
import java.util.Set;
827

9-
1028
/**
1129
* We're creating this surrogate structure to avoid incurring penalties
1230
* associated w/ {@code HashSet}s (like computing hash-codes for every inserted element),
@@ -61,13 +79,11 @@ public boolean add(E e) {
6179
return super.add(e);
6280
}
6381

64-
6582
@Override
6683
public boolean remove(Object o) {
6784
return super.remove(o);
6885
}
6986

70-
7187
@Override
7288
public boolean containsAll(Collection<?> c) {
7389
return super.containsAll(c);

m3/src/main/java/com/uber/m3/tally/m3/M3Reporter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@
6060
import java.time.Instant;
6161
import java.time.temporal.ChronoUnit;
6262
import java.util.ArrayList;
63-
import java.util.Collections;
64-
import java.util.HashSet;
6563
import java.util.List;
6664
import java.util.Map;
6765
import java.util.Queue;

0 commit comments

Comments
 (0)