Skip to content

Commit

Permalink
gwt: Remove some useless imports. Minor whitespace changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
calin-iorgulescu committed Feb 5, 2015
1 parent fb330c5 commit a00905d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.Cookies;
import com.google.gwt.user.client.History;
import com.google.gwt.user.client.HistoryListener;
import com.google.gwt.user.client.Window;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public class ServiceError {

public ServiceError(HandlerManager eventBus, String URL) {
this.eventBus = eventBus;
this.constants = constants;
this.URL = URL;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ private Assignment parseAssignment(JSONObject jsonObj) {
String storageType = jsonObj.get(storageTypeKey).isString().stringValue().toLowerCase();
String deadline = jsonObj.get(deadlineKey).isString().stringValue();
String statementLink = jsonObj.get(statementLinkKey).isString().stringValue();
if(storageType.toLowerCase().equals("normal"))
if (storageType.toLowerCase().equals("normal")) {
return new Assignment(id, title, storageType, null, null, deadline, statementLink);
else {
} else {
String storageHost = jsonObj.get(storageHostKey).isString().stringValue();
String storageBasepath = jsonObj.get(storageBasepathKey).isString().stringValue();
return new Assignment(id, title, storageType, storageHost, storageBasepath, deadline, statementLink);
Expand Down

0 comments on commit a00905d

Please sign in to comment.