package com.khokhlov.rest.response.common;

import com.khokhlov.rest.model.RestObject;

/**
 * @author Khokhlov Pavel
 */
public abstract class AbstractResponseRo implements RestObject {
	private static final long serialVersionUID = 3548947543855064105L;

	private ErrorRo error;

	public ErrorRo getError() {
		return error;
	}

	public void setError(ErrorRo error) {
		this.error = error;
	}

	public boolean hasError() {
		if (error != null) {
			return true;
		}
		return false;
	}
}

@@ -423,12 +423,15 @@
 %7B%0A%09%09
-if (
+return 
 erro
@@ -443,46 +443,8 @@
 null
-) %7B%0A%09%09%09return true;%0A%09%09%7D%0A%09%09return false
 ;%0A%09%7D

simplify condition