Results 1 to 6 of 6
- 12-27-2008, 12:14 AM #1
Member
- Join Date
- Dec 2008
- Posts
- 3
- Rep Power
- 0
- 01-10-2009, 03:12 PM #2
Member
- Join Date
- Dec 2008
- Posts
- 3
- Rep Power
- 0
Is my question stupid or unclear or impossible?
- 01-11-2009, 02:16 AM #3
Eclipse preferences, somewhere in Java.compiler, lets you set up warnings, and you can also specify formatter settings that will force your code into a style that exposes those sorts of errors. For example, you might be able to expose the first one by requiring all if statements to use {}.
Having said that, it won't stop you from doing things that are strange but valid. The second falls in that category, afaik.
If it was easy, no one would pay you to do it ;-)
- 01-11-2009, 03:48 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Since those things are errors, why you just want to see them as warnings. I think Eclipse clearly state those things as errors. Seems to me this is annoying thing our thread starter wants to do.
- 01-11-2009, 04:03 AM #5
I've never tried the first one, but I *think* it might be a valid statement. The second is a fragment, but the idea is valid.
I think ff wants the compiler to warn him/her about slip ups that end up compiling but that don't make sense. That's why I said it's not easy, the compiler can't do all the work for us...
- 01-11-2009, 10:12 AM #6
Member
- Join Date
- Dec 2008
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
Sql string with callable statement..
By nathan in forum JDBCReplies: 1Last Post: 09-24-2008, 01:41 AM -
string vs string builder??
By j2vdk in forum New To JavaReplies: 6Last Post: 09-08-2008, 09:38 AM -
Using java.util.Scanner to search for a String in a String
By Java Tip in forum Java TipReplies: 0Last Post: 11-20-2007, 04:59 PM -
Help with insertName(String name) and deleteName(String name)
By trill in forum New To JavaReplies: 1Last Post: 08-07-2007, 07:29 AM -
I can't seem to pass the value of a string variable into a string array
By mathias in forum Java AppletsReplies: 1Last Post: 08-03-2007, 10:52 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks