Skip to content

Commit c8e49f4

Browse files
committed
navigation discovery
1 parent 8099932 commit c8e49f4

File tree

96 files changed

+1266
-2965
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1266
-2965
lines changed

ide-common/src/main/java/org/digma/intellij/plugin/common/Retries.java

Lines changed: 0 additions & 104 deletions
This file was deleted.

ide-common/src/main/java/org/digma/intellij/plugin/document/BuildDocumentInfoProcessContext.java

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
package org.digma.intellij.plugin.collections
2+
3+
import com.intellij.util.containers.HashSetQueue
4+
import java.util.Queue
5+
6+
class SynchronizedHashSetQueue<T> : Queue<T> {
7+
8+
private val delegate = HashSetQueue<T>()
9+
private val lock = Any()
10+
11+
override val size: Int
12+
get() = synchronized(lock) { delegate.size }
13+
14+
override fun isEmpty(): Boolean = synchronized(lock) {
15+
delegate.isEmpty()
16+
}
17+
18+
override fun contains(element: T): Boolean = synchronized(lock) {
19+
delegate.contains(element)
20+
}
21+
22+
override fun iterator(): MutableIterator<T> = synchronized(lock) {
23+
ArrayList(delegate).iterator() // Snapshot iterator
24+
}
25+
26+
override fun remove(element: T): Boolean = synchronized(lock) {
27+
delegate.remove(element)
28+
}
29+
30+
override fun add(element: T): Boolean = synchronized(lock) {
31+
return@synchronized element?.let {
32+
delegate.add(it)
33+
} ?: false
34+
}
35+
36+
override fun offer(element: T): Boolean = synchronized(lock) {
37+
return@synchronized element?.let {
38+
delegate.offer(it)
39+
} ?: false
40+
}
41+
42+
override fun remove(): T = synchronized(lock) {
43+
delegate.remove()
44+
}
45+
46+
override fun poll(): T? = synchronized(lock) {
47+
delegate.poll()
48+
}
49+
50+
override fun element(): T = synchronized(lock) {
51+
delegate.element()
52+
}
53+
54+
override fun peek(): T? = synchronized(lock) {
55+
delegate.peek()
56+
}
57+
58+
override fun containsAll(elements: Collection<T>): Boolean = synchronized(lock) {
59+
delegate.containsAll(elements)
60+
}
61+
62+
override fun addAll(elements: Collection<T>): Boolean = synchronized(lock) {
63+
delegate.addAll(elements)
64+
}
65+
66+
override fun removeAll(elements: Collection<T>): Boolean = synchronized(lock) {
67+
delegate.removeAll(elements)
68+
}
69+
70+
override fun retainAll(elements: Collection<T>): Boolean = synchronized(lock) {
71+
delegate.retainAll(elements)
72+
}
73+
74+
override fun clear() = synchronized(lock) {
75+
delegate.clear()
76+
}
77+
}

ide-common/src/main/kotlin/org/digma/intellij/plugin/common/CatchingUtils.kt

Lines changed: 0 additions & 103 deletions
This file was deleted.

ide-common/src/main/kotlin/org/digma/intellij/plugin/common/PsiAccessUtils.kt

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)