0
Fixed

Singleton Example: synchronized(this) in static context

Micha D. Rosenbaum 7 Π»Π΅Ρ‚ Π½Π°Π·Π°Π΄ β€’ ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½ 7 Π»Π΅Ρ‚ Π½Π°Π·Π°Π΄ β€’ 2

When I try to use your code of the thread-safe Singleton example, I get an error because of the use of this in an static context. Should `this` be replaced by `Singleton.class` in this example?

ΠžΡ‚Π²Π΅Ρ‚

+2
ΠžΡ‚Π²Π΅Ρ‚
Fixed

Hi Micha!

This was an unfortunate result of my recent update for this example. Please check it now, everything should be fine.

+2
ΠžΡ‚Π²Π΅Ρ‚
Fixed

Hi Micha!

This was an unfortunate result of my recent update for this example. Please check it now, everything should be fine.

БСрвис ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠΈ ΠΊΠ»ΠΈΠ΅Π½Ρ‚ΠΎΠ² Ρ€Π°Π±ΠΎΡ‚Π°Π΅Ρ‚ Π½Π° ΠΏΠ»Π°Ρ‚Ρ„ΠΎΡ€ΠΌΠ΅ UserEcho