使用sonar扫描代码 报错Do something with the "boolean" value returned by "setWritable".
```java
public static void fileUnModified(File file){
if (file!=null){
file.setWritable(false);
file.setExecutable(false);
file.setReadOnly();
}
}
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/159421014536171.png "=600 #left")