#5285 代码扫描命名规范优化,命名规范扫描发现未知属性词汇“decs”,调整简写改为“desc”

This commit is contained in:
lbw committed 2023-11-29 15:05:57 +08:00
1 parent cde0b20d9b
commit ff48a375f9
1 file changed
+5 -2
@@ -50,8 +50,11 @@ public enum StyleTypeEnum {
private String description;
public static String getDesc(String style) {
return Arrays.stream(StyleTypeEnum.values()).filter(styleTypeEnum -> styleTypeEnum.getStyle().equals(style))
.findFirst().get().getDescription();
return Arrays.stream(StyleTypeEnum.values())
.filter(styleTypeEnum -> styleTypeEnum.getStyle().equals(style))
.findFirst()
.get()
.getDescription();
}
}