thread safety

This commit is contained in:
Alexey Kudravtsev
2015-05-19 12:31:08 +03:00
parent d3be5f0438
commit 907312838e
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ package com.intellij.openapi.vfs.newvfs;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.vfs.VirtualFile;
import gnu.trove.THashSet;
import com.intellij.util.containers.ContainerUtil;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -32,7 +32,7 @@ import java.io.IOException;
import java.util.Set;
public class FileAttribute {
private static final Set<String> ourRegisteredIds = new THashSet<String>();
private static final Set<String> ourRegisteredIds = ContainerUtil.newConcurrentSet();
private static final int UNDEFINED_VERSION = -1;
private final String myId;
private final int myVersion;