Skip to content

Commit

Permalink
Release 0.11.1 - fix checkstyle (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinjc authored Aug 13, 2021
1 parent 0725117 commit 3164eb6
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ configurations.archives.artifacts.clear()

allprojects {
group = 'com.uber.m3'
version = '0.11.0'
version = '0.11.1'

apply plugin: 'java'
apply plugin: 'maven'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@
@Fork(value = 2, jvmArgsAppend = {"-server", "-XX:+UseG1GC"})
@State(Scope.Benchmark)
public abstract class AbstractReporterBenchmark<Reporter extends StatsReporter> {

private Logger logger = LoggerFactory.getLogger(getClass());

private static final ImmutableMap<String, String> DEFAULT_TAGS = new ImmutableMap.Builder<String, String>(5)
.put("tag1", "test1")
.put("tag2", "test2")
Expand All @@ -80,6 +77,8 @@ public abstract class AbstractReporterBenchmark<Reporter extends StatsReporter>

private static final int TARGET_PARALLELISM = 4;

private Logger logger = LoggerFactory.getLogger(getClass());

private Reporter reporter;

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

package com.uber.m3.util;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.Set;


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


@Override
public boolean remove(Object o) {
return super.remove(o);
}


@Override
public boolean containsAll(Collection<?> c) {
return super.containsAll(c);
Expand Down
2 changes: 0 additions & 2 deletions m3/src/main/java/com/uber/m3/tally/m3/M3Reporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Queue;
Expand Down

0 comments on commit 3164eb6

Please sign in to comment.