Skip to contentSkip to conversation

Don't allow others to instantiate NullProgressMonitor

PATCH New Alex Blewitt 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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
index 191dc00..1c30e6b 100644
@@ -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