-
Enhancement
-
Resolution: Duplicate
-
P5
-
None
-
1.2.0
-
x86
-
windows_nt
Name: tb29552 Date: 02/18/98
Whenever the compiler sees either of
for (...);
or
while (...);
couldn't it produce a warning insisting on
at least a 'continue' statement as the
loop body. This would make a very popular
programming mistake much harder to write.
(I think 'do; while (...);' is safe enough.)
Warning: loop statment with empty body.
Change it to 'for (...) continue;'
or 'while (...) continue;'
if this was intentional.
(Review ID: 25285)
======================================================================
- duplicates
-
JDK-4128179 # Add a lint-like facility to javac
-
- Closed
-