ftomassetti / effectivejava

Run queries on your Java code to check if it meets the criteria suggested by the book Effective Java. And some others.
Apache License 2.0
507 stars 45 forks source link

Confusing behavior enter key in interactive mode #57

Closed davidor closed 9 years ago

davidor commented 9 years ago

When in the interactive mode, if the user presses the enter key, he will get an error like this:

ERROR: Parse error at line 1, column 1: nil ^ Expected one of: singletons (followed by end-of-string) st (followed by end-of-string) finalizers (followed by end-of-string) f (followed by end-of-string) list (followed by end-of-string) q (followed by end-of-string) quit (followed by end-of-string) exit (followed by end-of-string) h (followed by end-of-string) help (followed by end-of-string) many-costructor-params mcp many-constructors mc load

Wouldn't it be more intuitive to get something like this when pressing enter multiple times?

If you think so, I can fix this.

davidor commented 9 years ago

This should be fixed in #59