/*
* Copyright (c) 2015 Cisco Systems, Inc. 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
+ * 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.controller.md.sal.binding.impl;
import com.google.common.base.Throwables;
final class GetValueRouteContextExtractor extends ContextReferenceExtractor {
- private final static Lookup PUBLIC_LOOKUP = MethodHandles.publicLookup();
+ private static final Lookup PUBLIC_LOOKUP = MethodHandles.publicLookup();
private final MethodHandle contextHandle;
private final MethodHandle valueHandle;
}
@Override
+ @SuppressWarnings("checkstyle:IllegalCatch")
InstanceIdentifier<?> extract(final DataObject obj) {
try {
final Object ctx = contextHandle.invokeExact(obj);
return (InstanceIdentifier<?>) valueHandle.invokeExact(ctx);
}
return null;
- } catch (final Throwable e) {
+ } catch (Throwable e) {
throw Throwables.propagate(e);
}
}
-
-
}