Event Ruler is a Java library that allows matching many thousands of Events per second to any number of expressive and sophisticated rules.
570
stars
65
forks
source link
Cannot create GenericMachine using builder() for anything but Object without compiler warnings/errors #174
Closed
youngm closed 3 months ago
I'd like to create a GenericMachine for Integer and I cannot do it without unsafe casts and compiler warnings.
To Reproduce
Try these various ways to create a GenericMachine without a warning or error. They all fail.
Expected behavior
Should be able to create a GenericMachine for a given type without a compiler warning.
Perhaps the build() method could accept a generic parameter?
Environment:
Java 17
Additional context
Sure, GenericMachine