diff options
Diffstat (limited to 'bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/Policy.java')
-rw-r--r-- | bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/Policy.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/Policy.java b/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/Policy.java index ae2a4fb3d..b3940cc00 100644 --- a/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/Policy.java +++ b/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/Policy.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2007 IBM Corporation and others. + * Copyright (c) 2000, 2018 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -31,7 +31,7 @@ public class Policy{ return new NullProgressMonitor(); if(monitor instanceof NullProgressMonitor) return monitor; - return new SubProgressMonitor(monitor, ticks); + return SubMonitor.convert(monitor, ticks); } } |