diff --git a/src/com/muedsa/intellij/textReader/composes/ReaderWindow.java b/src/com/muedsa/intellij/textReader/composes/ReaderWindow.java index 38ab52e..be97a0d 100644 --- a/src/com/muedsa/intellij/textReader/composes/ReaderWindow.java +++ b/src/com/muedsa/intellij/textReader/composes/ReaderWindow.java @@ -155,7 +155,7 @@ private void createUIComponents(){ searchTextField.getDocument().addDocumentListener(new DocumentAdapter() { - private List threadList = new ArrayList<>(); + private final List threadList = new ArrayList<>(); private void search(String searchText){ if(StringUtils.isEmpty(searchText)){ @@ -181,7 +181,7 @@ protected void textChanged(@NotNull DocumentEvent documentEvent){ class searchThread extends Thread{ private boolean cancel = false; - private String searchText; + private final String searchText; public searchThread(String searchText){ super();