mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 20:49:00 +08:00
fix:命名规范扫描发现未知属性词汇“decs”,调整简写改为“desc”
This commit is contained in:
1 parent
4a8821afc9
commit
8adac94ccd
1 file changed
+1
-1
+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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user