Skip to content

Commit

Permalink
Bugfix to Bags.ApplyToAll
Browse files Browse the repository at this point in the history
Would not handle Collections, only Sets
  • Loading branch information
sylvainhalle committed Aug 30, 2024
1 parent b8fb4a1 commit b7a163e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core/src/ca/uqac/lif/cep/util/Bags.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
BeepBeep, an event stream processor
Copyright (C) 2008-2023 Sylvain Hallé
Copyright (C) 2008-2024 Sylvain Hallé
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
Expand Down Expand Up @@ -558,10 +558,10 @@ public Object getValue(Object x)
}
return out;
}
if (x instanceof Set)
if (x instanceof Collection)
{
Set<Object> out = new HashSet<Object>();
for (Object o : (Set<?>) x)
for (Object o : (Collection<?>) x)
{
Object[] in = new Object[1];
in[0] = o;
Expand Down

0 comments on commit b7a163e

Please sign in to comment.