Author: markt
Date: Sun Jan 3 16:03:29 2010
New Revision: 895429
URL: http://svn.apache.org/viewvc?rev=895429&view=rev
Log:
Remove some declared exceptions that are never thrown
Modified:
tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java
tomcat/trunk/java/org/apache/jasper/compiler/JspReader.java
tomcat/trunk/java/org/apache/jasper/compiler/ServletWriter.java
tomcat/trunk/java/org/apache/jasper/runtime/PageContextImpl.java
tomcat/trunk/java/org/apache/jasper/servlet/JspServletWrapper.java
Modified: tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java?rev=895429&r1=895428&r2=895429&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java (original)
+++ tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java Sun Jan 3
16:03:29 2010
@@ -205,7 +205,7 @@
* is not done yet. Right now we're just hardcoding the actual
* compilers that are created.
*/
- public Compiler createCompiler() throws JasperException {
+ public Compiler createCompiler() {
if (jspCompiler != null ) {
return jspCompiler;
}
@@ -606,9 +606,7 @@
// ==================== Manipulating the class ====================
- public Class<?> load()
- throws JasperException, FileNotFoundException
- {
+ public Class<?> load() throws JasperException {
try {
getJspLoader();
Modified: tomcat/trunk/java/org/apache/jasper/compiler/JspReader.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/JspReader.java?rev=895429&r1=895428&r2=895429&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/compiler/JspReader.java (original)
+++ tomcat/trunk/java/org/apache/jasper/compiler/JspReader.java Sun Jan 3
16:03:29 2010
@@ -128,7 +128,7 @@
String encoding,
InputStreamReader reader,
ErrorDispatcher err)
- throws JasperException, FileNotFoundException {
+ throws JasperException {
this.context = ctxt;
this.err = err;
@@ -532,8 +532,7 @@
* current position in the current file is remembered.
*/
private void pushFile(String file, String encoding,
- InputStreamReader reader)
- throws JasperException, FileNotFoundException {
+ InputStreamReader reader) throws JasperException {
// Register the file
String longName = file;
Modified: tomcat/trunk/java/org/apache/jasper/compiler/ServletWriter.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/ServletWriter.java?rev=895429&r1=895428&r2=895429&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/compiler/ServletWriter.java (original)
+++ tomcat/trunk/java/org/apache/jasper/compiler/ServletWriter.java Sun Jan 3
16:03:29 2010
@@ -16,7 +16,6 @@
*/
package org.apache.jasper.compiler;
-import java.io.IOException;
import java.io.PrintWriter;
/**
@@ -44,7 +43,7 @@
this.writer = writer;
}
- public void close() throws IOException {
+ public void close() {
writer.close();
}
Modified: tomcat/trunk/java/org/apache/jasper/runtime/PageContextImpl.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/runtime/PageContextImpl.java?rev=895429&r1=895428&r2=895429&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/runtime/PageContextImpl.java (original)
+++ tomcat/trunk/java/org/apache/jasper/runtime/PageContextImpl.java Sun Jan 3
16:03:29 2010
@@ -128,8 +128,7 @@
private void _initialize(Servlet servlet, ServletRequest request,
ServletResponse response, String errorPageURL,
- boolean needsSession, int bufferSize, boolean autoFlush)
- throws IOException {
+ boolean needsSession, int bufferSize, boolean
autoFlush) {
// initialize state
this.servlet = servlet;
Modified: tomcat/trunk/java/org/apache/jasper/servlet/JspServletWrapper.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/servlet/JspServletWrapper.java?rev=895429&r1=895428&r2=895429&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/servlet/JspServletWrapper.java
(original)
+++ tomcat/trunk/java/org/apache/jasper/servlet/JspServletWrapper.java Sun Jan
3 16:03:29 2010
@@ -86,8 +86,7 @@
* JspServletWrapper for JSP pages.
*/
public JspServletWrapper(ServletConfig config, Options options, String
jspUri,
- boolean isErrorPage, JspRuntimeContext rctxt)
- throws JasperException {
+ boolean isErrorPage, JspRuntimeContext rctxt) {
this.isTagFile = false;
this.config = config;
@@ -106,8 +105,7 @@
String tagFilePath,
TagInfo tagInfo,
JspRuntimeContext rctxt,
- URL tagFileJarUrl)
- throws JasperException {
+ URL tagFileJarUrl) {
this.isTagFile = true;
this.config = null; // not used
@@ -127,9 +125,7 @@
this.reload = reload;
}
- public Servlet getServlet()
- throws ServletException, IOException, FileNotFoundException
- {
+ public Servlet getServlet() throws ServletException {
if (reload) {
synchronized (this) {
// Synchronizing on jsw enables simultaneous loading
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]