/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#superclass() */ public ReferenceBinding superclass() { if (this.superclass == null) { // note: Object cannot be generic ReferenceBinding genericSuperclass = this.type.superclass(); if (genericSuperclass == null) return null; // e.g. interfaces this.superclass = (ReferenceBinding) Scope.substitute(this, genericSuperclass); this.typeBits |= (this.superclass.typeBits & TypeIds.InheritableBits); if ((this.typeBits & (TypeIds.BitAutoCloseable|TypeIds.BitCloseable)) != 0) // avoid the side-effects of hasTypeBit()! this.typeBits |= applyCloseableClassWhitelists(); } return this.superclass; }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#superclass() */ public ReferenceBinding superclass() { if (this.superclass == null) { // note: Object cannot be generic ReferenceBinding genericSuperclass = this.type.superclass(); if (genericSuperclass == null) return null; // e.g. interfaces this.superclass = (ReferenceBinding) Scope.substitute(this, genericSuperclass); this.typeBits |= (this.superclass.typeBits & TypeIds.InheritableBits); if ((this.typeBits & (TypeIds.BitAutoCloseable|TypeIds.BitCloseable)) != 0) // avoid the side-effects of hasTypeBit()! this.typeBits |= applyCloseableClassWhitelists(); } return this.superclass; }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#superclass() */ public ReferenceBinding superclass() { if (this.superclass == null) { // note: Object cannot be generic ReferenceBinding genericSuperclass = this.type.superclass(); if (genericSuperclass == null) return null; // e.g. interfaces this.superclass = (ReferenceBinding) Scope.substitute(this, genericSuperclass); this.typeBits |= (this.superclass.typeBits & TypeIds.InheritableBits); if ((this.typeBits & (TypeIds.BitAutoCloseable|TypeIds.BitCloseable)) != 0) // avoid the side-effects of hasTypeBit()! this.typeBits |= applyCloseableClassWhitelists(); } return this.superclass; }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#superclass() */ @Override public ReferenceBinding superclass() { if (this.superclass == null) { // note: Object cannot be generic ReferenceBinding genericSuperclass = this.type.superclass(); if (genericSuperclass == null) return null; // e.g. interfaces this.superclass = (ReferenceBinding) Scope.substitute(this, genericSuperclass); this.typeBits |= (this.superclass.typeBits & TypeIds.InheritableBits); if ((this.typeBits & (TypeIds.BitAutoCloseable|TypeIds.BitCloseable)) != 0) // avoid the side-effects of hasTypeBit()! this.typeBits |= applyCloseableClassWhitelists(); } return this.superclass; }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#superclass() */ public ReferenceBinding superclass() { if (this.superclass == null) { // note: Object cannot be generic ReferenceBinding genericSuperclass = this.type.superclass(); if (genericSuperclass == null) return null; // e.g. interfaces this.superclass = (ReferenceBinding) Scope.substitute(this, genericSuperclass); this.typeBits |= (this.superclass.typeBits & TypeIds.InheritableBits); if ((this.typeBits & (TypeIds.BitAutoCloseable|TypeIds.BitCloseable)) != 0) // avoid the side-effects of hasTypeBit()! this.typeBits |= applyCloseableClassWhitelists(); } return this.superclass; }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#superclass() */ public ReferenceBinding superclass() { if (this.superclass == null) { // note: Object cannot be generic ReferenceBinding genericSuperclass = this.type.superclass(); if (genericSuperclass == null) return null; // e.g. interfaces this.superclass = (ReferenceBinding) Scope.substitute(this, genericSuperclass); this.typeBits |= (this.superclass.typeBits & TypeIds.InheritableBits); if ((this.typeBits & (TypeIds.BitAutoCloseable|TypeIds.BitCloseable)) != 0) // avoid the side-effects of hasTypeBit()! this.typeBits |= applyCloseableClassWhitelists(); } return this.superclass; }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#superclass() */ public ReferenceBinding superclass() { if (this.superclass == null) { // note: Object cannot be generic ReferenceBinding genericSuperclass = this.type.superclass(); if (genericSuperclass == null) return null; // e.g. interfaces this.superclass = (ReferenceBinding) Scope.substitute(this, genericSuperclass); this.typeBits |= (this.superclass.typeBits & TypeIds.InheritableBits); if ((this.typeBits & (TypeIds.BitAutoCloseable|TypeIds.BitCloseable)) != 0) // avoid the side-effects of hasTypeBit()! this.typeBits |= applyCloseableClassWhitelists(); } return this.superclass; }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#superclass() */ public ReferenceBinding superclass() { if (this.superclass == null) { // note: Object cannot be generic ReferenceBinding genericSuperclass = this.type.superclass(); if (genericSuperclass == null) return null; // e.g. interfaces this.superclass = (ReferenceBinding) Scope.substitute(this, genericSuperclass); this.typeBits |= (this.superclass.typeBits & TypeIds.InheritableBits); if ((this.typeBits & (TypeIds.BitAutoCloseable|TypeIds.BitCloseable)) != 0) // avoid the side-effects of hasTypeBit()! this.typeBits |= applyCloseableClassWhitelists(); } return this.superclass; }