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:
parent
92b10b9ca5
commit
354f9207c9
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue