"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
Originally posted by Jim Yingst:
Are you sure about that? getPolicy() just makes a security check and calls getPolicyNoCheck(). The code for the latter (in JDK 1.4.2 anyway) is basically
Looks like a singleton to me. Are you using a particular JDK where you see something different?
"I'm not back." - Bill Harding, Twister
Read about me at frankcarver.me ~ LinkedIn ~ Frank's PhD research
What I should have said was that getInstance() does not return a new instance every time it's called.
"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |