Together-Java / TJ-Bot

TJ-Bot is a Discord Bot used on the Together Java server. It is maintained by the community, anyone can contribute.
https://togetherjava.org
GNU General Public License v3.0
98 stars 82 forks source link

Make use of getFirst/getLast #1091

Closed SimonVerhoeven closed 1 month ago

SimonVerhoeven commented 2 months ago

Is your feature request related to a problem? Please describe.

Not a problem, but there are some occurrences such as .get(scheduleHours.size() - 1) which could be replaced with getLast().

Describe the solution you'd like

To make use of the new convenience methods.

Additional context

similiarly, get(0) will be replaced by getFirst()

SimonVerhoeven commented 1 month ago

To help out: this is to leverage the advantages of https://openjdk.org/jeps/431

nefelhhh commented 1 month ago

hi can I take on this?

SquidXTV commented 1 month ago

hi can I take on this?

Yes, I am going to assign you to this. <3