我想知道,在 Java(通过Javadoc或默示公约)是否有任何公约表明,在几个情况下,某个相同的类别可以重复使用?
I am asking that because in the SWT layout context I don t know if I am allowed to reuse the same GridLayout
object for several Composite
objects. I guess the answer is Yes after checking the source code (I can t see any state fields) but the Javadoc doesn t explicitly state it. Maybe the implicit convention is that "sharing" is allowed if not explicitly forbidden ?