public class QuoteRepository {class QuoteList extends ArrayList<Quote> {}public Quote[] all() {String path = "data/quotes.json";Gson gson = new Gson();try {BufferedReader br = new BufferedReader(new FileReader(path));return gson.fromJson(br, Quote[].class);} catch (IOException e) {e.printStackTrace();}return new Quote[]{};}}
--
The only way to go fast is to go well.
---
You received this message because you are subscribed to the Google Groups "Clean Code Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clean-code-discussion+unsub...@googlegroups.com.
To post to this group, send email to clean-code-discussion@googlegroups.com.
Visit this group at https://groups.google.com/group/clean-code-discussion.