-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove assumption that strings are always intern
The pre-existing code assumed that string (qName) passed in to start and end element was always interned and compared those strings to constants using ==. Instead rewrite code using switch statements on the strings. Also includes small change to the exception handling so that code analysis can correctly where exceptions are always thrown. i.e. instead of hiding a throw in an always throwing method, return the exception and throw it at the call site.
- Loading branch information
1 parent
1e04efa
commit 9f342cc
Showing
1 changed file
with
63 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters