(final T toBind)
| 68 | } |
| 69 | |
| 70 | private <T> Module newModule(final T toBind) { |
| 71 | return new AbstractModule() { |
| 72 | @Override |
| 73 | protected void configure() { |
| 74 | @SuppressWarnings("unchecked") // getClass always needs a cast |
| 75 | Class<T> tClass = (Class<T>) toBind.getClass(); |
| 76 | binder().skipSources(getClass()).bind(tClass).toInstance(toBind); |
| 77 | } |
| 78 | }; |
| 79 | } |
| 80 | } |
no outgoing calls
no test coverage detected