Author: sdumitriu
Date: 2007-11-20 15:28:27 +0100 (Tue, 20 Nov 2007)
New Revision: 6032
Modified:
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWikiConfig.java
Log:
Apply codestyle
Modified:
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWikiConfig.java
===================================================================
---
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWikiConfig.java
2007-11-20 14:13:53 UTC (rev 6031)
+++
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWikiConfig.java
2007-11-20 14:28:27 UTC (rev 6032)
@@ -29,41 +29,48 @@
import org.apache.commons.lang.StringUtils;
-public class XWikiConfig extends Properties {
-
- public XWikiConfig() {
- // Default constructor so that properties can be added after
constructing the instance
+public class XWikiConfig extends Properties
+{
+ public XWikiConfig()
+ {
+ // Default constructor so that properties can be added after
constructing the instance
// by using XWikiConfig.put().
}
-
- public XWikiConfig(String path) throws XWikiException {
- try {
- FileInputStream fis = new FileInputStream(path);
- loadConfig(fis, path);
- }
- catch (FileNotFoundException e) {
- Object[] args = { path };
- throw new XWikiException(XWikiException.MODULE_XWIKI_CONFIG,
- XWikiException.ERROR_XWIKI_CONFIG_FILENOTFOUND,
- "Configuration file {0} not found", e, args);
- }
+
+ public XWikiConfig(String path) throws XWikiException
+ {
+ try {
+ FileInputStream fis = new FileInputStream(path);
+ loadConfig(fis, path);
+ } catch (FileNotFoundException e) {
+ Object[] args = {path};
+ throw new XWikiException(XWikiException.MODULE_XWIKI_CONFIG,
+ XWikiException.ERROR_XWIKI_CONFIG_FILENOTFOUND,
+ "Configuration file {0} not found",
+ e,
+ args);
+ }
}
- public XWikiConfig(InputStream is) throws XWikiException {
- loadConfig(is, "");
+ public XWikiConfig(InputStream is) throws XWikiException
+ {
+ loadConfig(is, "");
}
- public void loadConfig(InputStream is, String path) throws XWikiException {
+ public void loadConfig(InputStream is, String path) throws XWikiException
+ {
try {
load(is);
- }
- catch (IOException e) {
- Object[] args = { path };
+ } catch (IOException e) {
+ Object[] args = {path};
throw new XWikiException(XWikiException.MODULE_XWIKI_CONFIG,
XWikiException.ERROR_XWIKI_CONFIG_FORMATERROR,
- "Error reading configuration file", e, args);
+ "Error reading configuration file",
+ e,
+ args);
}
}
+
/**
* @return array of string splited from property.
* @param param - name of property
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications