From 442c90c506c98ecdae28d86e1a97246385d689ef Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 10 May 2005 00:14:39 +0000 Subject: [PATCH] more use of native flag --- bindings/java/src/net/hyperic/sigar/util/Getline.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/util/Getline.java b/bindings/java/src/net/hyperic/sigar/util/Getline.java index eb86a19e..40399822 100644 --- a/bindings/java/src/net/hyperic/sigar/util/Getline.java +++ b/bindings/java/src/net/hyperic/sigar/util/Getline.java @@ -76,7 +76,9 @@ public class Getline { public void initHistoryFile(File file) throws IOException { - histinit(file.getCanonicalPath()); + if (useNative) { + histinit(file.getCanonicalPath()); + } } public void addToHistory(String line) { @@ -85,6 +87,8 @@ public class Getline { { return; } - histadd(line); + if (useNative) { + histadd(line); + } } }