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