summaryrefslogtreecommitdiff
path: root/platform/platform-api/src/com/intellij/openapi/util/DefaultModificationTracker.java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/platform-api/src/com/intellij/openapi/util/DefaultModificationTracker.java')
-rw-r--r--platform/platform-api/src/com/intellij/openapi/util/DefaultModificationTracker.java29
1 files changed, 16 insertions, 13 deletions
diff --git a/platform/platform-api/src/com/intellij/openapi/util/DefaultModificationTracker.java b/platform/platform-api/src/com/intellij/openapi/util/DefaultModificationTracker.java
index 05f8417e1780..bd5a2dfc61c2 100644
--- a/platform/platform-api/src/com/intellij/openapi/util/DefaultModificationTracker.java
+++ b/platform/platform-api/src/com/intellij/openapi/util/DefaultModificationTracker.java
@@ -1,16 +1,19 @@
+/*
+ * Copyright 2000-2014 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package com.intellij.openapi.util;
-import java.util.concurrent.atomic.AtomicLong;
-
-public class DefaultModificationTracker implements ModificationTracker {
- private volatile AtomicLong myCount = new AtomicLong();
-
- @Override
- public long getModificationCount() {
- return myCount.get();
- }
-
- public void incModificationCount() {
- myCount.incrementAndGet();
- }
+public class DefaultModificationTracker extends SimpleModificationTracker {
}