Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update task.md #7

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Task

In this task, you need to identify unnecessary variables and method and inline them using the automatic Inline
In this task, you need to identify unnecessary variables and methods and inline them using the automatic Inline
refactoring.

### Hints
Expand All @@ -14,10 +14,10 @@ Ctrl+Alt+N (Windows/Linux) shortcut.

<div class="hint" title="Refactoring hint">

The variable `text` in the method `main` is redundant and could be inlined.
The variable `text` in the `main` method is redundant and could be inlined.

The variables `fileWriter` and `bufferedWriter` in the method `getBufferedWriter` are redundant and could be inlined.
The variables `fileWriter` and `bufferedWriter` in the `getBufferedWriter` method are redundant and could be inlined.

Since the method `getBufferedWriter` contains only one line and is used only in one method, it could also be inlined.
Since the `getBufferedWriter` method contains only one line and is used only in one method, it could also be inlined.

</div>
Loading