File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed
main/java/com/google/edwmigration/dumper/application/dumper/handle
test/java/com/google/edwmigration/dumper/application/dumper Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 3131 *
3232 * @author shevek
3333 */
34- public class JdbcHandle extends AbstractHandle {
34+ public class JdbcHandle implements Handle {
3535
3636 private static final Logger LOG = LoggerFactory .getLogger (JdbcHandle .class );
3737
@@ -71,6 +71,5 @@ public void close() throws IOException {
7171 throw new IOException ("Failed to close DataSource: " + e , e );
7272 }
7373 }
74- super .close ();
7574 }
7675}
Original file line number Diff line number Diff line change 2222import com .google .edwmigration .dumper .application .dumper .connector .Connector ;
2323import com .google .edwmigration .dumper .application .dumper .connector .ConnectorProperty ;
2424import com .google .edwmigration .dumper .application .dumper .connector .MetadataConnector ;
25- import com .google .edwmigration .dumper .application .dumper .handle .AbstractHandle ;
2625import com .google .edwmigration .dumper .application .dumper .handle .Handle ;
2726import com .google .edwmigration .dumper .application .dumper .task .Task ;
2827import java .util .List ;
2928import javax .annotation .Nonnull ;
3029
3130@ AutoService ({Connector .class , MetadataConnector .class })
3231public class TestConnector extends AbstractConnector implements MetadataConnector {
33- private static final Handle DUMMY_HANDLE = new AbstractHandle () {};
32+ private static final Handle DUMMY_HANDLE = () -> {};
3433
3534 public TestConnector () {
3635 super ("test" );
Original file line number Diff line number Diff line change 1717package com .google .edwmigration .dumper .application .dumper .task ;
1818
1919import com .google .common .io .ByteSink ;
20- import com .google .edwmigration .dumper .application .dumper .handle .AbstractHandle ;
2120import com .google .edwmigration .dumper .application .dumper .handle .Handle ;
2221import java .io .ByteArrayOutputStream ;
2322import java .io .IOException ;
2625/** @author shevek */
2726public abstract class AbstractTaskTest {
2827
29- protected static class DummyHandle extends AbstractHandle {}
30-
31- protected static Handle HANDLE = new DummyHandle ();
28+ static final Handle HANDLE = () -> {};
3229
3330 public static class MemoryByteSink extends ByteSink {
3431
You can’t perform that action at this time.
0 commit comments