Skip to content

Commit

Permalink
Mark a few return types with their immutable interface
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=182133156
  • Loading branch information
blickly authored and dimvar committed Jan 17, 2018
1 parent 6b8b7b7 commit 026f845
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/com/google/javascript/refactoring/SuggestedFix.java
Expand Up @@ -39,7 +39,6 @@
import com.google.javascript.rhino.Token;
import com.google.javascript.rhino.jstype.JSType;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
Expand Down Expand Up @@ -100,12 +99,12 @@ public SetMultimap<String, CodeReplacement> getReplacements() {
}

/** Get all possible fixes for this problem, including this fix. */
public List<SuggestedFix> getAlternatives() {
public ImmutableList<SuggestedFix> getAlternatives() {
return alternatives;
}

/** Get all alternative fixes, excluding this fix. */
public List<SuggestedFix> getNonDefaultAlternatives() {
public ImmutableList<SuggestedFix> getNonDefaultAlternatives() {
return alternatives.subList(1, alternatives.size());
}

Expand Down

0 comments on commit 026f845

Please sign in to comment.