Rename SdkLabelSet to LabelSetSdk (#810)

Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
This commit is contained in:
Bogdan Drutu 2020-01-30 15:38:50 -08:00 committed by GitHub
parent 4e466cdf08
commit c6dedcb136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -26,15 +26,15 @@ import java.util.HashMap;
import java.util.Map;
@AutoValue
abstract class SdkLabelSet implements LabelSet {
abstract class LabelSetSdk implements LabelSet {
private static final LabelSet EMPTY =
new AutoValue_SdkLabelSet(Collections.<String, String>emptyMap());
new AutoValue_LabelSetSdk(Collections.<String, String>emptyMap());
static LabelSet create(Map<String, String> labels) {
if (labels == null || labels.isEmpty()) {
return EMPTY;
}
return new AutoValue_SdkLabelSet(unmodifiableMap(labels));
return new AutoValue_LabelSetSdk(unmodifiableMap(labels));
}
static LabelSet create(String... keyValuePairs) {
@ -49,7 +49,7 @@ abstract class SdkLabelSet implements LabelSet {
String key = keyValuePairs[i];
data.put(key, keyValuePairs[++i]);
}
return new AutoValue_SdkLabelSet(Collections.unmodifiableMap(data));
return new AutoValue_LabelSetSdk(Collections.unmodifiableMap(data));
}
abstract Map<String, String> getLabels();

View File

@ -95,11 +95,11 @@ final class MeterSdk implements Meter {
@Override
public LabelSet createLabelSet(String... keyValuePairs) {
return SdkLabelSet.create(keyValuePairs);
return LabelSetSdk.create(keyValuePairs);
}
@Override
public LabelSet createLabelSet(Map<String, String> labels) {
return SdkLabelSet.create(labels);
return LabelSetSdk.create(labels);
}
}