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

This commit is contained in:
lbw committed 2023-11-27 16:03:32 +08:00
1 parent e0bc54f558
commit 34bf7572bf
1 file changed
+1 -1
@@ -49,7 +49,7 @@ public enum StyleTypeEnum {
*/
private String description;
public static String getDecs(String style) {
public static String getDesc(String style) {
return Arrays.stream(StyleTypeEnum.values())
.filter(styleTypeEnum -> styleTypeEnum.getStyle().equals(style))
.findFirst()