diff --git a/databind/src/main/java/tech/ydb/yoj/databind/schema/Schema.java b/databind/src/main/java/tech/ydb/yoj/databind/schema/Schema.java index 164aa150..530a823c 100644 --- a/databind/src/main/java/tech/ydb/yoj/databind/schema/Schema.java +++ b/databind/src/main/java/tech/ydb/yoj/databind/schema/Schema.java @@ -109,26 +109,26 @@ protected Schema(Schema schema, String subSchemaFieldPath) { JavaField subSchemaField = schema.getField(subSchemaFieldPath); @SuppressWarnings("unchecked") ReflectType rt = (ReflectType) subSchemaField.field.getReflectType(); - reflectType = rt; + this.reflectType = rt; - schemaKey = schema.schemaKey.withClazz(reflectType.getRawType()); + this.schemaKey = schema.schemaKey.withClazz(reflectType.getRawType()); - staticName = schema.staticName; - globalIndexes = schema.globalIndexes; + this.staticName = schema.staticName; + this.globalIndexes = schema.globalIndexes; if (subSchemaField.fields != null) { - fields = subSchemaField.fields.stream().map(this::newRootJavaField).toList(); + this.fields = subSchemaField.fields.stream().map(this::newRootJavaField).toList(); } else { if (subSchemaField.getCustomValueTypeInfo() != null) { var dummyField = new JavaField(new DummyCustomValueSubField(subSchemaField), subSchemaField, __ -> true); dummyField.setName(subSchemaField.getName()); - fields = List.of(dummyField); + this.fields = List.of(dummyField); } else { - fields = List.of(); + this.fields = List.of(); } } - ttlModifier = schema.ttlModifier; - changefeeds = schema.changefeeds; + this.ttlModifier = schema.ttlModifier; + this.changefeeds = schema.changefeeds; } private void validateFieldNames() {