Skip to content

Commit

Permalink
--taskid=ID20231016
Browse files Browse the repository at this point in the history
add rule:Single line comments in a method should be put above the code to be commented, by using // and multiple lines by using /* */.
  • Loading branch information
xinluke committed Oct 16, 2023
1 parent 0f500b0 commit cfa9c9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/wangym/lombok/job/impl/CommentJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ public void exec(File file) throws IOException {
String line;
while ((line = reader.readLine()) != null) {
//判断是否包含行尾注释,将行尾注释提到上一行
changeFlag = true && processLine(line, sb);
if (processLine(line, sb)) {
changeFlag = true;
}
}
}
//如果文件内容发生变化,重新写入文件
Expand Down

0 comments on commit cfa9c9c

Please sign in to comment.