stefan-kaestle / openhab2-addons

Add-ons for openHAB 2.x
Eclipse Public License 2.0
16 stars 1 forks source link

Only use one Gson instance per object instead of creating new ones for each call #33

Closed coeing closed 3 years ago

coeing commented 3 years ago

Due to the official GSON user guide, the object does not store any state and can be used for multiple serializations/deserializations: https://sites.google.com/site/gson/gson-user-guide#TOC-Using-Gson

coeing commented 3 years ago

@GerdZanker changed most of the usages of the Gson object, so we can close this issue.