In every example thus far we've had a semicolon saying that's our initialization.
在每个例子中,有我们有一个分号来指明,那是我们的初始化。
Our filter doesn't actually need to do this, as no initialization info is being used, but it is here for demonstration purposes.
我们的过滤器实际上并不需要这样做,因为其中没有使用初始化信息,这里只是出于演示的目的。
However, now we can just pass a Boolean false to the constructor during our tests to avoid calling the init method and all the unneeded initialization logic.
然而,现在我们在测试过程中只能够传递一个布尔值false给构造函数,以避免调用init方法和所有不必要的初始化逻辑。
In every example thus far we've had a semicolon saying that's our initialization.
在每个例子中,有我们有一个分号来指明,那是我们的初始化。
应用推荐