Remove obsolete assertion
The referenced javac bug has been fixed:
@@ -29,10 +29,6 @@ public class OptionsTest extends TestCase {
public void testRemoveUnsupportedOptions_depAnn() {
final String lintOption = "-Xlint:-dep-ann";
- // Ensure that the -Xlint:-dep-ann option does not clobber later arguments since JavacTool
- // **erroneously** believes the option to take an additional argument.
- assertThat(JavacTool.create().isSupportedOption(lintOption)).isEqualTo(1);
-
List<String> rawArgs = Lists.newArrayList(lintOption, "--class-path", "some/class/path");
assertThat(JavacOptionsUtils.removeUnsupportedOptions(rawArgs))
.containsExactly("--class-path", "some/class/path")
