Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/StreamUtil.java')
-rw-r--r--examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/StreamUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/StreamUtil.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/StreamUtil.java
index bf9620d3f..2fb9b2080 100644
--- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/StreamUtil.java
+++ b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/StreamUtil.java
@@ -29,7 +29,7 @@ public class StreamUtil {
throws IOException {
// Only show progress for files larger than 25Kb.
- Long kilobytesEstimate = new Long(sizeEstimate / 1024);
+ Long kilobytesEstimate = Long.valueOf(sizeEstimate / 1024);
boolean showProgress = (progress != null) && (sizeEstimate > 25000);
long bytesCopied = 0;
@@ -46,7 +46,7 @@ public class StreamUtil {
progress.subTask(
Policy.bind(
"filetransfer.monitor", //$NON-NLS-1$
- new Object[] { title, new Long(bytesCopied / 1024), kilobytesEstimate }));
+ new Object[] { title, Long.valueOf(bytesCopied / 1024), kilobytesEstimate }));
}
// Read the next chunk.

Back to the top