surrealdb / surrealdb.java

SurrealDB SDK for Java
https://surrealdb.com
Apache License 2.0
67 stars 21 forks source link

refactor: modify multiple classes to use Java records #32

Closed LOSTEDs closed 1 year ago

LOSTEDs commented 1 year ago

The record keyword is a concise way to declare a class that is primarily intended to store data, leading to a significant reduction of boilerplate code. In addition, I have updated Gson to version 2.10.1, as only versions >= 2.10 support the serialization and deserialization of Java records. Finally, I have also applied code formatting with Spotless.

eharrow commented 1 year ago

That's funny I submitted a couple of PRs last week for the very same.

LOSTEDs commented 1 year ago

That's funny I submitted a couple of PRs last week for the very same.

Ahhh, I might just close this pr...

LOSTEDs commented 1 year ago

See https://github.com/surrealdb/surrealdb.java/pull/20#pullrequestreview-1356648980