git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Don't allow others to instantiate NullProgressMonitor

From
Alex Blewitt <alex.blewitt@gmail.com>
Date
May 6, 2009, 20:41 UTC
Message-ID
<1241642486-7067-1-git-send-email-alex.blewitt@gmail.com>
---
 .../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
Message 1 of 1 in “Don't allow others to instantiate NullProgressMonitor”
  1. Don't allow others to instantiate NullProgressMonitorAlex Blewitt, May 6, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.