Normalizes an arbitrary string for use as a section name. Currently only makes the string lower-case (provided this instance isn't case- sensitive) and trims leading and trailing white space. Note that normalization isn't enforced by the Section class. @param name the string to be used as section n
(String name)
| 570 | * @return a normalized section name |
| 571 | */ |
| 572 | private String normSection(String name) { |
| 573 | if (!this.isCaseSensitive) { |
| 574 | name = name.toLowerCase(); |
| 575 | } |
| 576 | return name.trim(); |
| 577 | } |
| 578 | |
| 579 | private static String[] toStringArray(Collection coll) { |
| 580 | Object[] objArray = coll.toArray(); |
no outgoing calls
no test coverage detected