As per the comment, remove the deprecated code
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 31 Aug 2011 17:46:22 +0000 (17:46 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 31 Aug 2011 17:46:22 +0000 (17:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1163717 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/JspCompilationContext.java

index d9a685d..506b90a 100644 (file)
@@ -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;