From 3c8d3e908b01f47c69600a235fb7e5173f4f0d7b Mon Sep 17 00:00:00 2001 From: blickly Date: Tue, 22 May 2018 18:30:09 -0700 Subject: [PATCH] Annotate return types as immutable interfaces ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=197658314 --- src/com/google/javascript/rhino/jstype/FunctionType.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/google/javascript/rhino/jstype/FunctionType.java b/src/com/google/javascript/rhino/jstype/FunctionType.java index d9313789e06..64890f10697 100644 --- a/src/com/google/javascript/rhino/jstype/FunctionType.java +++ b/src/com/google/javascript/rhino/jstype/FunctionType.java @@ -577,7 +577,7 @@ public final Collection getAncestorInterfaces() { } /** Returns interfaces implemented directly by a class or its superclass. */ - public final Iterable getImplementedInterfaces() { + public final ImmutableList getImplementedInterfaces() { FunctionType superCtor = isConstructor() ? getSuperClassConstructor() : null; if (superCtor == null) { return implementedInterfaces; @@ -592,7 +592,7 @@ public final Iterable getImplementedInterfaces() { } /** Returns interfaces directly implemented by the class. */ - public final Iterable getOwnImplementedInterfaces() { + public final ImmutableList getOwnImplementedInterfaces() { return implementedInterfaces; } @@ -610,7 +610,7 @@ public final void setImplementedInterfaces(List implementedInterface } /** Returns interfaces directly extended by an interface */ - public final Iterable getExtendedInterfaces() { + public final ImmutableList getExtendedInterfaces() { return extendedInterfaces; }