mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-29 17:57:53 +08:00
[Code Samples Inspection] Java > Code style issues > Field may be 'final'
This commit is contained in:
parent
f64e752611
commit
115c3153d3
@ -13,7 +13,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class SimpleBlock extends AbstractBlock {
|
||||
private SpacingBuilder spacingBuilder;
|
||||
private final SpacingBuilder spacingBuilder;
|
||||
|
||||
protected SimpleBlock(@NotNull ASTNode node, @Nullable Wrap wrap, @Nullable Alignment alignment,
|
||||
SpacingBuilder spacingBuilder) {
|
||||
|
@ -28,7 +28,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.Collection;
|
||||
|
||||
class SimpleCreatePropertyQuickFix extends BaseIntentionAction {
|
||||
private String key;
|
||||
private final String key;
|
||||
|
||||
SimpleCreatePropertyQuickFix(String key) {
|
||||
this.key = key;
|
||||
|
@ -12,7 +12,7 @@ import org.jetbrains.annotations.*;
|
||||
import java.util.*;
|
||||
|
||||
public class SimpleReference extends PsiReferenceBase<PsiElement> implements PsiPolyVariantReference {
|
||||
private String key;
|
||||
private final String key;
|
||||
|
||||
public SimpleReference(@NotNull PsiElement element, TextRange textRange) {
|
||||
super(element, textRange);
|
||||
|
Loading…
x
Reference in New Issue
Block a user