git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Don't allow others to instantiate NullProgressMonitor
@ 2009-05-06 20:41 Alex Blewitt
  0 siblings, 0 replies; only message in thread
From: Alex Blewitt @ 2009-05-06 20:41 UTC (permalink / raw)
  To: spearce, robin.rosenberg; +Cc: git, Alex Blewitt

---
 .../org/spearce/jgit/lib/NullProgressMonitor.java  |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/NullProgressMonitor.java b/org.spearce.jgit/src/org/spearce/jgit/lib/NullProgressMonitor.java
index 191dc00..1c30e6b 100644
--- a/org.spearce.jgit/src/org/spearce/jgit/lib/NullProgressMonitor.java
+++ b/org.spearce.jgit/src/org/spearce/jgit/lib/NullProgressMonitor.java
@@ -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.
 	}
-- 
1.6.2.2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-06 20:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-06 20:41 [PATCH] Don't allow others to instantiate NullProgressMonitor Alex Blewitt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).