Sets the value of an option in a section, if the option exist, otherwise adds the option to the section. Trims white space from the start and the end of the value and deletes newline characters it might contain. @param section the section's name @param option the option's name @param value the o
(String section, String option, String value)
| 280 | * @throws NullPointerException section or option are <code>null</code> |
| 281 | */ |
| 282 | public void set(String section, String option, String value) { |
| 283 | if (hasSection(section)) { |
| 284 | getSection(section).set(option, value); |
| 285 | } else { |
| 286 | throw new NoSuchSectionException(section); |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | /** |
| 291 | * Removes an option from a section if it exists. Will not remove options |
no test coverage detected