Add deprecated annotation to potentially dangerous method

This commit is contained in:
Óscar González Fernández 2010-10-01 00:46:32 +02:00
parent f419a6d38c
commit 66253cbbea

View file

@ -187,6 +187,10 @@ public abstract class DayAssignment extends BaseEntity {
this.resource = resource;
}
/**
* @deprecated Use {@link #getDuration()}
*/
@Deprecated
public int getHours() {
return duration.getHours();
}