This failure says that I haven't tested the code using a zero-length array. That's easy enough to fix, so I can just add a quick test and move on to the next failure, shown in Listing 4.
这个失败说,我没有用长度为零的数组测试该代码。
The code listings below show how to define a model using EMF.
下面的代码清单说明了如何使用EMF定义模型。
Debugging a problem involves locating the source of the problem using a debugger (or any other tool) and using the source code to track the root cause of the problem.
调试一个问题涉及到:使用调试器(或任何其它工具)找到问题的根源以及使用源代码来跟踪导致问题的根源。
Listing 3 shows the code for using such a library.
清单3展示了使用这样一个库的代码示例。
Using DI, the container can inject the code for a particular persistence framework using container configuration.
使用DI,容器可以利用容器的配置来注入特定持久性框架的代码。
The code in a client program using EJB 3 is even simpler.
使用EJB3的客户端程序中的代码甚至更简单。
A character can be represented using one or more of the code units of a respective encoding.
可以使用一个或多个各自编码的代码单元来表示字符。
Using sample code, I'lll illustrate the two approaches using a simple scenario that deals with customer and order information.
我将使用一个简单的场景演示这两种方式,这个场景要处理客户和订单信息。
This is done either by instrumenting the code, using a debugger, or instrumenting the execution environment.
这可以通过操作代码、使用调试器,或操作执行环境来完成。
The following code sample shows a C++ program written using the XMS API.
以下代码示例显示了一个使用XMSAPI编写的 C++程序。
Created a telecom application and wrote the code using snippets.
创建电信应用程序并使用代码片段写入代码。
The message digest (also called the message authentication code) is computed using a hash function.
消息摘要(又称消息认证代码)是用散列函数计算的。
The plugin.xml code in Listing 5 adds a Privacy TAB using the extension point as shown in Figure 8.
清单5中的plugin . xml代码使用图8所示的扩展点添加一个Privacy选项卡。
After it finds the appropriate value, the code triggers a change event using the widget handlers for the TwoWayForm widget instance.
找到适当的值之后,代码使用TwoWayForm小部件实例的小部件句柄触发一个更改事件。
Here is the client code for a call using the invocation pattern for deferred response.
下面是在使用延迟响应的调用模式时调用的客户端代码。
If you were to execute the code above using a Web browser, you'd see something like Figure 3.
如果使用Web浏览器执行以上代码,可以看到图3所示的结果。
The following code snippets show the differences when using a Statement and a PreparedStatement.
下面的代码片段显示使用Statement与使用PreparedStatement的不同之处。
If any code USES a PersonProvider, the code restrains from using the implementation classes directly.
如果任何代码使用PersonProvider,代码都禁止直接使用实现类。
To test the code, open a web browser and access the driver.php page using various URL parameters.
要测试代码,打开一个web浏览器并使用各种URL参数访问driver . php页。
The techniques included code portability using a standard API (ODBC), and graphing results for Web publication using JpGraph.
这些技术包括使用标准API (odbc)提高代码可移植性,以及使用JpGraph绘制结果并将其在Web上发布。
One of the advantages of using code blocks over a similar mechanism like anonymous inner classes lies in its conciseness.
在类似匿名内部类的机制中使用代码块的一个优势是其简洁性。
It's not much of a problem to analyze and evaluate the code spread across a few small programs; any programmer familiar with the code can do this using a comfortable text editor.
分析和评估分布在少量小程序中的代码没有什么问题,任何熟悉代码的人都可以使用简单的文本编辑器进行此工作。
To see how it can happen, try to put the runtime into a deadlocked state using the sinister code in Figure 6 .
要了解它是如何发生的,请尝试使用图6中不好的代码将运行库置于死锁状态。
With their colorful bacterial colonies in hand, the researchers then created a code using pairs of different colored bacteria.
拥有了这些颜色丰富的细菌群落,研究人员使用成对的不同颜色的细菌来进行编码。
In the case of the code I've been using for this article, there's a major error in the interaction between the two loops in the constructor.
对于我在本文中用到的代码,构造函数中两个循环之间的相互作用中存在一个重大错误。
Using a test generator breaks this concept because the generator writes the test using the production code as input. The generated test is not a human restatement, it is an automatic translation.
使用测试生成器破坏了这个原则,因为生成器是以产品代码作为输入来生成测试的,而且因为它是全自动转换的,所以其生成的测试代码也不便于阅读。
When code is decompiled (using a tool like JAD), the resulting source code is owned by whoever ran the decompilation tool.
当反编译代码时(比如使用JAD工具),生成的源代码属于运行反编译工具的人。
Let us take a sample code to see the issues faced using lazy loading and a solution to overcome it.
通过下面的示例代码来了解一下延迟加载所面对的问题及解决办法。
Running the same code using the JSON format yields a much more compact statement
使用JSON格式运行相同的代码将得到精简得多的语句
After saving all the code and running the application — using the a "CG argument only this time — you should see output similar to that shown in Listing 15."
保存所有代码并运行应用程序之后(这次使用—cg参数),应该看到与清单15中所示类似的输出。
应用推荐