Fix checkstyle if-statements must use braces in aaa-authn-store 37/13637/3
authorThanh Ha <thanh.ha@linuxfoundation.org>
Sun, 14 Dec 2014 20:18:35 +0000 (15:18 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Sat, 7 Feb 2015 02:44:47 +0000 (21:44 -0500)
- Fix checkstyle if-statement brances
- Fix missing License header

Change-Id: Iac67a50e459b363fd3b83f56011028d82b828c62
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
aaa-authn-store/src/main/java/org/opendaylight/aaa/store/DefaultTokenStore.java

index f81f2d0eac947fc7c5308964a56c713638e41b98..0c8b2c168239fa16a2e9d7de0327e8476ad0dd3b 100644 (file)
@@ -1,3 +1,11 @@
+/*****************************************************************************
+ * Copyright (c) 2014 Hewlett-Packard Development Company, L.P. and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *****************************************************************************/
 package org.opendaylight.aaa.store;
 
 import java.io.File;
@@ -118,9 +126,10 @@ public class DefaultTokenStore implements TokenStore, ManagedService {
     public void updated(@SuppressWarnings("rawtypes") Dictionary props)
             throws ConfigurationException {
         logger.info("Updating token store configuration...");
-        if (props == null)
+        if (props == null) {
             // Someone deleted the configuration, use defaults
             props = defaults;
+        }
         reconfig(props);
     }