fix:命名规范扫描发现未知属性词汇“decs”,调整简写改为“desc”

This commit is contained in:
nightwolf11 committed 2023-11-03 11:34:59 +08:00
1 parent 3df113d422
commit 0c362f272c
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().get().getDescription();
}