Remove Exception from method signature
Removed null checking in favor of boolean which is explicitly value based.
This commit is contained in:
parent
d753d8c863
commit
c6ce0da44c
@ -38,10 +38,8 @@ public class LabelDebugger implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* <p>Sets the status to enabled</p>
|
* <p>Sets the status to enabled</p>
|
||||||
* @param enabled
|
* @param enabled
|
||||||
* @throws Exception if enabled is null
|
|
||||||
*/
|
*/
|
||||||
public void setEnabled(Boolean enabled) throws Exception {
|
public void setEnabled(boolean enabled) {
|
||||||
if(enabled == null) throw new Exception("Cannot set enabled to null");
|
|
||||||
this.enabled = enabled;
|
this.enabled = enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user