This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
* @since 1.8
*/
public java.util.Collection allItems () {
return java.util.Collections.EMPTY_LIST;
return java.util.Collections.EMPTY_SET;
}
* @return collection of all instances
public java.util.Collection allInstances () {
};
Collection newPairs = delegate.allItems ();
// See #34961 for explanation.
if (!(oldPairs instanceof List)) {
if (oldPairs == Collections.EMPTY_SET) {
// avoid allocation
oldPairs = Collections.EMPTY_LIST;
} else {
oldPairs = new ArrayList(oldPairs);
if (!(newPairs instanceof List)) {
newPairs = new ArrayList(newPairs);
return !oldPairs.equals (newPairs);