diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-20 14:53:04 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-25 22:06:12 +0200 |
commit | ac3794bf01a9cd30d7cd0642cae8c530536edbd6 (patch) | |
tree | 4a94e3f7f5dc86c256fe0f97127b6fd9dc1f0458 /org.eclipse.jgit.lfs.server | |
parent | 049782743e78c81b0d8a1a8b566d56edbc83c6e6 (diff) | |
download | jgit-ac3794bf01a9cd30d7cd0642cae8c530536edbd6.tar.gz jgit-ac3794bf01a9cd30d7cd0642cae8c530536edbd6.zip |
[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
Diffstat (limited to 'org.eclipse.jgit.lfs.server')
-rw-r--r-- | org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/Response.java | 2 | ||||
-rw-r--r-- | org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/internal/LfsGson.java | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/Response.java b/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/Response.java index d0b6d12ea2..1605a786a5 100644 --- a/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/Response.java +++ b/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/Response.java @@ -27,6 +27,8 @@ public interface Response { 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 */ class Error { public int code; diff --git a/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/internal/LfsGson.java b/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/internal/LfsGson.java index b569416e89..c7e45043de 100644 --- a/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/internal/LfsGson.java +++ b/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/internal/LfsGson.java @@ -30,6 +30,8 @@ public class LfsGson { /** * Wrapper class only used for serialization of error messages. */ + // TODO(ms): rename this class in next major release + @SuppressWarnings("JavaLangClash") static class Error { String message; |