Skip to content

Commit 6d583aa

Browse files
feffijknack
authored andcommitted
fixed minor code issues (jooby-project#1165)
1 parent 5db5949 commit 6d583aa

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

modules/jooby-gson/src/main/java/org/jooby/json/GsonParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@
213213

214214
class GsonParser implements Parser {
215215

216-
private MediaType type;
216+
private final MediaType type;
217217

218-
private Gson gson;
218+
private final Gson gson;
219219

220220
public GsonParser(final MediaType type, final Gson gson) {
221221
this.type = requireNonNull(type, "Media type is required.");

modules/jooby-gson/src/main/java/org/jooby/json/GsonRenderer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@
212212

213213
class GsonRenderer implements Renderer {
214214

215-
private MediaType type;
215+
private final MediaType type;
216216

217-
private Gson gson;
217+
private final Gson gson;
218218

219219
public GsonRenderer(final MediaType type, final Gson gson) {
220220
this.type = requireNonNull(type, "Media type is required.");

modules/jooby-gson/src/main/java/org/jooby/json/Gzon.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
*/
275275
public class Gzon implements Jooby.Module {
276276

277-
private MediaType type;
277+
private final MediaType type;
278278

279279
private BiConsumer<GsonBuilder, Config> configurer;
280280

0 commit comments

Comments
 (0)