1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

added a couple of asserts

This commit is contained in:
John Cortell 2010-04-08 21:21:00 +00:00
parent 92b10b9ca5
commit 354f9207c9

View file

@ -64,6 +64,8 @@ public class MIListThreadGroups extends MICommand<MIListThreadGroupsInfo> {
// so this constructor is private, and exists to avoid duplicating code.
private MIListThreadGroups(ICommandControlDMContext ctx, String groupId, boolean listAll) {
super(ctx, "-list-thread-groups"); //$NON-NLS-1$
assert !((groupId != null) && listAll); // see comment above
final ArrayList<String> arguments = new ArrayList<String>();
if (listAll) {
@ -71,6 +73,7 @@ public class MIListThreadGroups extends MICommand<MIListThreadGroupsInfo> {
}
if (groupId != null) {
assert groupId.trim().length() > 0;
arguments.add(groupId);
}