Rather than have the code in the else as that method currently has nothing in it. It was going through a jar file when I debugged when it hit that method I noticed so I changed it to else return and it only retrieves the values once now.
Alice Hampton wrote:It currently prints out the directory and the classes in a package but it does it twice and debugging it it never hits return - is there anything that can be done to improve it? I don't get why it loops through twice and then goes on to execute the other code :s
And without knowing what findClassesInDirectory() and findClassesInArchive() do, neither do we.
However, you could help yourself out by breaking up some of that logic so that you can track it, viz:I'm sure you get the idea.