
6 May
2014
6 May
'14
6:24 p.m.
Hi
Eclipse complains about a lot places in the source code., e.g. "Resource leak: 'fmt' is never closed SyntaxException.java /mkgmap/src/uk/me/parabola/mkgmap/scan line 45 Java Problem"
The code looks like this:
public String getMessage() { Formatter fmt = new Formatter();
In this case it writes to a StringBuilder. This is not even a Closable, so the close() method of Formatter does nothing in this case. So nothing is being leaked. ..Steve