Обработка типов значение и длинные квалификаторы#587
Conversation
📝 WalkthroughWalkthroughThree targeted updates to type conversion and error handling: enhanced logging in TransformationUtils to include values in error messages, updated value-type mappings in ValueTypeConverter (removing d5p1-prefixed FlowchartContextType alias and adding ChartType), and changed length value parsing from int to long in ValueTypeQualifierConverter to support larger values. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@src/main/java/com/github/_1c_syntax/bsl/reader/common/TransformationUtils.java`:
- Line 54: LOGGER_MESSAGE_PREF currently has three placeholders ("Class {},
method {}, value {}") but invoke, builder, toBuilder, and build(Object) log only
class and method plus a Throwable, leaving the third placeholder unfilled and
causing SLF4J to treat the Throwable as a message parameter; add a second format
constant (e.g., LOGGER_MESSAGE_PREF_NO_VALUE = "Class {}, method {}") or inline
that two-parameter template and replace the LOGGER.error calls in invoke,
builder, toBuilder, and build(Object) to use the two-arg template so the
Throwable is correctly treated as the exception; leave setValue using the
three-arg template since it supplies the value parameter.
|



Описание
Связанные задачи
Closes #573
Closes #583
Чеклист
Общие
gradlew precommit)Дополнительно
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes