aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvi002 <vi002@yandex-team.ru>2022-02-10 16:49:43 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:43 +0300
commit9bd40d940d6613238d700ad86a33e7dcd7ef49c9 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8
parentada28932b0745610cbe6b7e1820a3bf661dd5d10 (diff)
downloadydb-9bd40d940d6613238d700ad86a33e7dcd7ef49c9.tar.gz
Restoring authorship annotation for <vi002@yandex-team.ru>. Commit 2 of 2.
-rw-r--r--library/cpp/http/misc/httpcodes.cpp2
-rw-r--r--library/cpp/http/misc/httpcodes.h2
-rw-r--r--library/cpp/protobuf/json/json2proto.cpp8
-rw-r--r--library/cpp/protobuf/json/ut/json2proto_ut.cpp4
4 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/http/misc/httpcodes.cpp b/library/cpp/http/misc/httpcodes.cpp
index 3b9ecd2743..ad8c80ac1e 100644
--- a/library/cpp/http/misc/httpcodes.cpp
+++ b/library/cpp/http/misc/httpcodes.cpp
@@ -132,7 +132,7 @@ TStringBuf HttpCodeStrEx(int code) noexcept {
return TStringBuf("510 Not Extended");
case HTTP_NETWORK_AUTHENTICATION_REQUIRED:
return TStringBuf("511 Network Authentication Required");
- case HTTP_UNASSIGNED_512:
+ case HTTP_UNASSIGNED_512:
return TStringBuf("512 Unassigned");
default:
diff --git a/library/cpp/http/misc/httpcodes.h b/library/cpp/http/misc/httpcodes.h
index 63cc126849..cbfbaa1188 100644
--- a/library/cpp/http/misc/httpcodes.h
+++ b/library/cpp/http/misc/httpcodes.h
@@ -70,7 +70,7 @@ enum HttpCodes {
HTTP_BANDWIDTH_LIMIT_EXCEEDED = 509,
HTTP_NOT_EXTENDED = 510,
HTTP_NETWORK_AUTHENTICATION_REQUIRED = 511,
- HTTP_UNASSIGNED_512 = 512,
+ HTTP_UNASSIGNED_512 = 512,
HTTP_CODE_MAX
};
diff --git a/library/cpp/protobuf/json/json2proto.cpp b/library/cpp/protobuf/json/json2proto.cpp
index e135d3b275..640c10f5a5 100644
--- a/library/cpp/protobuf/json/json2proto.cpp
+++ b/library/cpp/protobuf/json/json2proto.cpp
@@ -7,7 +7,7 @@
#include <google/protobuf/descriptor.h>
#include <util/generic/hash.h>
-#include <util/generic/maybe.h>
+#include <util/generic/maybe.h>
#include <util/string/ascii.h>
#include <util/string/cast.h>
@@ -265,7 +265,7 @@ Json2RepeatedFieldValue(const NJson::TJsonValue& jsonValue,
const google::protobuf::FieldDescriptor& field,
const NProtobufJson::TJson2ProtoConfig& config,
const google::protobuf::Reflection* reflection,
- const TMaybe<TString>& key = {}) {
+ const TMaybe<TString>& key = {}) {
using namespace google::protobuf;
switch (field.cpp_type()) {
@@ -290,10 +290,10 @@ Json2RepeatedFieldValue(const NJson::TJsonValue& jsonValue,
case FieldDescriptor::CPPTYPE_MESSAGE: {
Message* innerProto = reflection->AddMessage(&proto, &field);
Y_ASSERT(!!innerProto);
- if (key.Defined()) {
+ if (key.Defined()) {
const FieldDescriptor* keyField = innerProto->GetDescriptor()->FindFieldByName("key");
Y_ENSURE(keyField, "Map entry key field not found: " << field.name());
- SetKey(*innerProto, *keyField, *key);
+ SetKey(*innerProto, *keyField, *key);
const FieldDescriptor* valueField = innerProto->GetDescriptor()->FindFieldByName("value");
Y_ENSURE(valueField, "Map entry value field not found.");
diff --git a/library/cpp/protobuf/json/ut/json2proto_ut.cpp b/library/cpp/protobuf/json/ut/json2proto_ut.cpp
index 00a330ed63..0dfe57bc7a 100644
--- a/library/cpp/protobuf/json/ut/json2proto_ut.cpp
+++ b/library/cpp/protobuf/json/ut/json2proto_ut.cpp
@@ -886,9 +886,9 @@ Y_UNIT_TEST(TestComplexMapAsObject_String) {
items["key1"] = "value1";
items["key2"] = "value2";
items["key3"] = "value3";
- items[""] = "value4";
+ items[""] = "value4";
},
- R"_({"String":{"key1":"value1","key2":"value2","key3":"value3","":"value4"}})_");
+ R"_({"String":{"key1":"value1","key2":"value2","key3":"value3","":"value4"}})_");
} // TestComplexMapAsObject_String
Y_UNIT_TEST(TestComplexMapAsObject_Enum) {