Created
March 5, 2014 21:02
-
-
Save mrrodriguez/9376502 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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