mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
13 lines
289 B
Java
13 lines
289 B
Java
class TryFinally {
|
|
int method() {
|
|
String s = "abcd";
|
|
|
|
<selection>StringBuffer buffer = new StringBuffer();
|
|
try {
|
|
buffer.append(s);
|
|
return buffer.length();
|
|
} finally {
|
|
buffer.clear();
|
|
}</selection>
|
|
}
|
|
} |