ObjectReader release method was replaced by close method but
WindowCursor was still implementing release method.
To prevent the same mistake again, make ObjectReader close method
abstract to force sub classes to implement it.
Change-Id: I50d0d1d19a26e306fd0dba77b246a95a44fd6584
Signed-off-by: Hugo Arès <hugo.ares@ericsson.com>
@After
public void tearDown() throws Exception {
if (wc != null)
- wc.release();
+ wc.close();
new WindowCacheConfig().install();
super.tearDown();
}
@After
public void tearDown() throws Exception {
if (wc != null)
- wc.release();
+ wc.close();
new WindowCacheConfig().install();
super.tearDown();
}
@Override
public void close() {
- wc.release();
+ wc.close();
}
}
\ No newline at end of file
try {
return open(new ByteArrayInputStream(raw), null, id, wc);
} finally {
- wc.release();
+ wc.close();
}
}
}
/** Release the current window cursor. */
- public void release() {
+ @Override
+ public void close() {
window = null;
baseCache = null;
try {
* @since 4.0
*/
@Override
- public void close() {
- // Do nothing.
- }
+ public abstract void close();
}