summaryrefslogtreecommitdiff
path: root/javaunohelper/com/sun
diff options
context:
space:
mode:
authorJuergen Schmidt <jsc@openoffice.org>2001-08-02 11:12:59 +0000
committerJuergen Schmidt <jsc@openoffice.org>2001-08-02 11:12:59 +0000
commitc11dd8c97a5d7a58cb3edfd58fce2ea715cd4832 (patch)
tree737d29be0a12425ee48f8b411ef962839e6db312 /javaunohelper/com/sun
parent7f89d895d70d23c3789fc2964a14b9498e71455b (diff)
#87190# remove file existence check, by order of KR
Diffstat (limited to 'javaunohelper/com/sun')
-rw-r--r--javaunohelper/com/sun/star/comp/helper/RegistryServiceFactory.java42
1 files changed, 21 insertions, 21 deletions
diff --git a/javaunohelper/com/sun/star/comp/helper/RegistryServiceFactory.java b/javaunohelper/com/sun/star/comp/helper/RegistryServiceFactory.java
index a582d90cba9b..5e648ddba6fb 100644
--- a/javaunohelper/com/sun/star/comp/helper/RegistryServiceFactory.java
+++ b/javaunohelper/com/sun/star/comp/helper/RegistryServiceFactory.java
@@ -2,9 +2,9 @@
*
* $RCSfile: RegistryServiceFactory.java,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: kr $ $Date: 2001-03-14 12:18:54 $
+ * last change: $Author: jsc $ $Date: 2001-08-02 12:12:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -128,25 +128,25 @@ public class RegistryServiceFactory {
if (writeRegistryFile == null && readRegistryFile == null)
throw new com.sun.star.uno.Exception("No registry is specified!");
- if (writeRegistryFile != null) {
- java.io.File file = new java.io.File(writeRegistryFile);
-
- if (file.exists()) {
- if (!file.isFile())
- throw new com.sun.star.uno.Exception(writeRegistryFile + " is not a file!");
- } else
- throw new com.sun.star.uno.Exception(writeRegistryFile + " doese not exist!");
- }
-
- if (readRegistryFile != null) {
- java.io.File file = new java.io.File(readRegistryFile);
-
- if (file.exists()) {
- if (!file.isFile())
- throw new com.sun.star.uno.Exception(readRegistryFile + " is not a file!");
- } else
- throw new com.sun.star.uno.Exception(readRegistryFile + " doese not exist!");
- }
+// if (writeRegistryFile != null) {
+// java.io.File file = new java.io.File(writeRegistryFile);
+
+// if (file.exists()) {
+// if (!file.isFile())
+// throw new com.sun.star.uno.Exception(writeRegistryFile + " is not a file!");
+// } else
+// throw new com.sun.star.uno.Exception(writeRegistryFile + " doese not exist!");
+// }
+
+// if (readRegistryFile != null) {
+// java.io.File file = new java.io.File(readRegistryFile);
+
+// if (file.exists()) {
+// if (!file.isFile())
+// throw new com.sun.star.uno.Exception(readRegistryFile + " is not a file!");
+// } else
+// throw new com.sun.star.uno.Exception(readRegistryFile + " doese not exist!");
+// }
Object obj = createRegistryServiceFactory( writeRegistryFile, readRegistryFile, readOnly );
return (XMultiServiceFactory) UnoRuntime.queryInterface(