remove unnecessary semicolons

This commit is contained in:
AdrianLxM 2017-07-20 01:01:50 +02:00
parent 1ba11ed006
commit b72482601e
8 changed files with 10 additions and 22 deletions

View file

@ -83,7 +83,6 @@ public class ConfigBuilderPlugin implements PluginBase, PumpInterface, Constrain
MainApp.bus().register(this);
PowerManager powerManager = (PowerManager) MainApp.instance().getApplicationContext().getSystemService(Context.POWER_SERVICE);
mWakeLock = powerManager.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "ConfigBuilderPlugin");
;
}
@Override

View file

@ -33,7 +33,7 @@ public class BroadcastStatus {
bundle.putInt("nsclientversioncode", MainApp.instance().getPackageManager().getPackageInfo(MainApp.instance().getPackageName(), 0).versionCode);
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
};
}
bundle.putString("nightscoutversionname", NSClientService.nightscoutVersionName);
bundle.putInt("nightscoutversioncode", NSClientService.nightscoutVersionCode);
bundle.putString("status", status.getData().toString());

View file

@ -207,8 +207,6 @@ public class NSSettingsStatus {
return ret;
}
;
private Integer getIntegerOrNull(String key) {
Integer ret = null;
if (data.has(key)) {
@ -221,8 +219,6 @@ public class NSSettingsStatus {
return ret;
}
;
private Long getLongOrNull(String key) {
Long ret = null;
if (data.has(key)) {
@ -235,8 +231,6 @@ public class NSSettingsStatus {
return ret;
}
;
private Date getDateOrNull(String key) {
Date ret = null;
if (data.has(key)) {
@ -249,8 +243,6 @@ public class NSSettingsStatus {
return ret;
}
;
private boolean getBooleanOrNull(String key) {
boolean ret = false;
if (data.has(key)) {

View file

@ -24,7 +24,7 @@ public class NSSgv {
}
}
return ret;
};
}
private Integer getIntegerOrNull(String key) {
Integer ret = null;
@ -36,7 +36,7 @@ public class NSSgv {
}
}
return ret;
};
}
private Long getLongOrNull(String key) {
Long ret = null;
@ -48,7 +48,7 @@ public class NSSgv {
}
}
return ret;
};
}
public JSONObject getData () { return data; }
public Integer getMgdl () { return getIntegerOrNull("mgdl"); }

View file

@ -25,7 +25,7 @@ public class NSTreatment {
}
}
return ret;
};
}
private Double getDoubleOrNull(String key) {
Double ret = null;
@ -37,7 +37,7 @@ public class NSTreatment {
}
}
return ret;
};
}
private Integer getIntegerOrNull(String key) {
Integer ret = null;
@ -49,7 +49,7 @@ public class NSTreatment {
}
}
return ret;
};
}
private Long getLongOrNull(String key) {
Long ret = null;
@ -61,7 +61,7 @@ public class NSTreatment {
}
}
return ret;
};
}
private Date getDateOrNull(String key) {
Date ret = null;
@ -73,7 +73,7 @@ public class NSTreatment {
}
}
return ret;
};
}
public String getAction() { return action; }
public JSONObject getData() { return data; }

View file

@ -213,9 +213,7 @@ public class WizardDialog extends DialogFragment implements OnClickListener, Com
bgTrendInsulin = (TextView) view.findViewById(R.id.treatments_wizard_bgtrendinsulin);
cobLayout = (LinearLayout) view.findViewById(R.id.treatments_wizard_cob_layout);
cob = (TextView) view.findViewById(R.id.treatments_wizard_cob);
;
cobInsulin = (TextView) view.findViewById(R.id.treatments_wizard_cobinsulin);
;
bgCheckbox = (CheckBox) view.findViewById(R.id.treatments_wizard_bgcheckbox);
bolusIobCheckbox = (CheckBox) view.findViewById(R.id.treatments_wizard_bolusiobcheckbox);

View file

@ -434,7 +434,6 @@ public class CircadianPercentageProfileFragment extends Fragment {
if (i == 0) {
copyprevbutton.setVisibility(View.INVISIBLE);
;
} else {
final int j = i; //needs to be final to be passed to inner class.
copyprevbutton.setOnClickListener(new View.OnClickListener() {

View file

@ -173,7 +173,7 @@ public class ActionStringHandler {
rTitle += " LOOP";
rMessage = "TARGETS:\n" + getTargetsStatus();
rMessage += "\n\n" + getLoopStatus();
rMessage += "\n\nOAPS RESULT:\n" + getOAPSResultStatus();;
rMessage += "\n\nOAPS RESULT:\n" + getOAPSResultStatus();
}
} else if ("wizard".equals(act[0])) {