Adds a comment line to the end of a section. A comment spanning several lines (ie with line breaks) will be split up, one comment line for each line. @param section the section's name @param comment the comment @throws IniParser.NoSuchSectionException no section with the given name exists
(String section, String comment)
| 411 | * @throws IniParser.NoSuchSectionException no section with the given name exists |
| 412 | */ |
| 413 | public void addComment(String section, String comment) { |
| 414 | if (hasSection(section)) { |
| 415 | getSection(section).addComment(comment); |
| 416 | } else { |
| 417 | throw new NoSuchSectionException(section); |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | /** |
| 422 | * Adds a blank line to the end of a section. |
nothing calls this directly
no test coverage detected