|
30 | 30 | import io.cloudbeaver.utils.CBModelConstants; |
31 | 31 | import io.cloudbeaver.utils.WebDataSourceUtils; |
32 | 32 | import io.cloudbeaver.utils.WebEventUtils; |
33 | | -import org.eclipse.core.runtime.IAdaptable; |
34 | 33 | import org.eclipse.core.runtime.IStatus; |
35 | 34 | import org.eclipse.core.runtime.Status; |
36 | 35 | import org.jkiss.code.NotNull; |
37 | 36 | import org.jkiss.code.Nullable; |
38 | 37 | import org.jkiss.dbeaver.DBException; |
39 | 38 | import org.jkiss.dbeaver.Log; |
40 | 39 | import org.jkiss.dbeaver.model.DBFileController; |
| 40 | +import org.jkiss.dbeaver.model.DBPAdaptable; |
41 | 41 | import org.jkiss.dbeaver.model.DBPDataSourceContainer; |
42 | 42 | import org.jkiss.dbeaver.model.DBPEventListener; |
43 | 43 | import org.jkiss.dbeaver.model.access.DBAAuthCredentials; |
|
76 | 76 | */ |
77 | 77 | //TODO: split to authenticated and non authenticated context |
78 | 78 | public class WebSession extends BaseWebSession |
79 | | - implements SMSessionWithAuth, SMCredentialsProvider, DBACredentialsProvider, IAdaptable { |
| 79 | + implements SMSessionWithAuth, SMCredentialsProvider, DBACredentialsProvider, DBPAdaptable { |
80 | 80 |
|
81 | 81 | private static final Log log = Log.getLog(WebSession.class); |
82 | 82 |
|
@@ -882,7 +882,7 @@ public String getAuthContextType() { |
882 | 882 |
|
883 | 883 | // May be called to extract auth information from session |
884 | 884 | @Override |
885 | | - public <T> T getAdapter(Class<T> adapter) { |
| 885 | + public <T> T getAdapter(@NotNull Class<T> adapter) { |
886 | 886 | synchronized (authTokens) { |
887 | 887 | for (WebAuthInfo authInfo : authTokens) { |
888 | 888 | if (isAuthInfoInstanceOf(authInfo, adapter)) { |
|
0 commit comments