e-mzungu / rjc

Redis Java Client
Other
26 stars 5 forks source link

switch to primitive types where possible #15

Open dmitriy-yefremov opened 13 years ago

dmitriy-yefremov commented 13 years ago

The RedisOperations interface declares all returning types as objects. That is not very useful. For example I want to use the zrem method. Now I have to check that the resulting Boolean is not null. It would be better to keep this inside the library and do not complicate the client code with redundnt checks.

jsumners commented 9 years ago

Why would you need to check for null? The contract explicitly states it will be true or false.