import org.opendaylight.yangtools.yang.model.api.SchemaContext;
/**
+ * Deprecated.
+ *
* @deprecated This class provides compatibility between XML semantics
- * and {@link org.opendaylight.yangtools.yang.data.util.DataSchemaContextTree}
+ * and {@link org.opendaylight.yangtools.yang.data.util.DataSchemaContextTree}
*/
@Deprecated
public class DataNormalizer {
return YangInstanceIdentifier.create(normalizedArgs.build());
}
- public DataNormalizationOperation<?> getOperation(final YangInstanceIdentifier legacy) throws DataNormalizationException {
+ public DataNormalizationOperation<?> getOperation(final YangInstanceIdentifier legacy)
+ throws DataNormalizationException {
DataNormalizationOperation<?> currentOp = operation;
- Iterator<PathArgument> arguments = legacy.getPathArguments().iterator();
- while (arguments.hasNext()) {
- currentOp = currentOp.getChild(arguments.next());
+ for (PathArgument pathArgument : legacy.getPathArguments()) {
+ currentOp = currentOp.getChild(pathArgument);
}
return currentOp;
}
public DataNormalizationOperation<?> getRootOperation() {
return operation;
}
-
}