Remove Exception from method signature

Removed null checking in favor of boolean which is explicitly value based.
This commit is contained in:
Ruben van Vreeland 2016-09-14 22:06:43 +02:00 committed by GitHub
parent d753d8c863
commit c6ce0da44c

View File

@ -38,10 +38,8 @@ public class LabelDebugger implements Serializable {
/**
* <p>Sets the status to enabled</p>
* @param enabled
* @throws Exception if enabled is null
*/
public void setEnabled(Boolean enabled) throws Exception {
if(enabled == null) throw new Exception("Cannot set enabled to null");
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}