Skip to content
Browse files

more white space updates

  • Loading branch information...
1 parent c72d71f commit 28fa22a76bc47a532f6e36b6cf8a456d60d434c1 @SidneyAllen committed Sep 27, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 java/src/main/java/com/stackmob/example/SendGrid.java
View
11 java/src/main/java/com/stackmob/example/SendGrid.java
@@ -96,17 +96,18 @@ public ResponseToProcess execute(ProcessedAPIRequest request, SDKServiceProvider
Object obj = parser.parse(request.getBody());
JSONObject jsonObject = (JSONObject) obj;
//We use the username passed to query the StackMob datastore
- // //and retrieve the user's name and email address
+ //and retrieve the user's name and email address
username = (String) jsonObject.get("username");
- // The following values could be static or dynamic
- subject = (String) jsonObject.get("subject");
+
+ // The following values could be static or dynamic
+ subject = (String) jsonObject.get("subject");
text = (String) jsonObject.get("text");
from = (String) jsonObject.get("from");
- } catch (ParseException e) {
+ } catch (ParseException e) {
logger.error(e.getMessage(), e);
responseCode = -1;
responseBody = e.getMessage();
- }
+ }
if (username == null || username.isEmpty()) {
HashMap<String, String> errParams = new HashMap<String, String>();

0 comments on commit 28fa22a

Please sign in to comment.
Something went wrong with that request. Please try again.