Don't allow others to instantiate NullProgressMonitor
PATCH 1/1 Don't allow others to instantiate NullProgressMonitor
--- .../org/spearce/jgit/lib/NullProgressMonitor.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
org.spearce.jgit/src/org/spearce/jgit/lib/NullProgressMonitor.java +4 -0
@@ -45,6 +45,10 @@ /** Immutable instance of a null progress monitor. */ public static final NullProgressMonitor INSTANCE = new NullProgressMonitor(); + private NullProgressMonitor() { + // Do not let others instantiate + } + public void start(int totalTasks) { // Do not report. }
Signature · 1 line
1.6.2.2