Мы используем куки, чтобы пользоваться сайтом было удобно.
Хорошо
to the top
>
>
>
Примеры ошибок, обнаруженных с...

Примеры ошибок, обнаруженных с помощью диагностики V6123

V6123. Modified value of the operand is not used after the increment/decrement operation.


OpenAPI Generator

V6123 Modified value of the operand is not used after the increment operation. AbstractCSharpCodegen.java 780


private String patchPropertyName(
  CodegenModel model,
  CodegenProperty property,
  String value, Set<String> composedPropertyNames
) {
  ....
  if (composedPropertyNames != null) {
    String tmpName = name;
    long count = model.allVars.stream()
                              .map(v -> v.name)
                              .filter(n -> n.equals(tmpName))
                              .count() + composedPropertyNames.stream()
                              .filter(n -> n.equals(tmpName))
                              .count();
    if (count > 0) {
      name = name + count++;  // <=
    }
    composedPropertyNames.add(name);
  }
  return name;
}

Испытай
удачу!

Испытай удачу —
крути колесо!

Prize circle Prize circle Outer ring

Поздравляем!
Вы получили триал на 30 дней!

Обманул систему, молодец! В качестве приза получи триал на 30 дней!