1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +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

@ -65,12 +65,15 @@ public class MIListThreadGroups extends MICommand<MIListThreadGroupsInfo> {
private MIListThreadGroups(ICommandControlDMContext ctx, String groupId, boolean listAll) { private MIListThreadGroups(ICommandControlDMContext ctx, String groupId, boolean listAll) {
super(ctx, "-list-thread-groups"); //$NON-NLS-1$ super(ctx, "-list-thread-groups"); //$NON-NLS-1$
assert !((groupId != null) && listAll); // see comment above
final ArrayList<String> arguments = new ArrayList<String>(); final ArrayList<String> arguments = new ArrayList<String>();
if (listAll) { if (listAll) {
arguments.add("--available"); //$NON-NLS-1$ arguments.add("--available"); //$NON-NLS-1$
} }
if (groupId != null) { if (groupId != null) {
assert groupId.trim().length() > 0;
arguments.add(groupId); arguments.add(groupId);
} }