kfruffin/culvert — comment on commit ed8b381022fe3ea0429d80a226426c3eae812799
File: culvert-hbase/src/main/java/com/bah/culvert/tableadapters/HBaseTableAdapter.java line 187
By jyates:

Yeah, this works ok, its just a bunch of unnecessary assignment. Try something like:

Iterator results = Iterators.apply(Collections.singletonList(r).iterator(), resultConverter);
return new DecoratingIterator(results);

its more of a style thing - all the declarations are really just there for that one line, but this ends up being pretty clear. Also, the singletonList is a faster, smaller allocation that Arrays.asList().