Skip to content

Commit

Permalink
Update task.md
Browse files Browse the repository at this point in the history
language checked
  • Loading branch information
stephen-hero authored and onewhl committed Jan 24, 2024
1 parent a4e0fca commit b99e955
Showing 1 changed file with 4 additions and 4 deletions.
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>

0 comments on commit b99e955

Please sign in to comment.