https://issues.apache.org/bugzilla/show_bug.cgi?id=53565
Priority: P2 Bug ID: 53565 Assignee: dev@tomcat.apache.org Summary: deprecated Severity: minor Classification: Unclassified Reporter: riccardoprandin...@gmail.com Hardware: PC Status: NEW Version: unspecified Component: jdbc-pool Product: Tomcat Modules \org\apache\tomcat\jdbc\pool\interceptor\SlowQueryReport.java:300: warning: [deprecation] toGMTString() in Date has been deprecated buf.append(new java.util.Date(maxInvocationDate).toGMTString()); \org\apache\tomcat\jdbc\pool\interceptor\SlowQueryReport.java:305: warning: [deprecation] toGMTString() in Date has been deprecated buf.append(new java.util.Date(minInvocationDate).toGMTString()); to solve a possible solution is: public String toString() { DateFormat df = new SimpleDateFormat("dd MMM yyyy kk:mm:ss z"); df.setTimeZone(TimeZone.getTimeZone("GMT")); StringBuilder buf = new StringBuilder("QueryStats[query:"); buf.append(query); buf.append(", nrOfInvocations:"); buf.append(nrOfInvocations); buf.append(", maxInvocationTime:"); buf.append(maxInvocationTime); buf.append(", maxInvocationDate:"); //buf.append(new java.util.Date(maxInvocationDate).toGMTString()); buf.append(df.format(new java.util.Date(maxInvocationDate))); buf.append(", minInvocationTime:"); buf.append(minInvocationTime); buf.append(", minInvocationDate:"); //buf.append(new java.util.Date(minInvocationDate).toGMTString()); buf.append(df.format(new java.util.Date(minInvocationDate))); buf.append(", totalInvocationTime:"); buf.append(totalInvocationTime); buf.append(", averageInvocationTime:"); -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org