Changes between Initial Version and Version 1 of Ticket #2575, comment 5


Ignore:
Timestamp:
Aug 4, 2019 1:40:18 AM (11 months ago)
Author:
Reportage
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2575, comment 5

    initial v1  
    11Workaround:
    22{{{
    3 @@ -173,17 +173,18 @@ public class DocumentFieldParserImpl imp
     3@@ public class DocumentFieldParserImpl imp
    44 
    5         private  void verifyExpectedArgumentCount(String keyword, int expectedMin, int expectedMax) {
    6                 final int argumentCount = argumentsRemaining();
    7 -               if(expectedMin != -1 && argumentCount < expectedMin)
    8 -                       throw new TorParsingException("Not enough arguments for keyword '"+ keyword +"' expected "+ expectedMin +" and got "+ argumentCount);
    9 +               if (expectedMin != -1 && argumentCount < expectedMin)
    10 +                       throw new TorParsingException("Not enough arguments for keyword '" + keyword + "'; expected " + expectedMin + " and got " + argumentCount);
    11  
    12 -               if(expectedMax != -1 && argumentCount > expectedMax)
    13 +               if (expectedMax != -1 && argumentCount > expectedMax)
    145                        // Is this the correct thing to do, or should just be a warning?
    156-                       throw new TorParsingException("Too many arguments for keyword '"+ keyword +"' expected "+ expectedMax +" and got "+ argumentCount);