Hide "bootstrap class path not set in conjunction with -source" messages

am: ae96e5376a

Change-Id: Ieae801948a4ddf70d10ba5f1f9fd75ca3248938a
This commit is contained in:
Colin Cross 2017-10-18 07:22:52 +00:00 committed by android-build-merger
commit 86e6a0fdc0
2 changed files with 4 additions and 2 deletions

View file

@ -170,4 +170,5 @@ var filters = []*regexp.Regexp{
regexp.MustCompile(`Note: Recompile with -Xlint:deprecation for details.`),
regexp.MustCompile(`Note: (Some input files|.*\.java) uses? unchecked or unsafe operations.`),
regexp.MustCompile(`Note: Recompile with -Xlint:unchecked for details.`),
regexp.MustCompile(`bootstrap class path not set in conjunction with -source`),
}

View file

@ -41,8 +41,8 @@ var testCases = []struct {
out: "\x1b[1mFile.java:398: \x1b[35mwarning:\x1b[0m\x1b[1m [RectIntersectReturnValueIgnored] Return value of com.blah.function() must be checked\x1b[0m\n",
},
{
in: "warning: [options] bootstrap class path not set in conjunction with -source 1.7\n",
out: "\x1b[1m\x1b[35mwarning:\x1b[0m\x1b[1m [options] bootstrap class path not set in conjunction with -source 1.7\x1b[0m\n",
in: "warning: [options] blah\n",
out: "\x1b[1m\x1b[35mwarning:\x1b[0m\x1b[1m [options] blah\x1b[0m\n",
},
{
in: " (see http://go/errorprone/bugpattern/RectIntersectReturnValueIgnored.md)\n",
@ -56,6 +56,7 @@ Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: dir/file.java uses or overrides a deprecated API.
Note: dir/file.java uses unchecked or unsafe operations.
warning: [options] bootstrap class path not set in conjunction with -source 1.7
`,
out: "\n",
},