Make URIParser code more readable - Part 2 83/135683/1
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Tue, 8 Aug 2023 07:11:17 +0000 (07:11 +0000)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Tue, 8 Aug 2023 07:11:17 +0000 (07:11 +0000)
commit1c1f0dc110177a190c67e3a8b924542ce4d75ff8
tree16621991455fe474d657851ded25e73e16a67f8b
parent31f3d128576a7d2a4be206b6f8ba705e4939b98a
Make URIParser code more readable - Part 2

- declare variables closer to where they are used
- move more validation into the validatePath method
- increment the global index variable i in fewer places

Issue-ID: AAI-3656
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: I64380b84370a362113bf64c4edff3d389ffb290e
aai-core/src/main/java/org/onap/aai/parsers/uri/URIParser.java
aai-core/src/test/java/org/onap/aai/prevalidation/ValidationServiceTest.java