差異處
這裏顯示兩個版本的差異處。
下次修改 | 前次修改 | ||
java:sonarlint:fixcodesmell:s1126 [2020/08/01 14:57] tony 建立 |
java:sonarlint:fixcodesmell:s1126 [2023/06/25 09:48] (目前版本) |
||
---|---|---|---|
行 6: | 行 6: | ||
String content = FileUtil.getContent(new File(filePath.resolve(fileName).toString())); | String content = FileUtil.getContent(new File(filePath.resolve(fileName).toString())); | ||
- | // <code smell here!> | + | if(content.contains(expect)) // <code smell here!> |
- | if(content.contains(expect)) | + | |
return true; | return true; | ||
return false; | return false; |