From: Kevin Sawicki Date: Tue, 29 Nov 2011 02:07:52 +0000 (-0800) Subject: Remove calls to printStackTrace in catch blocks X-Git-Tag: v1.2.0.201112221803-r~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F91%2F4691%2F1;p=jgit.git Remove calls to printStackTrace in catch blocks Change-Id: I7a4179f10a4841e80b6546e1e7662cab71eac5e9 --- 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 3c7fdc60d4..f631bb270c 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 f6e0b13a9a..85f82955ea 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 feeabb2e61..4786652754 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();