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

Commit 38f0340

Browse files
committed
Renames CensusSerializer.fromString() to tagsFromString().
1 parent 1768773 commit 38f0340

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core_native/java/com/google/census/CensusSerializer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ static CensusContextImpl deserialize(ByteBuffer buffer) {
4949
try {
5050
CensusContextProto.CensusContext context =
5151
CensusContextProto.CensusContext.parser().parseFrom(buffer.array());
52-
return new CensusContextImpl(fromString(context.getTags()));
52+
return new CensusContextImpl(tagsFromString(context.getTags()));
5353
} catch (IllegalArgumentException | InvalidProtocolBufferException e) {
5454
return null;
5555
}
5656
}
5757

58-
private static HashMap<String, String> fromString(String encoded) {
58+
private static HashMap<String, String> tagsFromString(String encoded) {
5959
HashMap<String, String> tags = new HashMap<>();
6060
int length = encoded.length();
6161
int index = 0;

0 commit comments

Comments
 (0)