--- a/langtools/src/share/classes/com/sun/tools/javac/api/ClientCodeWrapper.java Tue Dec 17 19:27:49 2013 -0500
+++ b/langtools/src/share/classes/com/sun/tools/javac/api/ClientCodeWrapper.java Wed Dec 18 10:29:25 2013 -0500
@@ -218,9 +218,7 @@
return clientJavaFileManager.getClassLoader(location);
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -231,9 +229,7 @@
return wrapJavaFileObjects(clientJavaFileManager.list(location, packageName, kinds, recurse));
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -244,9 +240,7 @@
return clientJavaFileManager.inferBinaryName(location, unwrap(file));
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -257,9 +251,7 @@
return clientJavaFileManager.isSameFile(unwrap(a), unwrap(b));
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -270,9 +262,7 @@
return clientJavaFileManager.handleOption(current, remaining);
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -283,9 +273,7 @@
return clientJavaFileManager.hasLocation(location);
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -296,9 +284,7 @@
return wrap(clientJavaFileManager.getJavaFileForInput(location, className, kind));
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -309,9 +295,7 @@
return wrap(clientJavaFileManager.getJavaFileForOutput(location, className, kind, unwrap(sibling)));
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -322,9 +306,7 @@
return wrap(clientJavaFileManager.getFileForInput(location, packageName, relativeName));
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -335,9 +317,7 @@
return wrap(clientJavaFileManager.getFileForOutput(location, packageName, relativeName, unwrap(sibling)));
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -348,9 +328,7 @@
clientJavaFileManager.flush();
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -361,9 +339,7 @@
clientJavaFileManager.close();
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -374,9 +350,7 @@
return clientJavaFileManager.isSupportedOption(option);
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -400,9 +374,7 @@
return clientFileObject.toUri();
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -413,9 +385,7 @@
return clientFileObject.getName();
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -426,9 +396,7 @@
return clientFileObject.openInputStream();
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -439,9 +407,7 @@
return clientFileObject.openOutputStream();
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -452,9 +418,7 @@
return clientFileObject.openReader(ignoreEncodingErrors);
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -465,9 +429,7 @@
return clientFileObject.getCharContent(ignoreEncodingErrors);
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -478,9 +440,7 @@
return clientFileObject.openWriter();
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -491,9 +451,7 @@
return clientFileObject.getLastModified();
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -504,9 +462,7 @@
return clientFileObject.delete();
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -528,9 +484,7 @@
return ((JavaFileObject)clientFileObject).getKind();
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -541,9 +495,7 @@
return ((JavaFileObject)clientFileObject).isNameCompatible(simpleName, kind);
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -554,9 +506,7 @@
return ((JavaFileObject)clientFileObject).getNestingKind();
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -567,9 +517,7 @@
return ((JavaFileObject)clientFileObject).getAccessLevel();
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -593,9 +541,7 @@
clientDiagnosticListener.report(unwrap(diagnostic));
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -668,9 +614,7 @@
clientTaskListener.started(ev);
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}
@@ -681,9 +625,7 @@
clientTaskListener.finished(ev);
} catch (ClientCodeException e) {
throw e;
- } catch (RuntimeException e) {
- throw new ClientCodeException(e);
- } catch (Error e) {
+ } catch (RuntimeException | Error e) {
throw new ClientCodeException(e);
}
}