From 84ced89dc3d3163535cb170f4a6da49b60a51c3f Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sat, 16 Sep 2023 22:14:49 +0200 Subject: [errorprone] Add missing javadoc summary see https://google.github.io/styleguide/javaguide.html#s7.2-summary-fragment Change-Id: Iaf4a6b55d4e4c59b7a2da3451164abb1bb47d4a1 --- .../transport/http/NetscapeCookieFileCache.java | 4 ++++ .../jgit/internal/transport/parser/FirstCommand.java | 12 ++++++++++-- .../jgit/internal/transport/parser/FirstWant.java | 20 +++++++++++++++++--- 3 files changed, 31 insertions(+), 5 deletions(-) (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/internal/transport') diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/http/NetscapeCookieFileCache.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/http/NetscapeCookieFileCache.java index 69a8273158..930bcea75b 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/http/NetscapeCookieFileCache.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/http/NetscapeCookieFileCache.java @@ -39,6 +39,8 @@ public class NetscapeCookieFileCache { } /** + * Get singleton instance + * * @param config * the config which defines the limit for this cache * @return the singleton instance of the cookie file cache. If the cache has @@ -54,6 +56,8 @@ public class NetscapeCookieFileCache { } /** + * Get a cache entry + * * @param path * the path of the cookie file to retrieve * @return the cache entry belonging to the requested file diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/parser/FirstCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/parser/FirstCommand.java index c75cf5d618..a196fbe418 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/parser/FirstCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/parser/FirstCommand.java @@ -69,13 +69,21 @@ public final class FirstCommand { this.capabilities = capabilities; } - /** @return non-capabilities part of the line. */ + /** + * Get line + * + * @return non-capabilities part of the line. + */ @NonNull public String getLine() { return line; } - /** @return capabilities parsed from the line, as an immutable map. */ + /** + * Get capabilities + * + * @return capabilities parsed from the line, as an immutable map. + */ @NonNull public Map getCapabilities() { return capabilities; diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/parser/FirstWant.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/parser/FirstWant.java index 30d629665f..e214cdae8b 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/parser/FirstWant.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/parser/FirstWant.java @@ -102,12 +102,18 @@ public class FirstWant { this.clientSID = clientSID; } - /** @return non-capabilities part of the line. */ + /** + * Get line + * + * @return non-capabilities part of the line. + */ public String getLine() { return line; } /** + * Get capabilities + * * @return capabilities parsed from the line as an immutable set (excluding * agent and session-id). */ @@ -115,13 +121,21 @@ public class FirstWant { return capabilities; } - /** @return client user agent parsed from the line. */ + /** + * Get agent + * + * @return client user agent parsed from the line. + */ @Nullable public String getAgent() { return agent; } - /** @return client session-id parsed from the line. */ + /** + * Get client session-id + * + * @return client session-id parsed from the line. + */ @Nullable public String getClientSID() { return clientSID; -- cgit v1.2.3