Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
4af803cb
Commit
4af803cb
authored
8 years ago
by
Artem Khvastunov
2
Browse files
Options
Download
Email Patches
Plain Diff
add a detailed error message when ID is already registered
parent
755dcc60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/core-api/src/com/intellij/util/indexing/ID.java
+2
-2
platform/core-api/src/com/intellij/util/indexing/ID.java
with
2 additions
and
2 deletions
+2
-2
platform/core-api/src/com/intellij/util/indexing/ID.java
+
2
-
2
View file @
4af803cb
/*
* Copyright 2000-201
6
JetBrains s.r.o.
* Copyright 2000-201
7
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.
...
...
@@ -86,7 +86,7 @@ public class ID<K, V> extends IndexId<K,V> {
myUniqueId
=
stringToId
(
name
);
final
ID
old
=
ourRegistry
.
put
(
myUniqueId
,
this
);
assert
old
==
null
;
assert
old
==
null
:
"ID with name '"
+
name
+
"' is already registered"
;
}
private
static
short
stringToId
(
String
name
)
{
...
...
This diff is collapsed.
Click to expand it.
小 白蛋
@baidan
mentioned in commit
99bbd7bb
·
2 years ago
mentioned in commit
99bbd7bb
mentioned in commit 99bbd7bb13b9ba97243c99b265debe6742d355b2
Toggle commit list
小 白蛋
@baidan
mentioned in commit
1bbfe92a
·
2 years ago
mentioned in commit
1bbfe92a
mentioned in commit 1bbfe92adc136fcfbf7baa2bab2ea4500c5902d4
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment