Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ekigamba committed Jul 2, 2020
1 parent 34b65ed commit 3fcef04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import org.json.JSONException;
import org.json.JSONObject;
import org.smartregister.client.utils.contract.ClientFormContract;
import org.smartregister.client.utils.contract.JsonSubFormAndRulesLoader;

import java.util.Collection;
import java.util.Map;
Expand All @@ -19,6 +18,7 @@
* Created by vijay on 5/16/15.
*/
public interface JsonApi extends ClientFormContract.View {

JSONObject getStep(String stepName);

void writeValue(String stepName, String key, String value, String openMrsEntityParent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,7 @@ public void onFormSelected(@NonNull ClientFormContract.Model selectedForm) {

if (isRulesFile) {
try {
clientForm.setJson(Utils.convertStreamToString(context.getAssets().open(formIdentity)));
clientForm.setJson(convertStreamToString(context.getAssets().open(formIdentity)));
} catch (IOException e) {
Timber.e(e);
}
Expand Down Expand Up @@ -1955,7 +1955,7 @@ public JSONObject getSubFormJsonFromRepository(@NonNull Context context, @NonNul
clientForm = clientFormDao.getActiveClientFormByIdentifier(revisedFormName);

if (clientForm == null) {
String finalSubFormsLocation = com.vijay.jsonwizard.utils.FormUtils.getSubFormLocation(subFormsLocation);
String finalSubFormsLocation = getSubFormLocation(subFormsLocation);
dbFormName = StringUtils.isBlank(finalSubFormsLocation) ? localeFormIdentity : finalSubFormsLocation + "/" + localeFormIdentity;
clientForm = clientFormDao.getActiveClientFormByIdentifier(dbFormName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.robolectric.RuntimeEnvironment;
import org.robolectric.util.ReflectionHelpers;
import org.smartregister.client.utils.contract.ClientFormContract;

import java.text.SimpleDateFormat;
Expand Down

0 comments on commit 3fcef04

Please sign in to comment.