mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
git: remove unneeded volatiles
Message start marker, message end marker, the files are all received
from the same thread (either stdout or stderr) => although the listener
is listening to different threads, in fact only one thread is important
during the command execution.
Follow-up to 712a158
This commit is contained in:
@@ -42,8 +42,8 @@ public class GitMessageWithFilesDetector implements GitLineHandlerListener {
|
||||
@NotNull private final VirtualFile myRoot;
|
||||
|
||||
@NotNull protected final Set<String> myAffectedFiles = new HashSet<>();
|
||||
protected volatile boolean myMessageDetected;
|
||||
@Nullable private volatile Key myMessageOutputType;
|
||||
protected boolean myMessageDetected;
|
||||
@Nullable private Key myMessageOutputType;
|
||||
|
||||
public GitMessageWithFilesDetector(@NotNull Event event, @NotNull VirtualFile root) {
|
||||
myEvent = event;
|
||||
|
||||
Reference in New Issue
Block a user