JCF2: formatting by BrunoK

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@46066 4005530d-fff6-0310-9dd1-cebe43e6787f
JCF: minor optimization and cleanup for the parser. Issue #26610, modified from patch by BrunoK

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@46067 4005530d-fff6-0310-9dd1-cebe43e6787f