If you return a null array, the clients of the code must write extra code to check whether the return value is null (as shown in Listing 13).
如果您返回零数组,该代码的客户端必须编写额外的代码来检查返回值是否为零(如清单13所示)。
With static typing, the compiler can check the values of arguments, variables, or return values against values allowed for a given operation.
通过静态类型,编译器可以检查参数和变量的值或针对一个给定操作所允许的返回值。
Every time you call a function that can return an error, you need to be careful to check that your request produced the result you expected (or handle the error if it didn't).
每次您调用一个可以返回错误值的函数时,就必须小心地检查请求所生成的结果正是您所希望的(如果不是,就需要对错误进行处理)。
A common pitfall, similar to not checking for exceptions, is to fail to check the return value and for the code to proceed on the assumption that the call was successful.
与未检测异常相似,这也存在一个缺陷,即代码未检测返回值却假定调用成功而继续运行。
If it is easier to check a return value, or call an API to change a setting then go deep... and stop messing around on the surface.
如果检查一个返回值或者调用一个API来改变设置会更简单,那么就深入下去,停止在UI上浪费时间了。
The Replication Center will not do this check before running the SQL, and the SQL script will then run into the conflict and return an error message.
ReplicationCenter在运行SQL之前不进行这项检查,如果有错误,sql脚本将运行到这个冲突,并返回一条错误消息。
With the return value of fork in mind, the code can now check to see if it is the parent or child process and act accordingly.
考虑到fork的返回值,现在该代码可以检查确定它是父进程还是子进程,并进行相应的操作。
Next, check if the request made includes raw HTTP post data; if it does, return a JSON-encoded response.
接下来,检查请求是否包含原始httppost数据;如果有,返回一个JSON编码的响应。
It also means that you can check for the presence of params.iata to decide if you should return a list or an instance.
它还意味着您可以检查params . iata存在与否,以此来决定是应该返回列表还是一个实例。
I decided to return null, because when timeouts are not expected, this check could be skipped.
我决定返回null,因为当预料不会超时的时候,可以跳过该检查。
Note that I have to check that the attribute is actually present, since when it's absent the contains test would return true (the empty string is contained in all strings).
我必须检查这个属性实际上是否出现,因为当没有这个属性时,contains测试将返回true(所有字符串都包含空字符串)。
Disable namespace aware to ignore the namespace tagging in the XML document, and to check only the simple name of the element and the final return value.
禁用Namespaceaware忽略X ML文档中的名字空间标签,仅检测元素的简单名称和最终的返回值。
Rather than wait for the report to be generated, you could return a "please check the reports page in a few minutes" message, while the report is farmed out to a separate server asynchronously.
不需要让用户一直等待生成报告,而是可以返回“pleasecheckthereportspageinafewminutes”消息,同时在另一台服务器上异步地生成报告。
Mr. Feller instructed Mary Ann Lettieri, 71, to return with cash, not a check, to collect a fur from storage last Saturday.
上周六,Feller告诉71岁的MaryAnnLettieri要带现金而不是支票来取毛皮。
You then check if this field has any value at all or is not numeric, and, if either of these conditions hold true, you return an error.
您要检查这个字段是否没有任何值或者不是数字的,以及如果出现这两种情况中的一种,您应该返回一个错误。
If your queries execute without error but return no data, double-check the path expressions and namespace declarations in your query.
如果查询能够执行,但是没有返回数据,那么请仔细检查查询中的路径表达式和名称空间声明。
By design, a spider will return to a site periodically to check for new pages and changes to existing pages.
通过设计,蜘蛛可以周期性地返回到站点,检查新的页面和修改已有页面。
To his surprise a check for that amount, accompanied by a contract, came by return mail.
出乎他意料之外,寄回了一张五百元的支票和一纸合同。
Buttons are available to compose new mail, to refresh the view to check for new incoming messages, and to return to the previous view, in this case, the home page.
可以使用按钮来编写新邮件、刷新视图以查看新到来的邮件,以及返回前一个视图,在本文中为主页。
Link to other blogs: When other bloggers see you've linked to them, they'll check you out - and may link back to return the favor.
链接到别的博客:当其它写博客的人看到你链接了他们时,他们会想了解你,甚至有可能链接你的博客。
Sometimes "deleted" pages may say "404" or "Not found" on the page, but actually return a 200 status code in the page header; so it's good to use a proper header-checking tool to double-check.
有时“已经删除”页面可能会显示“404”或者“没有找到”,但事实上是在页头显示200状态代码;因此最好使用合适的页头检查工具再三核查。
Sketch out your vision, then return here to upload your ideas, see other submissions, and vote for your favorites. Check out this month's challenge.
请在这个范围内发挥你们的想象力,然后把你们的想法上传到这里来,或者看看其他人提出的创意,然后投票选出你最喜欢的。
Treatment If symptoms are merely irritating–not painful–it's okay to finish your trip and check with a doctor when you return.
治疗措施如果症状较轻——没有疼痛感——您可以在结束您的旅程之后拜访您的医生。
By knowing the store policy, the haggler knows when to return to check the price of something they already bought.
弄清减价规律,砍家就知道什么时候去查证他们已购物品的价格。
With these facts before you , we feel sure that you will send us your check by return mail.
有鉴于此,相信贵方将随复函寄来支票, 特此致谢。
That system useds for light dish rent or sale stores, the convenience rents the dish, return the dish and check to seek etc. operates, ising to rent the best assistant of the light dish store.
该系统用于光盘出租或销售店,方便租盘、还盘、查找等操作,是出租光盘店的最佳助手。
If an unknown class is referenced only in the implementation class (the bean class of the EJB) either as a return object or in the code, the AAT tool does not check for this class.
如果一个未知的类只在实现类(EJB的bean类)中被引用,作为返回对象或者在代码中,那么AAT工具将不检查这个类。
If an unknown class is referenced only in the implementation class (the bean class of the EJB) either as a return object or in the code, the AAT tool does not check for this class.
如果一个未知的类只在实现类(EJB的bean类)中被引用,作为返回对象或者在代码中,那么AAT工具将不检查这个类。
应用推荐