Re: java question
Re: java question
- Subject: Re: java question
- From: Johann Werner <email@hidden>
- Date: Mon, 14 Jan 2013 15:49:03 +0100
Hi Ted,
there are many places in Wonder that are correct though not optimal. You could change the code you found to
public NSArray<String> dayList() {
if (dayList == null) {
dayList = new NSArray<String>(
"01","02","03","04","05","06","07","08","09","10",
"11","12","13","14","15","16","17","18","19","20",
"21","22","23","24","25","26","27","28","29","30","31"
);
}
return dayList;
}
and make a pull request :-)
jw
Am 14.01.2013 um 15:29 schrieb Theodore Petrosky <email@hidden>:
> I notice in ERDEditDatePopupCommon.java:
>
> public NSArray dayList() {
> if (dayList == null) {
> dayList = new NSMutableArray(new Object[] {
> "01","02","03","04","05","06","07","08","09","10",
> "11","12","13","14","15","16","17","18","19","20",
> "21","22","23","24","25","26","27","28","29","30","31"
> });
> }
> return dayList;
> }
>
> the array is set up as an array of Objects not Strings. Is there any advantage to using Object as the type. I mean, String inherits from Object, so why?
>
> Ted
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >java question (From: Theodore Petrosky <email@hidden>) |