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

Method remove

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

Removes an option from a section if it exists. Will not remove options from the common section if it's not directly addressed. @param section the section's name @param option the option's name @return true if the option was actually removed @throws IniParser.NoSuchSectionException no

(String section, String option)

Source from the content-addressed store, hash-verified

297 * @throws IniParser.NoSuchSectionException no section with the given name exists
298 */
299 public boolean remove(String section, String option) {
300 if (hasSection(section)) {
301 return getSection(section).remove(option);
302 } else {
303 throw new NoSuchSectionException(section);
304 }
305 }
306
307 /**
308 * Checks whether an option exists in a given section. Options in the

Callers 7

removeDocIdsMethod · 0.45
clearIndexMethod · 0.45
reduceMethod · 0.45
runAsDiskCacheMethod · 0.45
removeSectionMethod · 0.45
sectionNamesMethod · 0.45
removeMethod · 0.45

Calls 2

hasSectionMethod · 0.95
getSectionMethod · 0.95

Tested by

no test coverage detected