Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4dba4c3

Browse files
Merge pull request #2438 from Haehnchen/feature/access-read-constant
Fix read thread access of class consts lookup rendering
2 parents 55a2903 + 444ddb7 commit 4dba4c3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎src/main/java/fr/adrienbrault/idea/symfony2plugin/completion/lookup/ClassConstantLookupElementAbstract.java‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@
1111
* @author Daniel Espendiller <daniel@espendiller.net>
1212
*/
1313
abstract public class ClassConstantLookupElementAbstract extends LookupElement implements ClassConstantInsertHandler.ClassConstantLookupElementInterface {
14-
1514
@NotNull
1615
protected final PhpClass phpClass;
1716

17+
@NotNull
18+
String phpClassName;
19+
1820
public ClassConstantLookupElementAbstract(@NotNull PhpClass phpClass) {
1921
this.phpClass = phpClass;
22+
this.phpClassName = phpClass.getName();
2023
}
2124

2225
@Override
@@ -30,7 +33,7 @@ public void renderElement(LookupElementPresentation presentation) {
3033
@NotNull
3134
@Override
3235
public String getLookupString() {
33-
return phpClass.getName();
36+
return this.phpClassName;
3437
}
3538

3639
@NotNull
@@ -45,7 +48,7 @@ public PhpClass getPhpClass() {
4548
}
4649

4750
@Override
48-
public void handleInsert(InsertionContext context) {
51+
public void handleInsert(@NotNullInsertionContext context) {
4952
ClassConstantInsertHandler.getInstance().handleInsert(context, this);
5053
}
5154
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /