Use JDK 7 language features whenever we can
[JAVAEETUTORIAL-174] Use try-with-resources (possibly other JDK 7 features) where we can Created: 06/Jun/13 Updated: 19/Sep/13 Resolved: 19/Sep/13
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
NB provides a hint when it would be useful to wrap code in a try-with-resources block. GreetingServlet.java (in hello2) should implement this fix for the PrintWriter that it uses. Other older examples may need such fixes too.
|Comment by jendrock [ 06/Jun/13 ]|
Fixed GreetingServlet.java (in web/servlet/hello2), and MoodServlet.java (in web/servlet/mood).
|Comment by Ian Evans [ 24/Jun/13 ]|
See the following tech note:
|Comment by rcervera [ 05/Sep/13 ]|
Fixed in the connector examples.
|Comment by Ian Evans [ 19/Sep/13 ]|
I think we've updated the example tree with these language features.