From: Alex Blewitt <alex.blewitt@gmail.com>
To: spearce@spearce.org, robin.rosenberg@dewire.com
Cc: git@vger.kernel.org, Alex Blewitt <alex.blewitt@gmail.com>
Subject: [PATCH] Don't allow others to instantiate NullProgressMonitor
Date: Wed, 6 May 2009 21:41:26 +0100 [thread overview]
Message-ID: <1241642486-7067-1-git-send-email-alex.blewitt@gmail.com> (raw)
---
.../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
reply other threads:[~2009-05-06 20:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1241642486-7067-1-git-send-email-alex.blewitt@gmail.com \
--to=alex.blewitt@gmail.com \
--cc=git@vger.kernel.org \
--cc=robin.rosenberg@dewire.com \
--cc=spearce@spearce.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).