Addressed easy codacy issues

This commit is contained in:
Kelly Kelly 2020-01-30 12:11:29 -05:00
parent ea3a89b52d
commit 1e10b58cff

View File

@ -99,12 +99,6 @@ public class KdTree<T extends KdTree.XYZPoint> implements Iterable<T> {
static final int Y_AXIS = 1; static final int Y_AXIS = 1;
static final int Z_AXIS = 2; static final int Z_AXIS = 2;
/**
* Default constructor.
*/
public KdTree() {
}
public KdNode getRoot() { public KdNode getRoot() {
return root; return root;
} }
@ -571,9 +565,7 @@ public class KdTree<T extends KdTree.XYZPoint> implements Iterable<T> {
@Override @Override
public String toString() { public String toString() {
StringBuilder builder = new StringBuilder(200); StringBuilder builder = new StringBuilder(200);
builder.append("dimensions=").append(DIMENSIONS); builder.append("dimensions=").append(DIMENSIONS).append(" depth=").append(depth).append(" point=").append(getPoint().toString());
builder.append(" depth=").append(depth);
builder.append(" point=").append(getPoint().toString());
return builder.toString(); return builder.toString();
} }
} }