Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8141636

Javadoc search should support camelCase search

XMLWordPrintable

    • b141
    • Verified

      Under camelcase search, "CoHM" (or CHM or CHas or ConHasMa etc) will match a camelcase identifier like ConcurrentHashMap. This is supported by popular IDEs and is extremely effective in searching Java APIs. If you are looking for a class/method like synchronizedList and being able to type "syL" gets you there much faster than having to type all of "synchronized" before you can differentiate between synchronize{List,Map,Set}.

      Its seems fairly straightforward to implement; if you have a camelcase string XabcYdef, break it up at case boundaries, and convert into

          Xabc[lowercase]*Ydef[lowercase]*

      and use that as your search regex instead of what the user entered.

            bpatel Bhavesh Patel (Inactive)
            briangoetz Brian Goetz
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: