Remove calls to printStackTrace in catch blocks
Change-Id: I7a4179f10a4841e80b6546e1e7662cab71eac5e9
This commit is contained in:
parent
d497c2ac2d
commit
b4ff1e1e03
|
@ -107,7 +107,7 @@ else if (!pattern.startsWith("/")) {
|
|||
try {
|
||||
matcher = new FileNameMatcher(pattern, Character.valueOf('/'));
|
||||
} catch (InvalidPatternException e) {
|
||||
e.printStackTrace();
|
||||
// Ignore pattern exceptions
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -920,7 +920,6 @@ public RepositoryState getRepositoryState() {
|
|||
// 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 RepositoryState getRepositoryState() {
|
|||
}
|
||||
} catch (IOException e) {
|
||||
// fall through to CHERRY_PICKING
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return RepositoryState.CHERRY_PICKING;
|
||||
|
|
|
@ -336,15 +336,12 @@ private void startClient(final Socket s) {
|
|||
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();
|
||||
|
|
Loading…
Reference in New Issue