Wesley Wolfe
5c32e54226
Making MemorySection much more efficient; Addresses BUKKIT-1454
2012-04-30 16:54:00 -05:00
feildmaster
3fb02d56b3
Fix createSection getting sections from itself. Fixes BUKKIT-1513
2012-04-14 00:59:22 -05:00
Kevin
a3038f4615
Fixed null pointer exception in config.getMapList().
2012-02-29 13:26:26 -05:00
Wesley Wolfe
ca7aab6f4f
[Bleeding] Cleaned up unsafe casts. Addresses BUKKIT-844
...
Removed internal collection leaks from PluginDescriptionFile
BREAKING: PluginDescriptionFile.getAuthors() now returns List instead of
ArrayList
Various places with unsafe generics, notably List<Object> getList() in
Configurations are now referenced as <?>. This is nonbreaking, but
sourcecode will need to be revised when compiled.
2012-02-29 10:23:16 -05:00
Erik Broes
88c17a7f86
Generic cleaning
2012-01-15 14:37:43 +01:00
Nathan Adams
ea3e91b416
Configurations now properly support lists of serializable objects, and ItemStack is properly serializable. Big thanks to GICodeWarrior for the PR. This fixes BUKKIT-425
2012-01-15 11:15:58 +00:00
Nathan Adams
9e3ce5cd24
Config .get*List will return an empty list of the appropriate type instead of null when the value does not exist. Thanks to krinsdeath for the PR.
2012-01-15 09:04:08 +00:00
Erik Broes
c5063fa024
Minor text changes
2012-01-04 09:09:25 +01:00
Erik Broes
b9fca3c04d
Generic cleanup of warnings, whitespace and style.
2011-12-25 16:02:30 +01:00
sleak
189768185c
Fix for BUKKIT-313 - this makes getString return a string representation of whatever object is present at the path, rather than only returning if the object is a string
2011-12-19 16:13:07 +00:00
sleak
28372908d7
fix for BUKKIT-342 - getConfigurationSection returning the default section instead of creating a new section if defaults are present.
2011-12-19 16:13:07 +00:00
Nathan Adams
03fa22001b
Configuration methods .getX (int/double/etc) now try to cast existing values where possible. This fixes BUKKIT-290
2011-12-12 18:34:26 +00:00
Nathan Adams
397d0f284a
Fixed MemorySection list methods' return types + NPEs. This fixes BUKKIT-213, thanks to Sleaker
2011-12-09 15:50:20 +00:00
Feildmaster
c00f47e0e2
Added createSection(String path, Map<String, object> map)
2011-11-05 20:33:28 +00:00
Nathan Adams
e33fce94b5
Added helper methods such as getStringList to ConfigurationSection
2011-10-26 09:47:51 +01:00
Nathan Adams
8deb57b54a
Fixed deeply nested configuration sections retrieving values
2011-10-11 13:26:41 +01:00
Nathan Adams
252fc76816
Fixed removing entries in the new Configuration (via set(x, null))
2011-10-11 12:16:43 +01:00
Nathan Adams
4485364e17
Small javadoc cleanup
2011-10-10 21:58:44 +01:00
Dinnerbone
ee27cc07f0
Added new Configuration classes
2011-10-10 21:06:34 +01:00