Suggest replacing list.get(0)
with list.getFirst()
and list.get(list.size() - 1)
with list.getLast()
#541
Labels
api
lints that check for code that reimplements parts of the api
D-easy
Easy to implement.
enhancement
New feature or request
java-21
low-priority
new-lint
A new lint.
What it does
The methods are there for a reason, so might as well suggest using them.
Lint Name
No response
Category
api
Example
<code>
Could be written as:
<code>
The text was updated successfully, but these errors were encountered: