[errorprone] Suppress JavaLangClash to avoid breaking change

Renaming this class is a breaking change. Add a todo to rename it in
next major release.

See https://errorprone.info/bugpattern/JavaLangClash

Change-Id: I3528fd654e30d98f4ea43e71107d83324942141c
This commit is contained in:
Matthias Sohn 2023-09-20 14:53:04 +02:00
parent 049782743e
commit ac3794bf01
4 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,8 @@ class Action {
public Map<String, String> header; public Map<String, String> header;
} }
// TODO(ms): rename this class in next major release
@SuppressWarnings("JavaLangClash")
/** Describes an error to be returned by the LFS batch API */ /** Describes an error to be returned by the LFS batch API */
class Error { class Error {
public int code; public int code;

View File

@ -30,6 +30,8 @@ public class LfsGson {
/** /**
* Wrapper class only used for serialization of error messages. * Wrapper class only used for serialization of error messages.
*/ */
// TODO(ms): rename this class in next major release
@SuppressWarnings("JavaLangClash")
static class Error { static class Error {
String message; String message;

View File

@ -87,6 +87,8 @@ class ExpiringAction extends Action {
} }
/** Describes an error to be returned by the LFS batch API */ /** Describes an error to be returned by the LFS batch API */
// TODO(ms): rename this class in next major release
@SuppressWarnings("JavaLangClash")
class Error { class Error {
public int code; public int code;

View File

@ -162,6 +162,8 @@ public static class Result {
* *
* @since 6.6 * @since 6.6
*/ */
// TODO(ms): rename this class in next major release
@SuppressWarnings("JavaLangClash")
public static class Error { public static class Error {
private String msg; private String msg;