package org.leplus.sql;

import java.io.Serializable;

public class Result implements Cloneable, Serializable, Comparable<Result> {

	private static final long serialVersionUID = 2722874450358413200L;

	private String value;
	private int line;
	private int column;

	public Result() {
		super();
	}

	@Override
	protected Result clone() {
		try {
			return (Result) super.clone();
		} catch (final CloneNotSupportedException e) {
			throw new AssertionError(e);
		}
	}

	@Override
	public int compareTo(Result o) {
		if (line != o.line) {
			return line - o.line;
		}
		if (column != o.column) {
			return column - o.column;
		}
		return value.compareTo(o.value);
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		final Result other = (Result) obj;
		if (column != other.column) {
			return false;
		}
		if (line != other.line) {
			return false;
		}
		if (value == null) {
			if (other.value != null) {
				return false;
			}
		} else if (!value.equals(other.value)) {
			return false;
		}
		return true;
	}

	public int getColumn() {
		return column;
	}

	public int getLine() {
		return line;
	}

	public String getValue() {
		return value;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + column;
		result = prime * result + line;
		result = prime * result + (value == null ? 0 : value.hashCode());
		return result;
	}

	public void setColumn(int column) {
		this.column = column;
	}

	public void setLine(int line) {
		this.line = line;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return line + ":" + column + ":" + value;
	}

}

@@ -82,19 +82,8 @@
 ents
- Cloneable,
  Ser
@@ -287,172 +287,131 @@
 %7D%0A%0A%09
-@Override%0A%09protected 
+public Result(
 Result 
-clone(
+model
 ) %7B%0A%09%09t
-ry %7B%0A%09%09%09return (Result) super.clone();%0A%09%09%7D catch (final CloneNotSupportedException e) %7B
+his();%0A%09%09this.value = model.value;%0A%09%09this.line = model.line;
 %0A%09%09
-%09
 th
-row new AssertionError(e);%0A%09%09%7D
+is.column = model.column;
 %0A%09%7D%0A

Replace cloning by copy constructor