[tor-commits] [exonerator/master] Make a couple JavaDoc fixes.

karsten at torproject.org karsten at torproject.org
Mon Aug 27 12:37:56 UTC 2018


commit a1270a1865b9cf2e84e8bc754358a2f689b80d61
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Tue Aug 21 09:52:36 2018 +0200

    Make a couple JavaDoc fixes.
---
 .../torproject/metrics/exonerator/ExoneraTorServlet.java |  4 ++--
 .../org/torproject/metrics/exonerator/QueryResponse.java | 16 ++++++++--------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/main/java/org/torproject/metrics/exonerator/ExoneraTorServlet.java b/src/main/java/org/torproject/metrics/exonerator/ExoneraTorServlet.java
index 8786261..bd593cc 100644
--- a/src/main/java/org/torproject/metrics/exonerator/ExoneraTorServlet.java
+++ b/src/main/java/org/torproject/metrics/exonerator/ExoneraTorServlet.java
@@ -239,8 +239,8 @@ public class ExoneraTorServlet extends HttpServlet {
 
   /* Helper methods for handling the request. */
 
-  /** Parse an IP parameter and return either a non-<code>null</code> value in
-   * case the parameter was valid or empty, or <code>null</code> if it was
+  /** Parse an IP parameter and return either a non-{@code null} value in
+   * case the parameter was valid or empty, or {@code null} if it was
    * non-empty and invalid. */
   static String parseIpParameter(String passedIpParameter) {
     String relayIp = null;
diff --git a/src/main/java/org/torproject/metrics/exonerator/QueryResponse.java b/src/main/java/org/torproject/metrics/exonerator/QueryResponse.java
index 6a77565..b40b65f 100644
--- a/src/main/java/org/torproject/metrics/exonerator/QueryResponse.java
+++ b/src/main/java/org/torproject/metrics/exonerator/QueryResponse.java
@@ -37,25 +37,25 @@ public class QueryResponse {
   /** Version of this response format. */
   String version = VERSION;
 
-  /** Query IP address passed in the request; never <code>null</code>. */
+  /** Query IP address passed in the request; never {@code null}. */
   String queryAddress;
 
-  /** Query date passed in the request; never <code>null</code>. */
+  /** Query date passed in the request; never {@code null}. */
   String queryDate;
 
   /** ISO-formatted valid-after time of the first status contained in the
-   * database; only <code>null</code> if the database is empty. */
+   * database; only {@code null} if the database is empty. */
   String firstDateInDatabase;
 
   /** ISO-formatted valid-after time of the last status contained in the
-   * database; only <code>null</code> if the database is empty. */
+   * database; only {@code null} if the database is empty. */
   String lastDateInDatabase;
 
   /** Whether there is at least one relevant status in the database on or within
-   * a day of the requested date; <code>null</code> if the database is empty. */
+   * a day of the requested date; {@code null} if the database is empty. */
   Boolean relevantStatuses;
 
-  /** All matches for the given IP address and date; <code>null</code> if there
+  /** All matches for the given IP address and date; {@code null} if there
    * were no matches at all. */
   Match[] matches;
 
@@ -123,7 +123,7 @@ public class QueryResponse {
     /** Relay nickname. */
     String nickname;
 
-    /** Whether this relay permitted exiting or not; <code>null</code> if
+    /** Whether this relay permitted exiting or not; {@code null} if
      * unknown. */
     Boolean exit;
 
@@ -141,7 +141,7 @@ public class QueryResponse {
     }
   }
 
-  /** All known IP addresses in the same /24 or /48 network; <code>null</code>
+  /** All known IP addresses in the same /24 or /48 network; {@code null}
    * if there were direct matches for the given IP address. */
   String[] nearbyAddresses;
 }





More information about the tor-commits mailing list