提交 59749810 编写于 作者: M mindless

[FIXED HUDSON-6351] update DirectoryBrowserSupport to use long for contentLength,

and update stapler to 1.141 which supports long for contentLength.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30571 71c3de6d-444a-0410-be80-ed276b4c234a
上级 90e91d79
......@@ -346,7 +346,7 @@ THE SOFTWARE.
<dependency>
<groupId>org.kohsuke.stapler</groupId>
<artifactId>stapler-jelly</artifactId>
<version>1.140</version>
<version>1.141</version>
<exclusions>
<exclusion>
<groupId>commons-jelly</groupId>
......
......@@ -288,11 +288,11 @@ public final class DirectoryBrowserSupport implements HttpResponse {
}
private static final class ContentInfo implements FileCallable<ContentInfo> {
int contentLength;
long contentLength;
long lastModified;
public ContentInfo invoke(File f, VirtualChannel channel) throws IOException {
contentLength = (int) f.length();
contentLength = f.length();
lastModified = f.lastModified();
return this;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册