From: markt Date: Sun, 3 Jan 2010 16:03:29 +0000 (+0000) Subject: Remove some declared exceptions that are never thrown X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2447bc36f5b5d0d7d06e9ef79361a8c91f7b7f9b;p=tomcat7.0 Remove some declared exceptions that are never thrown git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@895429 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/jasper/JspCompilationContext.java b/java/org/apache/jasper/JspCompilationContext.java index ebbb5f662..967c6c0ff 100644 --- a/java/org/apache/jasper/JspCompilationContext.java +++ b/java/org/apache/jasper/JspCompilationContext.java @@ -205,7 +205,7 @@ public class JspCompilationContext { * 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 @@ public class JspCompilationContext { // ==================== Manipulating the class ==================== - public Class load() - throws JasperException, FileNotFoundException - { + public Class load() throws JasperException { try { getJspLoader(); diff --git a/java/org/apache/jasper/compiler/JspReader.java b/java/org/apache/jasper/compiler/JspReader.java index 6113d8589..31cef376e 100644 --- a/java/org/apache/jasper/compiler/JspReader.java +++ b/java/org/apache/jasper/compiler/JspReader.java @@ -128,7 +128,7 @@ class JspReader { String encoding, InputStreamReader reader, ErrorDispatcher err) - throws JasperException, FileNotFoundException { + throws JasperException { this.context = ctxt; this.err = err; @@ -532,8 +532,7 @@ class JspReader { * 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; diff --git a/java/org/apache/jasper/compiler/ServletWriter.java b/java/org/apache/jasper/compiler/ServletWriter.java index 5dedc2b83..5bfc98225 100644 --- a/java/org/apache/jasper/compiler/ServletWriter.java +++ b/java/org/apache/jasper/compiler/ServletWriter.java @@ -16,7 +16,6 @@ */ package org.apache.jasper.compiler; -import java.io.IOException; import java.io.PrintWriter; /** @@ -44,7 +43,7 @@ public class ServletWriter { this.writer = writer; } - public void close() throws IOException { + public void close() { writer.close(); } diff --git a/java/org/apache/jasper/runtime/PageContextImpl.java b/java/org/apache/jasper/runtime/PageContextImpl.java index 19769af15..cdae51157 100644 --- a/java/org/apache/jasper/runtime/PageContextImpl.java +++ b/java/org/apache/jasper/runtime/PageContextImpl.java @@ -128,8 +128,7 @@ public class PageContextImpl extends PageContext { 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; diff --git a/java/org/apache/jasper/servlet/JspServletWrapper.java b/java/org/apache/jasper/servlet/JspServletWrapper.java index b0267ec76..be7d22766 100644 --- a/java/org/apache/jasper/servlet/JspServletWrapper.java +++ b/java/org/apache/jasper/servlet/JspServletWrapper.java @@ -86,8 +86,7 @@ public class JspServletWrapper { * 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 @@ public class JspServletWrapper { String tagFilePath, TagInfo tagInfo, JspRuntimeContext rctxt, - URL tagFileJarUrl) - throws JasperException { + URL tagFileJarUrl) { this.isTagFile = true; this.config = null; // not used @@ -127,9 +125,7 @@ public class JspServletWrapper { 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