We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a4fce2 commit c72a251Copy full SHA for c72a251
src/main/java/com/shimizukenta/jsonhub/JsonHubJsonParser.java
@@ -34,10 +34,10 @@ public AbstractJsonHub parse(CharSequence cs) {
34
String s = cs.toString();
35
36
if ( s.trim().isEmpty() ) {
37
- new JsonHubParseException("JSON is empty");
+ throw new JsonHubParseException("JSON is empty");
38
}
39
40
- return fromJson(cs.toString());
+ return fromJson(s);
41
42
catch ( JsonHubIndexOutOfBoundsException | JsonHubNumberFormatException e ) {
43
throw new JsonHubParseException(e);
0 commit comments