aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-11-28 21:07:52 (EST)
committerKevin Sawicki2011-11-28 21:07:52 (EST)
commitb4ff1e1e034d9409f5f4fe805148712c31b104eb (patch)
tree89d393743fda5e18cc307755d5acafa950a0b0b4
parentd497c2ac2da24de8865b0f113e07a559a4af951a (diff)
downloadjgit-b4ff1e1e034d9409f5f4fe805148712c31b104eb.zip
jgit-b4ff1e1e034d9409f5f4fe805148712c31b104eb.tar.gz
jgit-b4ff1e1e034d9409f5f4fe805148712c31b104eb.tar.bz2
Remove calls to printStackTrace in catch blocksrefs/changes/91/4691/1
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java2
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java2
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/Daemon.java3
3 files changed, 1 insertions, 6 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java b/org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java
index 3c7fdc6..f631bb2 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java
@@ -107,7 +107,7 @@ public class IgnoreRule {
try {
matcher = new FileNameMatcher(pattern, Character.valueOf('/'));
} catch (InvalidPatternException e) {
- e.printStackTrace();
+ // Ignore pattern exceptions
}
}
}
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
index f6e0b13..85f8295 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
@@ -920,7 +920,6 @@ public abstract class Repository {
// Can't decide whether unmerged paths exists. Return
// MERGING state to be on the safe side (in state MERGING
// you are not allow to do anything)
- e.printStackTrace();
}
return RepositoryState.MERGING;
}
@@ -936,7 +935,6 @@ public abstract class Repository {
}
} catch (IOException e) {
// fall through to CHERRY_PICKING
- e.printStackTrace();
}
return RepositoryState.CHERRY_PICKING;
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/Daemon.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/Daemon.java
index feeabb2..4786652 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/Daemon.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/Daemon.java
@@ -336,15 +336,12 @@ public class Daemon {
public void run() {
try {
dc.execute(s);
- } catch (RepositoryNotFoundException e) {
- // Ignored. Client cannot use this repository.
} catch (ServiceNotEnabledException e) {
// Ignored. Client cannot use this repository.
} catch (ServiceNotAuthorizedException e) {
// Ignored. Client cannot use this repository.
} catch (IOException e) {
// Ignore unexpected IO exceptions from clients
- e.printStackTrace();
} finally {
try {
s.getInputStream().close();