多接口的缺点是,它招致了静态类型安全性的损失,因为接口只在运行时被选择,这使得系统更容易受到潜伏错误的伤害,即那些逃过测试的错误。
On the downside, multiple interfaces incur a loss of static type safety because interfaces are selected only at runtime, which makes the system more vulnerable to latent bugs that can escape testing.
EasyMock框架的一个主要缺点是不能模拟具体类——而只能模拟接口。
One major disadvantage of the EasyMock framework is that you can't mock concrete classes - only interfaces.
第一个缺点在于,与使用接口的API不同,抓取在内容提供者和内容消费者之间没有明确的联系。
The first is that, unlike APIs with interfaces, scraping has no specific programmatic contract between content-provider and content-consumer.
应用推荐