Author: markt
Date: Wed Aug 31 17:46:22 2011
New Revision: 1163717
URL: http://svn.apache.org/viewvc?rev=1163717&view=rev
Log:
As per the comment, remove the deprecated code
Modified:
tomcat/trunk/java/org/apache/jasper/JspCompilationContext.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=1163717&r1=1163716&r2=1163717&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java (original)
+++ tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java Wed Aug 31
17:46:22 2011
@@ -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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]