mdarifmustafa / vt-middleware

Automatically exported from code.google.com/p/vt-middleware
0 stars 0 forks source link

vt-password: Inconsistent data in CharacterCharacteristicsRule ? #105

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In this class, we have two fields:

private List<CharacterRule> rules=new ArrayList<CharacterRule>();

private int numCharacteristics = 1;

the number of characteristics is enforced to 1 (minimum), but the number of 
rules in the list does not seem to be enforced. It seems that having a number 
of characteristics minimum at 1 and a list possibly void is not logical.

Regards.

Original issue reported on code.google.com by damien.c...@gmail.com on 25 Feb 2011 at 9:29

GoogleCodeExporter commented 8 years ago

Original comment by dfis...@gmail.com on 18 Mar 2011 at 4:19

GoogleCodeExporter commented 8 years ago
Added check in #validate() to throw IllegalStateException if numCharacteristics 
is inconsistent with the rule list.
Fixed in r1865.

Original comment by dfis...@gmail.com on 18 Mar 2011 at 4:46