From 91df2a14c05a927a5b144845fe07ac38da1072dc Mon Sep 17 00:00:00 2001 From: markt Date: Wed, 31 Aug 2011 17:46:22 +0000 Subject: [PATCH] As per the comment, remove the deprecated code git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1163717 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/jasper/JspCompilationContext.java | 43 ----------------------- 1 file changed, 43 deletions(-) diff --git a/java/org/apache/jasper/JspCompilationContext.java b/java/org/apache/jasper/JspCompilationContext.java index d9a685df6..506b90a97 100644 --- a/java/org/apache/jasper/JspCompilationContext.java +++ b/java/org/apache/jasper/JspCompilationContext.java @@ -385,49 +385,6 @@ public class JspCompilationContext { return jspUri; } - /** - * @deprecated Will be removed in Tomcat 8.0.x. Use - * {@link #getLastModified(String)} instead. - */ - @Deprecated - public long getJspLastModified() { - long result = -1; - URLConnection uc = null; - try { - URL jspUrl = getResource(getJspFile()); - if (jspUrl == null) { - incrementRemoved(); - return result; - } - uc = jspUrl.openConnection(); - if (uc instanceof JarURLConnection) { - result = ((JarURLConnection) uc).getJarEntry().getTime(); - } else { - result = uc.getLastModified(); - } - } catch (IOException e) { - if (log.isDebugEnabled()) { - log.debug(Localizer.getMessage( - "jsp.error.lastModified", getJspFile()), e); - } - result = -1; - } finally { - if (uc != null) { - try { - uc.getInputStream().close(); - } catch (IOException e) { - if (log.isDebugEnabled()) { - log.debug(Localizer.getMessage( - "jsp.error.lastModified", getJspFile()), e); - } - result = -1; - } - } - } - return result; - } - - public Long getLastModified(String resource) { long result = -1; URLConnection uc = null; -- 2.11.0