Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package drools
import java.util.Collection;
import java.util.List;
import java.util.Set;
import java.util.HashSet;
import java.util.ArrayList;
import example.drools.*;
dialect "java"
rule "oom seeking"
when
(or String(true == Utils.useless9(this, "a", length))
String(true == Utils.useless8(this, "b"))
String(true == Utils.useless7(this)))
(or String(true == Utils.identity(this))
String(true == Utils.useless1(this, length))
String(true == Utils.useless2(length, this)))
(or String(true == Utils.useless6(this))
String(true == Utils.useless5(this))
(and String(true == Utils.useless1(this, "b"))
String(true == Utils.useless2(this, "b")))
( String(true == Utils.useless8(this, "b")) or
String(true == Utils.useless5(this, "b")))
( String(true == Utils.useless9(this, "b")) or
String(true == Utils.useless(this, "b")))
( String(true == Utils.useless1(this, "b")) or
String(true == Utils.useless2(this, "b")))
String(true == Utils.useless(this, "b"))
String(true == Utils.useless1(this, "b")))
(or String(true == Utils.useless2(this, "b"))
String(true == Utils.useless3(this, "b"))
String(true == Utils.useless4(this, "b")))
(or String(true == Utils.useless5(this, "b"))
String(true == Utils.useless6(this, "b"))
String(true == Utils.useless7(this, "b")))
(or String(true == Utils.useless8(this, "b"))
String(true == Utils.useless9(this, "b"))
String(true == Utils.useless1(this, "b")))
(or String(true == Utils.useless(this, "b"))
Long(true == Utils.useless(this, "b"))
Character(true == Utils.useless(this, 10)))
(or String(true == Utils.useless2(this, "b"))
String(true == Utils.useless(this, "b"))
String(true == Utils.useless3(this, "b")))
(or String(true == Utils.useless(this, "b"))
(and String(true == Utils.useless(this, "b"))
String(true == Utils.useless4(this, "b")))
String(true == Utils.useless8(this, "b"))
String(true == Utils.useless(this, "b"))
String(true == Utils.useless5(this, "b")))
(or String(true == Utils.useless6(this, "b"))
String(true == Utils.useless7(this, "b", length))
String(true == Utils.useless9(this, "b")))
then
System.out.println("dummy");
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment