MCPcopy Create free account
hub / github.com/Qihoo360/poseidon / addComment

Method addComment

builder/index/src/main/java/util/IniParser.java:413–419  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

hasSectionMethod · 0.95
getSectionMethod · 0.95

Tested by

no test coverage detected