Rémi Forax wrote:
:


try (ServerSocket listener = ss;
     Socket s = listener.accept();
BufferedReader reader = new BufferedReader(new InputStreamReader(s.getInputStream()))
{
   ...
}

While you are there, I assume ss should be final.

Local variables declared in a try-with resources are implicitly final.
True, but this was just a minor comment on the RHS where it would be clearer if ss were final.

-Alan

Reply via email to