]> source.dussan.org Git - jgit.git/commitdiff
Remove calls to printStackTrace in catch blocks 91/4691/1
authorKevin Sawicki <kevin@github.com>
Tue, 29 Nov 2011 02:07:52 +0000 (18:07 -0800)
committerKevin Sawicki <kevin@github.com>
Tue, 29 Nov 2011 02:07:52 +0000 (18:07 -0800)
Change-Id: I7a4179f10a4841e80b6546e1e7662cab71eac5e9

org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/Daemon.java

index 3c7fdc60d47d2ae7d479d47fd6022079be33abb3..f631bb270cd033c84bce2b728e631ae342226b74 100644 (file)
@@ -107,7 +107,7 @@ public class IgnoreRule {
                        try {
                                matcher = new FileNameMatcher(pattern, Character.valueOf('/'));
                        } catch (InvalidPatternException e) {
-                               e.printStackTrace();
+                               // Ignore pattern exceptions
                        }
                }
        }
index f6e0b13a9a8b2368c6f3dc6f4e2a19a60975be2e..85f82955eae377ca74bd4dddfdb5521839cd3e22 100644 (file)
@@ -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;
index feeabb2e61cdeb83ee35cb4fe90dec6e9b60ddba..4786652754319862339af3e1ac93c24082c772b4 100644 (file)
@@ -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();