From b8cafdd1c70b3fbb455ee6821c3dd0e5dc587188 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 4 May 2014 18:10:35 +0200 Subject: Use lombok and clean up --- src/org/json/simple/JSONStreamAware.java | 2 +- src/org/json/simple/parser/ContentHandler.java | 4 ++-- src/org/json/simple/parser/Yylex.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/org') diff --git a/src/org/json/simple/JSONStreamAware.java b/src/org/json/simple/JSONStreamAware.java index 561634d..c0420fb 100644 --- a/src/org/json/simple/JSONStreamAware.java +++ b/src/org/json/simple/JSONStreamAware.java @@ -14,5 +14,5 @@ public interface JSONStreamAware { /** * write JSON string to out. */ - void writeJSONString(Writer out) throws IOException; + void writeJSONString(final Writer out) throws IOException; } diff --git a/src/org/json/simple/parser/ContentHandler.java b/src/org/json/simple/parser/ContentHandler.java index a704485..5ed233d 100644 --- a/src/org/json/simple/parser/ContentHandler.java +++ b/src/org/json/simple/parser/ContentHandler.java @@ -62,7 +62,7 @@ public interface ContentHandler { * * @see #endObjectEntry */ - boolean startObjectEntry(String key) throws ParseException, IOException; + boolean startObjectEntry(final String key) throws ParseException, IOException; /** * Receive notification of the end of the value of previous object entry. @@ -105,6 +105,6 @@ public interface ContentHandler { * @return false if the handler wants to stop parsing after return. * @throws ParseException */ - boolean primitive(Object value) throws ParseException, IOException; + boolean primitive(final Object value) throws ParseException, IOException; } diff --git a/src/org/json/simple/parser/Yylex.java b/src/org/json/simple/parser/Yylex.java index 1ccf1b4..10049c4 100644 --- a/src/org/json/simple/parser/Yylex.java +++ b/src/org/json/simple/parser/Yylex.java @@ -304,11 +304,11 @@ class Yylex { */ public final void yyreset(final rejava.io.Reader reader) { this.zzReader = reader; - //this.zzAtBOL = true; + // this.zzAtBOL = true; this.zzAtEOF = false; this.zzEndRead = this.zzStartRead = 0; this.zzCurrentPos = this.zzMarkedPos = 0; - //this.yyline = this.yychar = this.yycolumn = 0; + // this.yyline = this.yychar = this.yycolumn = 0; this.zzLexicalState = Yylex.YYINITIAL; } -- cgit v1.2.3