< prev index next >

src/java.prefs/windows/classes/java/util/prefs/WindowsPreferences.java

Print this page
rev 11896 : [mq]: 8074657-Missing-space-on-a-boundary-of-concatenated-strings

@@ -691,17 +691,17 @@
      */
     protected String[] keysSpi() throws BackingStoreException{
         // Find out the number of values
         int nativeHandle = openKey(KEY_QUERY_VALUE);
         if (nativeHandle == NULL_NATIVE_HANDLE) {
-            throw new BackingStoreException("Could not open windows"
+            throw new BackingStoreException("Could not open windows "
             + "registry node " + byteArrayToString(windowsAbsolutePath()) +
             " at root 0x" + Integer.toHexString(rootNativeHandle()) + ".");
         }
         int[] result =  WindowsRegQueryInfoKey1(nativeHandle);
         if (result[ERROR_CODE] != ERROR_SUCCESS) {
-            String info = "Could not query windows"
+            String info = "Could not query windows "
             + "registry node " + byteArrayToString(windowsAbsolutePath()) +
             " at root 0x" + Integer.toHexString(rootNativeHandle()) +
             ". Windows RegQueryInfoKeyEx(...) returned error code " +
             result[ERROR_CODE] + ".";
             logger().warning(info);

@@ -740,18 +740,18 @@
      */
     protected String[] childrenNamesSpi() throws BackingStoreException {
         // Open key
         int nativeHandle = openKey(KEY_ENUMERATE_SUB_KEYS| KEY_QUERY_VALUE);
         if (nativeHandle == NULL_NATIVE_HANDLE) {
-            throw new BackingStoreException("Could not open windows"
+            throw new BackingStoreException("Could not open windows "
             + "registry node " + byteArrayToString(windowsAbsolutePath()) +
             " at root 0x" + Integer.toHexString(rootNativeHandle()) + ".");
         }
         // Get number of children
         int[] result =  WindowsRegQueryInfoKey1(nativeHandle);
         if (result[ERROR_CODE] != ERROR_SUCCESS) {
-            String info = "Could not query windows"
+            String info = "Could not query windows "
             + "registry node " + byteArrayToString(windowsAbsolutePath()) +
             " at root 0x" + Integer.toHexString(rootNativeHandle()) +
             ". Windows RegQueryInfoKeyEx(...) returned error code " +
             result[ERROR_CODE] + ".";
             logger().warning(info);

@@ -800,11 +800,11 @@
             throw new BackingStoreException(
                                        "flush(): Backing store not available.");
         }
         int nativeHandle = openKey(KEY_READ);
         if (nativeHandle == NULL_NATIVE_HANDLE) {
-            throw new BackingStoreException("Could not open windows"
+            throw new BackingStoreException("Could not open windows "
             + "registry node " + byteArrayToString(windowsAbsolutePath()) +
             " at root 0x" + Integer.toHexString(rootNativeHandle()) + ".");
         }
         int result = WindowsRegFlushKey1(nativeHandle);
         if (result != ERROR_SUCCESS) {

@@ -849,11 +849,11 @@
      */
     public void removeNodeSpi() throws BackingStoreException {
         int parentNativeHandle =
                          ((WindowsPreferences)parent()).openKey(DELETE);
         if (parentNativeHandle == NULL_NATIVE_HANDLE) {
-            throw new BackingStoreException("Could not open parent windows"
+            throw new BackingStoreException("Could not open parent windows "
             + "registry node of " + byteArrayToString(windowsAbsolutePath()) +
             " at root 0x" + Integer.toHexString(rootNativeHandle()) + ".");
         }
         int result =
                 WindowsRegDeleteKey(parentNativeHandle, toWindowsName(name()));
< prev index next >