move usages of StringCompressor to outside of TagsBuilder

This commit is contained in:
2021-08-25 19:45:49 +02:00
parent d585093ffe
commit b01567c82e
2 changed files with 11 additions and 11 deletions

View File

@@ -25,10 +25,9 @@ public class TagsBuilder {
return this;
}
public TagsBuilder add(final String key, final String value) {
final int keyAsInt = Tags.STRING_COMPRESSOR.getIfPresent(key);
final int valueAsInt = Tags.STRING_COMPRESSOR.getIfPresent(value);
return add(keyAsInt, valueAsInt);
public TagsBuilder add(final Tag tag) {
tags.add(tag);
return this;
}
public TagsBuilder addAndAddToDictionary(final String key, final String value) {