Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • It might be a good idea to ask for a code review on codereview.stackexchange.com, I'm seeing quite a few things that seem a little unusual in the code you posted. They aren't specific to the error you're seeing, just general items. Commented Jun 30, 2016 at 3:13
  • Any reason why you are using reflection on this simple task? You are explicitly creating a Doc instance after all. Commented Jul 4, 2016 at 2:04
  • OK, maybe i wont implement Reflection anymore here! Any suggestions??, since doc class has nothing to holdall docs ids. Maybe i should add hashmap to store doc ids and their list of tockens?? Commented Jul 4, 2016 at 10:55