Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from mlinnosk/master
- Loading branch information
Showing
2 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ work | |
*.iml | ||
*.ipr | ||
*.iws | ||
.classpath | ||
.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bec07a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you check the code through? I've been going through the older code base and the same code snippet is in them too, only difference being that the exceptions are not re-thrown, so the code does not crash. I just can't figure out whats the point of the code inside the try block.
First of all, theres no such method as "nbNodules". Second, looks to me that the method.invoke() is illformed. The first parameter passed to invoke should be the object the method is invoked on and in the example code a list is passed to it. Third, the number is local to the try block. Fourth, why is reflection used here? So only thing that would make sense is that there is some side effect that the call should cause.
My consern is that commenting out the block causes the graph to be drawn wrong. My test project shows only the number of modules line, but it is possible that the other two are drawn under it so it might be ok.