opendxl / opendxl-databus-client-java

OpenDXL Databus client
3 stars 15 forks source link

Never thrown exception declared in method signature #26

Closed lucas-giaco closed 4 years ago

lucas-giaco commented 4 years ago

The close method for the Consumer class stands that could throw an IOException which is impossible as you're making catch Exception

This is really annoying as we have to handle an exception that will never be thrown

hvillalb commented 4 years ago

The close method for the Consumer class stands that could throw an IOException which is impossible as you're making catch Exception

This is really annoying as we have to handle an exception that will never be thrown

Yes, you right. We will fix in the next version. In the meantime you can use:
public void close(Duration timeout)

hvillalb commented 4 years ago

Fixed in 2.4.1 release