[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-lib/master] Make DescriptorParserImpl.parseDescriptor easily accessible for testing.



commit 5954b344628d628bab62e54f95fbd62ee3910f66
Author: iwakeh <iwakeh@xxxxxxxxxxxxxx>
Date:   Fri Jun 16 12:55:34 2017 +0000

    Make DescriptorParserImpl.parseDescriptor easily accessible for testing.
---
 src/main/java/org/torproject/descriptor/impl/DescriptorParserImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/torproject/descriptor/impl/DescriptorParserImpl.java b/src/main/java/org/torproject/descriptor/impl/DescriptorParserImpl.java
index ad0d512..e416d93 100644
--- a/src/main/java/org/torproject/descriptor/impl/DescriptorParserImpl.java
+++ b/src/main/java/org/torproject/descriptor/impl/DescriptorParserImpl.java
@@ -188,7 +188,7 @@ public class DescriptorParserImpl implements DescriptorParser {
     return parsedDescriptors;
   }
 
-  private static Descriptor parseDescriptor(byte[] rawDescriptorBytes,
+  static Descriptor parseDescriptor(byte[] rawDescriptorBytes,
       int[] offsetAndLength, Constructor<? extends DescriptorImpl> constructor,
       boolean failUnrecognizedDescriptorLines)
       throws DescriptorParseException {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits