-
Notifications
You must be signed in to change notification settings - Fork 0
<doc>[docs]: <description #4116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: zsv_5.1.0
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,6 +28,7 @@ public Result throwExceptionIfError() { | |
| @Param(required = true, nonempty = false, nullElements = false, emptyString = true, noTrim = false) | ||
| public java.lang.String vmInstanceUuid; | ||
|
|
||
| @Deprecated | ||
| @Param(required = true, nonempty = false, nullElements = false, emptyString = true, noTrim = false) | ||
| public java.lang.String dstPrimaryStorageUuid; | ||
|
|
||
|
|
@@ -49,6 +50,9 @@ public Result throwExceptionIfError() { | |
| @Param(required = false, nonempty = false, nullElements = false, emptyString = true, noTrim = false) | ||
| public long bandwidth = 0L; | ||
|
|
||
| @Param(required = false, nonempty = false, nullElements = false, emptyString = true, noTrim = false) | ||
| public java.util.List volumeMigrationSpecs; | ||
|
Comment on lines
+53
to
+54
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 使用原始 字段
根据 PR 描述,该字段用于 "指定卷级迁移目标",应该有明确的元素类型定义。请指定具体的泛型参数(例如 ♻️ 建议指定泛型类型 `@Param`(required = false, nonempty = false, nullElements = false, emptyString = true, noTrim = false)
- public java.util.List volumeMigrationSpecs;
+ public java.util.List<VolumeMigrationSpec> volumeMigrationSpecs;注:请根据实际的卷迁移规范类名调整泛型参数。 As per coding guidelines: 命名应尽量用完整的单词组合表达意图,并在名称中体现数据类型或用途。 🤖 Prompt for AI Agents |
||
|
|
||
| @Param(required = false) | ||
| public java.util.List systemTags; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion | 🟠 Major | ⚡ Quick win
@Deprecated字段缺少 Javadoc 注释根据编码规范第 3 条,接口和公开方法必须配有有效的 Javadoc 注释。当标记字段为
@Deprecated时,应添加 Javadoc 注释说明:volumeMigrationSpecs字段)📝 建议添加 Javadoc 注释
As per coding guidelines: 代码应尽量做到自解释,对于较长的注释,需要仔细校对并随代码更新,确保内容正确。接口方法必须配有有效的 Javadoc 注释。
🤖 Prompt for AI Agents