Because you can't be sure this method will be called only once, you have to perform a little character management, as Listing 4 shows.
因为不能肯定这种方法只被调用一次,所以必须进行一些字符管理工作,如清单4所示。
Also be sure the method returns a value that the stylesheet will use.
还要确保方法返回一个样式表将会用到的值。
If you're not sure of the preference names, you can find a list of the keys associated with a node with the keys method.
如果您对首选项名称不确定,您可以用keys方法查找一列与节点相关联的键。
Set the download method to Private, and be sure to set the file system path to a location that is not inside the directory /var/www/htdocs.
将下载方法设置为Private,并将文件系统路径设置为不在目录 /var/www/htdocs 中的位置。
However, that method comes with a disclaimer: Do not use it unless you are sure of the result.
然而,那个方法却有一个放弃声明:不要使用它除非您能确定这个结果。
This failure is easy to understand, but I'm not sure I really want to "fix" it — the method I'm not testing is trivial, and adding tests for trivial methods can be a waste of effort.
这个失败很容易理解,但我不确定是不是真的要“修正”它——我没有测试的这个方法非常微不足道,为这么微不足道的方法添加测试有点浪费精力。
If inlining is prevented with the presence of a lock and not prevented without, than we need to make sure that we don't include the extra method call in our results.
如果由于锁的存在而抑制了内联,反之没有锁就可能出现内联,那么我们要确保在测试结果中没有包含额外的方法调用。
However, spermicide on its own is actually a pretty poor method, so make sure you do combine them.
然而,实际上杀精剂本身就不是一个好办法,那么请保证将二者结合起来使用。
The resulting application looks the same (see Figure 1) for both code listings, but I'm sure you'll agree that listing 2 is a much more maintainable method.
两个清单中的代码生成的应用程序看上去完全一样(见图1),但是清单2是一个更容易维护的方法,我相信您也同意这一点。
Also, make sure you check the box to create a main method.
另外,确保勾选了关于创建主方法的复选框。
To be sure, if I had the money to pay for Teresa to attend an international school, I probably would not have opted for such a time-consuming method.
诚然,如果我有钱送泰丽莎去国际学校上学,恐怕就不会选择这种耗时的教育方式。
If you do this, design the method to be idempotent: That is, make sure it does exactly the same thing whether it's invoked once or a dozen times.
如果您这样做了,请设计一个幂等(idempotent)方法:也就是说,无论这个方式是被调用一次还是十次,确保它总是实现相同的功能。
This method performs a basic check to make sure that the App ID is set before proceeding, initializes the UI resources, and initializes the Facebook session instance (see Listing 5).
此方法执行一个基本的检查(以确保在继续之前已经设置了App ID)、初始化ui资源和初始化facebook会话实例(参见清单5)。
If your task is a Runnable, make sure that the computation is used to calculate some internal state that is used by task's toString method (which must override the one from Object).
如果任务是Runnable,就要确保任务的toString方法(这个方法必须覆盖object对象的方法)使用的某个内部状态是用这个计算获得的。
Make sure that there is only one line that is a super method invocation.
确保只有一行是父类方法调用。
If your task is a Callable, make sure that the computation is used to calculate the result returned by the call method.
如果任务是Callable,就要确保call方法返回计算所获得的结果。
Make sure that the option to create a stub for a main method is checked.
确认选中了为main方法创建存根的选项。
Years of experience and bitter tears have taught us to keep complex logic out of the constructor, especially anything that might call a server as a data access method is sure to do.
多年的经验和惨痛的教训教育我们,应该把复杂的逻辑扔到构造函数外面去,特别是那些需要从服务器获取数据的逻辑更是如此。
If you do this inside a constructor, you call a method that might manipulate members that haven't been initialized yet-a sure recipe for disaster.
如果你在构造方法中这么作的话可能会访问到一个没有创建初始化的成员,这肯定是会出问题的。
On the premise of a sure find of an optimal window size, The method utilizes integral image to speed up matching computation, so the calculation is independent of the window size.
在能够求得最佳窗口和正确视差的前提下,该方法多次利用整数图像来提高效率,使得计算量与窗口大小无关。
A specific and sure method of treatment has not yet to be found.
还没有找到一种有把握的特效疗法。
To make sure that the algorithm can reach the global optimized resolution, a novel method is proposed to improve the globally researching capability of canonical evolution strategy.
为了保证搜索到更优解,提出了一种新的演化策略改进方法,以提高其全局寻优能力,并将其应用到分割算法中。
This article only reported the results of median follow-up of 2 years, this method can not be sure there will continue such a good effect.
本文仅报道平均随访2年的结果,不能肯定这个方法继续进行会不会还有这样好的效果。
It is sure that real time holographic method is a kind of accurate and useful testing method.
确认实时全息方法是一种精确而实用的试验方法。
Finally, through the attempt and research on verification logic in the field of information security, we point that formal logic method is sure playing a main role in it.
最后想指出的是,我们通过对验证逻辑在信息安全方面的一些尝试和研究,说明了形式化逻辑方法确实可以在这个领域上发挥重要作用。
A small item in the newspaper can easily be neglected, but a short announcement on the radio, put out several times during the course of the day, is a more sure-fire method.
在报刊上登一小条消息很容易被忽略,但在收音机里将一个简短的通知在一天中反复播出,却是更可靠的方法。
It is soon evidently that the spline model method can reduce the degrees of freedom of a system and en - sure a sufficiently accurate solution.
由此明显可见,样条模型法能缩减系统的自由度数目并保证求解有足够的精度。
It is soon evidently that the spline model method can reduce the degrees of freedom of a system and en - sure a sufficiently accurate solution.
由此明显可见,样条模型法能缩减系统的自由度数目并保证求解有足够的精度。
应用推荐