1.1 --- a/src/org/sonews/config/BackendConfig.java Sun Aug 29 18:17:37 2010 +0200
1.2 +++ b/src/org/sonews/config/BackendConfig.java Tue Oct 11 01:17:30 2011 +0200
1.3 @@ -15,7 +15,6 @@
1.4 * You should have received a copy of the GNU General Public License
1.5 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1.6 */
1.7 -
1.8 package org.sonews.config;
1.9
1.10 import java.util.logging.Level;
1.11 @@ -30,19 +29,16 @@
1.12 * @author Christian Lins
1.13 * @since sonews/0.5.0
1.14 */
1.15 -class BackendConfig extends AbstractConfig
1.16 -{
1.17 +class BackendConfig extends AbstractConfig {
1.18
1.19 private static BackendConfig instance = new BackendConfig();
1.20
1.21 - public static BackendConfig getInstance()
1.22 - {
1.23 + public static BackendConfig getInstance() {
1.24 return instance;
1.25 }
1.26 private final TimeoutMap<String, String> values = new TimeoutMap<String, String>();
1.27
1.28 - private BackendConfig()
1.29 - {
1.30 + private BackendConfig() {
1.31 super();
1.32 }
1.33
1.34 @@ -54,8 +50,7 @@
1.35 * @return
1.36 */
1.37 @Override
1.38 - public String get(String key, String defaultValue)
1.39 - {
1.40 + public String get(String key, String defaultValue) {
1.41 try {
1.42 String configValue = values.get(key);
1.43 if (configValue == null) {
1.44 @@ -85,8 +80,7 @@
1.45 * @param key
1.46 * @param value
1.47 */
1.48 - public void set(String key, String value)
1.49 - {
1.50 + public void set(String key, String value) {
1.51 values.put(key, value);
1.52
1.53 try {