swh:1:snp:764524290233376de64947417267228741ce2485
Revision 58a3fdf837f1947253f70d00089a9e6f49eefecb authored by Arunachalam Thirupathi on 01 June 2016, 06:14:16 UTC, committed by Arunachalam Thirupathi on 01 June 2016, 06:14:16 UTC
Properties(properties) constructor has a different behavior than the one
intended.

http://stackoverflow.com/questions/2004833/how-to-merge-two-java-util-properties-objects

>>> copy/pasted text <<<

However, if you treat it like a Map, you need to be very careful with
this:

new Properties(defaultProperties);
This often catches people out, because it looks like a copy constructor,
but it isn't. If you use that constructor, and then call something like
keySet() (inherited from its Hashtable superclass), you'll get an empty
set, because the Map methods of Properties do not take account of the
default Properties object that you passed into the constructor. The
defaults are only recognised if you use the methods defined in
Properties itself, such as getProperty and propertyNames, among others.
1 parent 5919e0d
History
Tip revision: 99127eab3078eed90faa66cc671259a85cb89464 authored by Felix GV on 24 July 2023, 13:49:47 UTC
Update README.md
Tip revision: 99127ea
File Mode Size
.settings
bin
clients
config
contrib
docs
example
gradle
src
test
voldemort-contrib
voldemort-protobuf
.gitignore -rw-r--r-- 242 bytes
CONTRIBUTORS -rw-r--r-- 659 bytes
LICENSE -rw-r--r-- 11.1 KB
NOTES -rw-r--r-- 2.5 KB
NOTICE -rw-r--r-- 8.1 KB
README.md -rw-r--r-- 4.7 KB
build.gradle -rw-r--r-- 21.9 KB
build.xml -rw-r--r-- 1.7 KB
gradle.properties -rw-r--r-- 1.1 KB
gradlew -rwxr-xr-x 4.9 KB
gradlew.bat -rw-r--r-- 2.3 KB
release_notes.txt -rw-r--r-- 50.4 KB
settings.gradle -rw-r--r-- 579 bytes
tomcat-tasks.properties -rw-r--r-- 420 bytes
web.xml -rw-r--r-- 1.1 KB

README.md

back to top