The reason for this is that during execution, a thread can pop any number of references from its stack — references that could have been stored elsewhere during execution.
这样做的原因在于,执行期间线程可以从其栈中弹出任意数量的引用——执行过程中可能存储在其他位置的引用。
It doesn't make sense to have a stack that pushes but doesn't pop, so you test the methods together as part of the contract the stack exposes to its client.
拥有可以推动但不能弹出的堆栈没有任何意义,因此,您可以将这些方法作为堆栈暴露给其客户机的契约的一部分进行测试。
Pop the stack and draw a green rectangle to remove the previous translation and scaling.
从堆栈中取出坐标,绘制一个绿色矩形,以便删除之前的转换和缩放。
应用推荐