As the java has evolved from the old java without generic to java with advanced generic containers. You will see the following code will be flagged as an error by the Java compiler.
List children = config_.getElements(name);
you will probably see the following error when you run some recent version of compilers. Here is the error message.
There are serveral ways that you can get pass it. first and the simplest way is to use the Generic types List<T>, here is the code
List<YourType> synchronizedpubliesdList = Collections.synchronizedList(publiesdList);
But this is based on the assumption that you know the type in advance, but you may not know the type in advance, you will need to do the following.
List<?> synchronizedpubliesdList = Collections.synchronizedList(publiesdList);
And you can even suppress the warnings by the folowing.
@SuppressWarnings("rawtypes") List synchronizedpubliesdList = Collections.synchronizedList(publiesdList);
So my case, I simple do the folllowing.
List<?> children = config_.getElements(name);