From f2c89e82f6ba4d67d73b6b9cd9006221e64893c7 Mon Sep 17 00:00:00 2001 From: Dennis Kho Date: Fri, 14 Jul 2017 09:54:23 +0200 Subject: [PATCH] Mendix 7 fix for unallowed imports Specifically removed the import com.mendix.core.session.UserSession, which was also unused. Since Mendix 7 you are not allowed to access these classes. --- javasource/sftpconnection/actions/DisconnectIdleSessions.java | 2 -- javasource/sftpconnection/helpers/HandleFileSftp.java | 3 --- 2 files changed, 5 deletions(-) diff --git a/javasource/sftpconnection/actions/DisconnectIdleSessions.java b/javasource/sftpconnection/actions/DisconnectIdleSessions.java index d8a135b..e62fce7 100644 --- a/javasource/sftpconnection/actions/DisconnectIdleSessions.java +++ b/javasource/sftpconnection/actions/DisconnectIdleSessions.java @@ -10,8 +10,6 @@ package sftpconnection.actions; import com.jcraft.jsch.Session; -import com.mendix.core.session.UserSession; -import sftpconnection.helpers.HandleFileSftp; import com.mendix.systemwideinterfaces.core.IContext; import com.mendix.webui.CustomJavaAction; diff --git a/javasource/sftpconnection/helpers/HandleFileSftp.java b/javasource/sftpconnection/helpers/HandleFileSftp.java index 53c10d9..bcce7c1 100644 --- a/javasource/sftpconnection/helpers/HandleFileSftp.java +++ b/javasource/sftpconnection/helpers/HandleFileSftp.java @@ -29,7 +29,6 @@ import com.jcraft.jsch.ChannelSftp; import com.jcraft.jsch.ChannelSftp.LsEntry; import com.jcraft.jsch.HostKey; -import com.jcraft.jsch.HostKeyRepository; import com.jcraft.jsch.JSch; import com.jcraft.jsch.JSchException; import com.jcraft.jsch.KeyPair; @@ -38,8 +37,6 @@ import com.jcraft.jsch.SftpException; import com.mendix.core.Core; import com.mendix.core.CoreException; -import com.mendix.core.session.UserSession; -import com.mendix.logging.ILogNode; import com.mendix.systemwideinterfaces.MendixRuntimeException; import com.mendix.systemwideinterfaces.core.IContext; import com.mendix.systemwideinterfaces.core.IMendixObject;