Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Commit

Permalink
Fixes some minor lint errors/warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dino Oliva committed Jul 21, 2016
1 parent 49ca67f commit 19617c8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/java/com/google/census/CensusContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public interface CensusContext {
/** Sets the current thread-local {@link CensusContext}. */
void setCurrent();

/** Builder for {@link Context}. */
/** Builder for {@link CensusContext}. */
interface Builder {
/**
* Associates the given tag key with the given tag value.
Expand Down
2 changes: 1 addition & 1 deletion core/java/com/google/census/MetricMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static Builder builder() {
}

/**
* Returns the number of metrics in this {@link MetricsMap}.
* Returns the number of metrics in this {@link MetricMap}.
*/
public int size() {
return metrics.size();
Expand Down
2 changes: 1 addition & 1 deletion core/java/com/google/census/TagValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* TagValue's are {@link String}s with enforced restrictions.
*/
public final class TagValue {
public static final int MAX_LENGTH = Tag.MAX_LENGTH;;
public static final int MAX_LENGTH = Tag.MAX_LENGTH;

public TagValue(String value) {
this.value = Tag.sanitize(value);
Expand Down
2 changes: 1 addition & 1 deletion core/javatests/com/google/census/MetricMapTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void testBuilderEmpty() {

@Test
public void testBuilder() {
ArrayList<Metric> expected = new ArrayList(10);
ArrayList<Metric> expected = new ArrayList<>(10);
MetricMap.Builder builder = MetricMap.builder();
for (int i = 1; i <= 10; i++) {
expected.add(new Metric(new MetricName("m" + i), i * 11.1));
Expand Down
2 changes: 1 addition & 1 deletion core_native/java/com/google/census/CensusSerializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import javax.annotation.Nullable;

/** Native implementation {@link CenusContext} serialization. */
/** Native implementation {@link CensusContext} serialization. */
final class CensusSerializer {
private static final char TAG_PREFIX = '\2';
private static final char TAG_DELIM = '\3';
Expand Down

0 comments on commit 19617c8

Please sign in to comment.