mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 12:39:05 +08:00
#5285 代码扫描命名规范优化,命名规范扫描发现未知属性词汇“decs”,调整简写改为“desc”
This commit is contained in:
1 parent
cde0b20d9b
commit
ff48a375f9
1 file changed
+5
-2
+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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user