ticket:10128: fix a problem with bracket pairing.

git-svn-id: http://source.icu-project.org/repos/icu/icu4j/branches/mati@34073 251d0590-4201-4cf1-90de-194747b24ca1