Update of /var/cvs/src/org/mmbase/util
In directory james.mmbase.org:/tmp/cvs-serv24156
Modified Files:
DynamicDate.java
Log Message:
Added some @Deprecated on deprecated methods
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util
Index: DynamicDate.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/util/DynamicDate.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- DynamicDate.java 18 Oct 2008 10:24:26 -0000 1.20
+++ DynamicDate.java 27 Jan 2009 18:04:51 -0000 1.21
@@ -151,63 +151,63 @@
return false;
}
}
- public int getDate() {
+ @Deprecated public int getDate() {
return evalDate().getDate();
}
- public int getDay() {
+ @Deprecated public int getDay() {
return evalDate().getDay();
}
- public int getHours() {
+ @Deprecated public int getHours() {
return evalDate().getHours();
}
- public int getMinutes() {
+ @Deprecated public int getMinutes() {
return evalDate().getMinutes();
}
- public int getMonth() {
+ @Deprecated public int getMonth() {
return evalDate().getMonth();
}
- public int getSeconds() {
+ @Deprecated public int getSeconds() {
return evalDate().getSeconds();
}
public long getTime() {
return evalDate().getTime();
}
- public int getTimezoneOffset() {
+ @Deprecated public int getTimezoneOffset() {
return evalDate().getTimezoneOffset();
}
- public int getYear() {
+ @Deprecated public int getYear() {
return evalDate().getYear();
}
public int hashCode() {
return date.hashCode();
}
- public void setDate(int date) {
+ @Deprecated public void setDate(int date) {
throw new UnsupportedOperationException("Cannot set date in dynamic
date");
}
- public void setHours(int hours) {
+ @Deprecated public void setHours(int hours) {
throw new UnsupportedOperationException("Cannot set date in dynamic
date");
}
- public void setMinutes(int minutes) {
+ @Deprecated public void setMinutes(int minutes) {
throw new UnsupportedOperationException("Cannot set date in dynamic
date");
}
- public void setMonth(int month) {
+ @Deprecated public void setMonth(int month) {
throw new UnsupportedOperationException("Cannot set date in dynamic
date");
}
- public void setSeconds(int seconds) {
+ @Deprecated public void setSeconds(int seconds) {
throw new UnsupportedOperationException("Cannot set date in dynamic
date");
}
- public void setTime(long time) {
+ @Deprecated public void setTime(long time) {
throw new UnsupportedOperationException("Cannot set date in dynamic
date");
}
- public void setYear(int year) {
+ @Deprecated public void setYear(int year) {
throw new UnsupportedOperationException("Cannot set date in dynamic
date");
}
- public String toGMTString() {
+ @Deprecated public String toGMTString() {
return evalDate().toGMTString();
}
- public String toLocaleString() {
+ @Deprecated public String toLocaleString() {
return evalDate().toLocaleString();
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs