blob: a13113785c0d9f02966ad9ed8b372d608b2b56fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
public class StaticVariableReferenced {
private static Object example;
private static String s = "yes";
public static Object getInstance() {
if (example == null) {
example<caret> = getString(s);
}
return example
}
private static String getString(String s) {
return new String(s);
}
}
|