@Test(expected = AssertionError.class) public void setting_sink_with_sink_already_set() throws Exception { m_filter.connect(m_sink); m_filter.connect(m_sink); }
public synchronized void connect(EventSink s) { Ensure.is_true(m_sink == null || s == null); Ensure.is_null(m_lock); m_sink = s; }
EventFilter implements EventSink { public synchronized void connect(EventSink s) { Ensure.is_true(m_sink == null || s == null); Ensure.is_null(m_lock); m_sink = s; } }
EventFilter implements EventSink { public synchronized void connect(EventSink s) { Ensure.is_true(m_sink == null || s == null); Ensure.is_null(m_lock); m_sink = s; } EventFilter(); }
EventFilter implements EventSink { public synchronized void connect(EventSink s) { Ensure.is_true(m_sink == null || s == null); Ensure.is_null(m_lock); m_sink = s; } EventFilter(); synchronized void connect(EventSink s); synchronized EventSink connected(); EventFilterInfo info(); synchronized void lock(Object l); synchronized void unlock(Object l); synchronized boolean locked(); }
EventFilter implements EventSink { public synchronized void connect(EventSink s) { Ensure.is_true(m_sink == null || s == null); Ensure.is_null(m_lock); m_sink = s; } EventFilter(); synchronized void connect(EventSink s); synchronized EventSink connected(); EventFilterInfo info(); synchronized void lock(Object l); synchronized void unlock(Object l); synchronized boolean locked();  }