Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Task:
• Sklonuj repozytorium do którego zostałeś dodany i utwórz nowy branch
poleceniem (polecenie git checkout -b constants)
6. Przejrzyj kod w poszukiwaniu literałów (napisy, liczby), które można by zastąpić
deklaracjami stałych (np. w klasie DefaultCountingOutRhymer liczby -1 i 12).
Wygeneruj odpowiednie stałe używając opcji Refactor → Extract Constant.
7. Ustaw modyfikator final przy niemutowalnych (nie zmieniających wartości)
atrybutach klas.
8. Użyj annotacji @OverRide przy metodach tam gdzie jest to możliwe.
• Prześlij zmiany do zdalnego repozytorium (właściciela) – polecenie git push
origin constants.
• Przejdź na główną stronę repozytorium i wybierz opcję New pull request.
• Jako base repository wybierz repozytorium właściciela i branch master, a jako
head repository wybierz branch na którym pracowałeś, po czym kliknij Create
pull request.
• Przejdź do strony z nowo utworzonym pull requestem i z kliknij zębatkę przy
liście Reviewers, wybierz właściciela repozytorium jako recenzenta kodu
(reviewer).
• Na tej samej stronie powiąż pull request z Issue (opcja Development panelu
bocznego po prawej stronie).