1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2025-01-09 20:58:02 -05:00

CommandParser: synchronize access to getInstance()

This commit is contained in:
Sebastian Kaspari 2010-04-25 12:42:34 +02:00
parent 84fdcd8249
commit 4d3a7c2ecc

View File

@ -126,7 +126,7 @@ public class CommandParser
* *
* @return * @return
*/ */
public static CommandParser getInstance() public static synchronized CommandParser getInstance()
{ {
if (instance == null) { if (instance == null) {
instance = new CommandParser(); instance = new CommandParser();