我有一個查詢我同一類內使像這樣的方法的呼叫從另一段代碼爲什麼這段代碼會進入我的方法的錯誤塊?
String message = "null";
//In this case have too show the Yes/No button screen
return performManualVerification(transaction, patientId, scriptInfo, message);
正如所看到的上述消息包含字符串空我傳遞這對下面的方法,但在調試我正在檢查,它不是爲空檢查塊,它應該進入空檢查塊,它正在進行沒有手機塊。請指教
private int performManualVerification(ITransaction transaction,
String patientId, String scriptInfo, String message)
{
if (message.equalsIgnoreCase(null))
{
int UserResponse = messageBox.showMessage("patientinfoVerification",
null, IMessageBox.YESNO);
if (UserResponse == IMessageBox.YES) {
Map<String, List<String>> ppvValidatedinfo = getValidatedPatientData(transaction, patientId, scriptInfo);
if(ppvValidatedinfo.get(patientId) != null){
return MANUALLY_VERIFIED; // manually verified
}
}
return RETURN_SALE;
}
messageBox.showMessage("Nophone", null, IMessageBox.OK);
int UserResponse = messageBox.showMessage("patientinfoVerification",
null, IMessageBox.YESNO);
if (UserResponse == IMessageBox.YES) {
Map<String, List<String>> ppvValidatedinfo = getValidatedPatientData(transaction, patientId, scriptInfo);
if(ppvValidatedinfo.get(patientId) != null){
return MANUALLY_VERIFIED; // manually verified
}
}
return RETURN_SALE;
}
@ user1982609如果有幫助,請接受我的回答。 – Amarnath