Skip to content

Commit

Permalink
simple language: cleanup SimpleReference
Browse files Browse the repository at this point in the history
  • Loading branch information
YannCebron committed Oct 25, 2023
1 parent 420cc1a commit 742a193
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2023 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.

package org.intellij.sdk.language;

Expand All @@ -14,11 +14,11 @@
import java.util.ArrayList;
import java.util.List;

public class SimpleReference extends PsiReferenceBase<PsiElement> implements PsiPolyVariantReference {
final class SimpleReference extends PsiReferenceBase<PsiElement> implements PsiPolyVariantReference {

private final String key;

public SimpleReference(@NotNull PsiElement element, TextRange textRange) {
SimpleReference(@NotNull PsiElement element, TextRange textRange) {
super(element, textRange);
key = element.getText().substring(textRange.getStartOffset(), textRange.getEndOffset());
}
Expand All @@ -31,7 +31,7 @@ public SimpleReference(@NotNull PsiElement element, TextRange textRange) {
for (SimpleProperty property : properties) {
results.add(new PsiElementResolveResult(property));
}
return results.toArray(new ResolveResult[results.size()]);
return results.toArray(new ResolveResult[0]);
}

@Nullable
Expand Down

0 comments on commit 742a193

Please sign in to comment.