mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
navigating_psi.md: Add @NotNull annotation to code snippet
This commit is contained in:
parent
7bd389f6fc
commit
89a115b308
@ -23,7 +23,7 @@ The following snippet shows the use of a visitor to find all Java local variable
|
||||
```java
|
||||
file.accept(new JavaRecursiveElementVisitor() {
|
||||
@Override
|
||||
public void visitLocalVariable(PsiLocalVariable variable) {
|
||||
public void visitLocalVariable(@NotNull PsiLocalVariable variable) {
|
||||
super.visitLocalVariable(variable);
|
||||
System.out.println("Found a variable at offset " +
|
||||
variable.getTextRange().getStartOffset());
|
||||
|
Loading…
x
Reference in New Issue
Block a user