FEUP-LDTS-2021 / ldts-project-assignment-g1302

ldts-project-assignment-g1302 created by GitHub Classroom
0 stars 1 forks source link

Refactor position to be record class #12

Closed Naapperas closed 2 years ago

Naapperas commented 2 years ago

Found here:

https://github.com/FEUP-LDTS-2021/ldts-project-assignment-g1302/blob/e007f43262b5501b3f2ea126fb736234cae6301a/src/main/java/pt/up/fe/ldts/model/Element.java#L5

This hole class can be replaces by one line, making the code more concise.

Naapperas commented 2 years ago

Scratch this: record classes are for immutable data, not the case with Position.