> On Apr 4, 2018, at 4:18 AM, Emmanuel Lécharny <[email protected]> wrote:
>
> One more thing :
>
> if ( props.size() > 0 )
>
> should be
>
> if ( !props.isEmpty() )
That won’t work, props is not java.util.Properties, it’s:
public class Props extends FortEntity implements Serializable
{
/** Default serialVersionUID */
private static final long serialVersionUID = 1L;
private List<Props.Entry> entry;
Sort of a container class to carry properties as a list of name/values when
it’s time to serialize via jaxb. The rationale for converting escapes me atm,
other than it (serialization) didn’t work with attribute type of
java.util.Properties.
Might be worth a revisit, to clean this up, i.e. use the java.util version and
not this other one. We’d be able to also remove the redundant code Yudhi
mentioned, i.e. using the delete key.
Shawn