Make PrivateStateChanged and WorkInProgressStateChanged singletons
On stable-2.14, all event firing classes were changed to be singletons. PrivateStateChanged and WorkInProgressStateChanged were introduced in stable-2.15 only. Make them singletons to be consistent with the other event firing classes. Change-Id: I3248327299e2daaf589e20a7bdaca019f112548f
This commit is contained in:
parent
48a3ae7168
commit
d0a966c92f
|
@ -23,10 +23,12 @@ import com.google.gerrit.reviewdb.client.Account;
|
|||
import com.google.gerrit.reviewdb.client.Change;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Singleton;
|
||||
import java.sql.Timestamp;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@Singleton
|
||||
public class PrivateStateChanged {
|
||||
private static final Logger log = LoggerFactory.getLogger(PrivateStateChanged.class);
|
||||
|
||||
|
|
|
@ -23,10 +23,12 @@ import com.google.gerrit.reviewdb.client.Account;
|
|||
import com.google.gerrit.reviewdb.client.Change;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Singleton;
|
||||
import java.sql.Timestamp;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@Singleton
|
||||
public class WorkInProgressStateChanged {
|
||||
private static final Logger log = LoggerFactory.getLogger(WorkInProgressStateChanged.class);
|
||||
|
||||
|
|
Loading…
Reference in New Issue