Add deprecated annotation to potentially dangerous method
This commit is contained in:
parent
f419a6d38c
commit
66253cbbea
1 changed files with 4 additions and 0 deletions
|
|
@ -187,6 +187,10 @@ public abstract class DayAssignment extends BaseEntity {
|
|||
this.resource = resource;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #getDuration()}
|
||||
*/
|
||||
@Deprecated
|
||||
public int getHours() {
|
||||
return duration.getHours();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue