Hi,
I'm sorry, the last part of my reaction got lost. I would have voted positive for the release.
For the Depth of Inheritance Tree rule, the new issues are correct, I don't consider them false positive. We won't solve them, but I think the rule is ok.
- For UI related classes I think the rule is accurate, yes the inheritance of baseUI-classes does impose complexity, and you don't have much choice, but sometimes you just need to accept that as design choice (of a framework provider).
- You could however maybe make exceptions in the rule for 'extending Exceptions'. Since these are normally relative small classes, and the complexity of inheritance is limited.
The rule for 'Multiple variables should not be declared on the same line' is now disabled on my UI project. I think this is more of a style related rule, which I think has a purpose in most of my projects, but in UI classes it is better to have the declarations on one-line sometimes.
So this rule is also ok, just not applicable to all my projects.
The false positive on 'Resources should be closed' is something that maybe needs a fix.
The strange thing to me is that it does only complain about outputStream not inputStream.
InputStream inputStream = null;
FileOutputStream outputStream = null;
try {
inputStream = FileHelper.class.getResourceAsStream(resourceFile);
outputStream = new FileOutputStream(file);
// some copy code
} finally {
close(outputStream);
close(inputStream);
}
Regards,
Arjen
Op dinsdag 5 januari 2016 16:25:56 UTC+1 schreef Nicolas Peru: