intruxxer / zaproxy

Automatically exported from code.google.com/p/zaproxy
0 stars 0 forks source link

OData Support - Code improvements #578

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Improve the code handling OData according to the review done by thc202.

- Consider to create a helper class that contains the OData patterns used (or, 
even better, helper parser methods), so those patterns don't need to be 
duplicated in several classes.

- Better use of the matchers 
Example for VariantODataFilterQuery.java    
         - On the lines 89 and 90, consider to replace the calculation of the "begin" and "end" with calls to the methods Matcher.start(int) ("matcher.start(1)") and Matcher.end(int) ("matcher.end(1)") respectively;
    - On the lines 106 and 107, consider to replace the calculation of the "begin" and "end" with calls to the methods Matcher.start() ("matcherParameters.start()") and Matcher.end() ("matcherParameters.end()") respectively;

Original issue reported on code.google.com by patrick....@gmail.com on 27 Mar 2013 at 5:10