This week's book giveaway is in the Java in General forum.
We're giving away four copies of Java by Comparison (eBook) and have Simon Harrer, Jörg Lenhard, Linus Dietz on-line!
See this thread for details.
Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mistake of the day  RSS feed

 
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How could I have?



You can imagine it wasnt that hard to find...Likely a result of going from do-while to just while.
[ November 11, 2005: Message edited by: Mr. C Lamont Gilbert ]
 
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is one of the most ing mistakes ever!

I know how it feels mate.

 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To paraphrase my favorite Dilbert comic strip, "...don't get me started on your overuse of semi-colons...".

Cheers
 
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using an IDE? Automated reformatting should make the problem more visible. And I *think* Eclipse can flag such strange code (a loop with an empty statement) with a warning.
 
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Ilja Preuss:
Are you using an IDE? Automated reformatting should make the problem more visible. And I *think* Eclipse can flag such strange code (a loop with an empty statement) with a warning.



Intellij IDEA certainly can - flag empty statements as warnings
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!