这个检测器寻找在构造函数中初始化之前被读取的字段。
This detector finds fields that are read in constructors before they're initialized.
其构造函数含有两个参数:初始化属性和预配置的记录器(logger)实例。
Its constructor takes two arguments: initialization properties and a pre-configured logger instance. Properties object contains the following.
提供描述构造函数的gbeaninfo静态初始化器。
Provide a GBeanInfo static initializer that describes the constructor.
此类在其构造函数中初始化DWR提供的org.directwebremoting.WebContext类的实例,然后向StockQuoteGenerator's侦听器列表注册自身。
This class in its constructor initializes an instance of the org.directwebremoting.WebContext class provided by DWR, and then registers itself with StockQuoteGenerator's list of listeners.
初始化器在基类构造函数执行前被执行,它们被执行的顺序就是在类里被声明的顺序。
Initializers execute before the base class constructor for your type executes, and they are executed in the order the variables are declared in your class.
和实例初始化一样,可以使用初始化器语法作为静态构造函数的变体。
As with instance initialization, you can use the initializer syntax as an alternative to the static constructor.
如果类有一个构造器,那么这个类的每个对象都应该在程序使用前先初始化构造函数。
If a class has a constructor, each object of that type is initialized with the constructor prior to use in a program.
在忽略哪个构造函数被调用的情况下,为了保证类型内部的成员变量都能被初始化,使用变量初始化器是最简单的方法。
Variable initializers are the simplest way to ensure that the member variables in your type are initialized regardless of which constructor is called.
静态初始化器和静态构造函数提供了最洁净的、最间接的方式来初始化类的静态成员。
Static initializers and static constructors provide the cleanest, clearest way to initialize static members of your class.
一个构造器是一个函数,你可以调用它实例化和初始化一个特殊的对象类型。
A constructor is a function you call to instantiate and initialize a particular type of object. You invoke a constructor with the new keyword. Here are a few examples of using constructors.
如果要从代码初始化xml树,使用函数构造比分析文本所占用的处理器时间更少。
If you are initializing an XML tree from code, it takes less processor time to use functional construction than to parse text.
编译器进程的第一个访问默认实例的构造函数,然后通过处理成员初始化对象初始值设定项。
The compiler processes object initializers by first accessing the default instance constructor, and then by processing the member initializations.
编译器进程的第一个访问默认实例的构造函数,然后通过处理成员初始化对象初始值设定项。
The compiler processes object initializers by first accessing the default instance constructor, and then by processing the member initializations.
应用推荐