package com.google.api.generator.engine.lexicon;

import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableList;

public class Keyword {
  @VisibleForTesting
  static final ImmutableList<String> KEYWORDS =
      ImmutableList.of(
          "abstract",
          "continue",
          "for",
          "new",
          "switch",
          "assert",
          "default",
          "if",
          "package",
          "synchronized",
          "boolean",
          "do",
          "goto",
          "private",
          "this",
          "break",
          "double",
          "implements",
          "protected",
          "throw",
          "byte",
          "else",
          "import",
          "public",
          "throws",
          "case",
          "enum",
          "instanceof",
          "return",
          "transient",
          "catch",
          "extends",
          "int",
          "short",
          "try",
          "char",
          "final",
          "interface",
          "static",
          "void",
          "class",
          "finally",
          "long",
          "strictfp",
          "volatile",
          "const",
          "float",
          "native",
          "super",
          "while");

  public static boolean isKeyword(String s) {
    return KEYWORDS.contains(s);
  }
}

@@ -47,64 +47,8 @@
 n;%0A%0A
-import com.google.common.annotations.VisibleForTesting;%0A
 impo
@@ -121,28 +121,15 @@
 %7B%0A  
-@VisibleForTesting%0A 
+private
  sta

remove VisibleForTesting from Keyword