[tor-commits] [metrics-lib/master] Clarify that platforms can be null.

karsten at torproject.org karsten at torproject.org
Wed Mar 21 15:21:20 UTC 2012


commit 29f3e4ac2abfc09ae461cc0b8b04f63051642eb7
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Wed Mar 21 16:19:46 2012 +0100

    Clarify that platforms can be null.
---
 .../torproject/descriptor/ServerDescriptor.java    |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/org/torproject/descriptor/ServerDescriptor.java b/src/org/torproject/descriptor/ServerDescriptor.java
index 2aa9364..1fe1f21 100644
--- a/src/org/torproject/descriptor/ServerDescriptor.java
+++ b/src/org/torproject/descriptor/ServerDescriptor.java
@@ -40,7 +40,8 @@ public interface ServerDescriptor extends Descriptor {
   public int getBandwidthObserved();
 
   /* Return the platform string containing the Tor software version and
-   * the operating system. */
+   * the operating system, or null if this descriptor does not contain a
+   * platform line. */
   public String getPlatform();
 
   /* Return the time when this descriptor and the corresponding extra-info





More information about the tor-commits mailing list