summaryrefslogtreecommitdiff
path: root/javaunohelper/com/sun/star/comp
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
commitbc9bfed7d5b4212ac5b5a057113611c0f09e1791 (patch)
treee9227ac2b0d918e973f2b22e98aec8bf5407ab65 /javaunohelper/com/sun/star/comp
parenta339d676b8f14964fab66dad50d4a0421e8eb1aa (diff)
#87190# remove file existence check, by order of KR
Diffstat (limited to 'javaunohelper/com/sun/star/comp')
-rw-r--r--javaunohelper/com/sun/star/comp/helper/RegistryServiceFactory.java38
1 files changed, 19 insertions, 19 deletions
diff --git a/javaunohelper/com/sun/star/comp/helper/RegistryServiceFactory.java b/javaunohelper/com/sun/star/comp/helper/RegistryServiceFactory.java
index 601ef0812..70300b701 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 (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 (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 (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(