Browse Source

[checkstyle] optimize java code checkstyle for EmptyStatement rule (#1373)

pull/2/head
lamber-ken 5 years ago committed by dailidong
parent
commit
2dc5a732eb
  1. 2
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/dto/gantt/GanttDto.java
  2. 4
      style/checkstyle.xml

2
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/dto/gantt/GanttDto.java

@ -55,7 +55,7 @@ public class GanttDto {
this(); this();
this.height = height; this.height = height;
this.tasks = tasks; this.tasks = tasks;
this.taskNames = taskNames;; this.taskNames = taskNames;
} }
public GanttDto(int height, List<Task> tasks, List<String> taskNames, Map<String, String> taskStatus) { public GanttDto(int height, List<Task> tasks, List<String> taskNames, Map<String, String> taskStatus) {
this.height = height; this.height = height;

4
style/checkstyle.xml

@ -229,7 +229,9 @@
<property name="illegalClasses" value="java.util.Optional, com.google.common.base.Optional"/> <property name="illegalClasses" value="java.util.Optional, com.google.common.base.Optional"/>
</module> </module>
<module name="EmptyStatement"/> <module name="EmptyStatement">
<property name="severity" value="error"/>
</module>
<module name="JavadocStyle"/> <module name="JavadocStyle"/>

Loading…
Cancel
Save