From 9e79ac3d836adcd9e05ba39c55d02fcfba283a51 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 27 Jun 2005 04:15:24 +0000 Subject: [PATCH] not need to declare native methods final --- .../net/hyperic/sigar/win32/RegistryKey.java | 67 +++++++++++-------- 1 file changed, 40 insertions(+), 27 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/win32/RegistryKey.java b/bindings/java/src/net/hyperic/sigar/win32/RegistryKey.java index 4d64fcf3..f9b5e2b5 100644 --- a/bindings/java/src/net/hyperic/sigar/win32/RegistryKey.java +++ b/bindings/java/src/net/hyperic/sigar/win32/RegistryKey.java @@ -229,32 +229,45 @@ public class RegistryKey extends Win32 close(); } - private static final native int RegCloseKey(long hkey); - private static final native long RegCreateKey(long hkey, - String subkey); - private static final native int RegDeleteKey(long hkey, - String subkey); - private static final native int RegDeleteValue(long hkey, - String valueName); - private static final native String RegEnumKey(long hkey, + private static native int RegCloseKey(long hkey); + + private static native long RegCreateKey(long hkey, + String subkey); + + private static native int RegDeleteKey(long hkey, + String subkey); + + private static native int RegDeleteValue(long hkey, + String valueName); + + private static native String RegEnumKey(long hkey, + int index); + + private static native String RegEnumValueName(long hkey, int index); - private static final native String RegEnumValueName(long hkey, - int index); - private static final native int RegFlushKey(long hkey); - private static final native int RegLoadKey(long hkey, - String subkey, - String filename); - private static final native long RegOpenKey(long hkey, String subkey); - private static final native byte[] RegQueryBufferValue(long hkey, - String valueName); - private static final native int RegQueryIntValue(long hkey, - String valueName); - private static final native String RegQueryStringValue(long hkey, - String valueName); - private static final native int RegSetIntValue(long hkey, - String valueName, - int value); - private static final native int RegSetStringValue(long hkey, - String valueName, - String value); + + private static native int RegFlushKey(long hkey); + + private static native int RegLoadKey(long hkey, + String subkey, + String filename); + + private static native long RegOpenKey(long hkey, String subkey); + + private static native byte[] RegQueryBufferValue(long hkey, + String valueName); + + private static native int RegQueryIntValue(long hkey, + String valueName); + + private static native String RegQueryStringValue(long hkey, + String valueName); + + private static native int RegSetIntValue(long hkey, + String valueName, + int value); + + private static native int RegSetStringValue(long hkey, + String valueName, + String value); }