Skip to content

Commit

Permalink
Java Gson for Android: Fix method name to be "optString" instead of "…
Browse files Browse the repository at this point in the history
…opt" to get String type value from JSONObject in constructor.
  • Loading branch information
Yasuaki Tamura committed Mar 3, 2018
1 parent 3338a96 commit 947311a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,34 @@ JSONExport.xcodeproj/xcuserdata/ahmed.xcuserdatad/xcdebugger/Breakpoints_v2.xcbk
JSONExport.xcodeproj/project.xcworkspace/xcuserdata/ahmedali.xcuserdatad/UserInterfaceState.xcuserstate
JSONExport.xcodeproj/xcuserdata/ahmedali.xcuserdatad/xcschemes/JSONExport.xcscheme
JSONExport.xcodeproj/xcuserdata/ahmedali.xcuserdatad/xcschemes/xcschememanagement.plist


# OS X Finder
.DS_Store
.LSOverride

# Xcode per-user config
*.mode1
*.mode1v3
*.mode2v3
*.perspective
*.perspectivev3
*.pbxuser
#*.xcworkspace
xcuserdata


# Build products
build/
*.o
*.LinkFileList
*.hmap

# Automatic backup files
*~.nib/
*.swp
*~
*.dat
*.dep

Breakpoints.xcbkptlist
6 changes: 3 additions & 3 deletions JSONExport/Supported Languages/Java-Android Gson.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"String"
],
"basicTypesWithSpecialFetchingNeedsReplacements" : [

"",""
"",
"String"
],
"constructors": [
{
Expand Down Expand Up @@ -66,4 +66,4 @@
"returnStatement": "\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn jsonObject;\n"
}
]
}
}

0 comments on commit 947311a

Please sign in to comment.