From 1e7415069535eb5e7da5bd06c4e8cbfdc9921ed3 Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Wed, 19 Sep 2012 13:51:17 -0400 Subject: [PATCH] INT-2749 add'long' cast to SftpFileInfo Add cast to (long) to a return value of getMTime methood called in SftpFileInfo.getModified() --- .../integration/sftp/session/SftpFileInfo.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/SftpFileInfo.java b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/SftpFileInfo.java index 90a39ca63f..1fdbab626d 100644 --- a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/SftpFileInfo.java +++ b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/SftpFileInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2011 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ import com.jcraft.jsch.SftpATTRS; /** * A {@link FileInfo} implementation for SFTP. - * + * * @author Gary Russell * @since 2.1 */ @@ -67,7 +67,7 @@ public class SftpFileInfo extends AbstractFileInfo { * @see com.jcraft.jsch.SftpATTRS#getMTime() */ public long getModified() { - return this.attrs.getMTime() * 1000; + return ((long) this.attrs.getMTime()) * 1000; } /**