@Test public void testSetErrorVerbosity() { AtomicBoolean called = new AtomicBoolean(); PrintingBugReporter inner = new PrintingBugReporter() { @Override public void setErrorVerbosity(int level) { assertEquals(level, BugReporter.NORMAL); called.set(true); } }; new SynchronizedBugReporter(inner).setErrorVerbosity(BugReporter.NORMAL); assertTrue(called.get()); }
@Override public synchronized void setErrorVerbosity(int level) { delegate.setErrorVerbosity(level); }
SynchronizedBugReporter implements BugReporter { @Override public synchronized void setErrorVerbosity(int level) { delegate.setErrorVerbosity(level); } }
SynchronizedBugReporter implements BugReporter { @Override public synchronized void setErrorVerbosity(int level) { delegate.setErrorVerbosity(level); } SynchronizedBugReporter(@NonNull BugReporter delegate); }
SynchronizedBugReporter implements BugReporter { @Override public synchronized void setErrorVerbosity(int level) { delegate.setErrorVerbosity(level); } SynchronizedBugReporter(@NonNull BugReporter delegate); @Override synchronized void setErrorVerbosity(int level); @Override synchronized void setPriorityThreshold(int threshold); @Override synchronized void observeClass(ClassDescriptor classDescriptor); @Override synchronized void reportBug(@Nonnull BugInstance bugInstance); @Override synchronized void logError(String message); @Override synchronized void reportMissingClass(ClassNotFoundException ex); @Override synchronized void reportMissingClass(ClassDescriptor classDescriptor); @Override synchronized void finish(); @Override synchronized void reportQueuedErrors(); @Override synchronized void addObserver(BugReporterObserver observer); @Override synchronized ProjectStats getProjectStats(); @Override synchronized void logError(String message, Throwable e); @Override synchronized void reportSkippedAnalysis(MethodDescriptor method); @Override @CheckForNull synchronized BugCollection getBugCollection(); }
SynchronizedBugReporter implements BugReporter { @Override public synchronized void setErrorVerbosity(int level) { delegate.setErrorVerbosity(level); } SynchronizedBugReporter(@NonNull BugReporter delegate); @Override synchronized void setErrorVerbosity(int level); @Override synchronized void setPriorityThreshold(int threshold); @Override synchronized void observeClass(ClassDescriptor classDescriptor); @Override synchronized void reportBug(@Nonnull BugInstance bugInstance); @Override synchronized void logError(String message); @Override synchronized void reportMissingClass(ClassNotFoundException ex); @Override synchronized void reportMissingClass(ClassDescriptor classDescriptor); @Override synchronized void finish(); @Override synchronized void reportQueuedErrors(); @Override synchronized void addObserver(BugReporterObserver observer); @Override synchronized ProjectStats getProjectStats(); @Override synchronized void logError(String message, Throwable e); @Override synchronized void reportSkippedAnalysis(MethodDescriptor method); @Override @CheckForNull synchronized BugCollection getBugCollection();  }