mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
test++
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
class TryFinally {
|
||||
int method() {
|
||||
String s = "abcd";
|
||||
|
||||
return newMethod(s);
|
||||
}
|
||||
|
||||
private int newMethod(String s) {
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
try {
|
||||
buffer.append(s);
|
||||
return buffer.length();
|
||||
} finally {
|
||||
buffer.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user