885 return false; |
885 return false; |
886 } |
886 } |
887 |
887 |
888 private List<JCTree> addOverrideBridgesIfNeeded(DiagnosticPosition pos, |
888 private List<JCTree> addOverrideBridgesIfNeeded(DiagnosticPosition pos, |
889 final ClassSymbol c) { |
889 final ClassSymbol c) { |
890 ListBuffer<JCTree> buf = ListBuffer.lb(); |
890 ListBuffer<JCTree> buf = new ListBuffer<>(); |
891 if (c.isInterface() || !boundsRestricted(c)) |
891 if (c.isInterface() || !boundsRestricted(c)) |
892 return buf.toList(); |
892 return buf.toList(); |
893 Type t = types.supertype(c.type); |
893 Type t = types.supertype(c.type); |
894 Scope s = t.tsym.members(); |
894 Scope s = t.tsym.members(); |
895 if (s.elems != null) { |
895 if (s.elems != null) { |