Article View: borland.public.jbuilder.java.language
Article #596Re: The static method readURL(String) from the type URLReader should be accessed in a static way
From: Lori M Olson [TeamB]
Date: Tue, 22 Mar 2005 23:23
Date: Tue, 22 Mar 2005 23:23
41 lines
2198 bytes
2198 bytes
Scott Powell wrote:
> I get the cited warning message in a project I'm working on.
>
> URLReader's signature is public static String readURL(URL url)
>
> And indeed the method that calls it is not static.
>
> But I don't really understand why it would generate a warning or how one
> could solve it.
>
> The readURL method only uses local variables (and the parameter) so it
> doesn't need to not be static (if I understand when static gets used).
>
> Full method is below.
>
> Thanks
> Scott
>
> public static String readURL(URL url){
To answer the question I *need* to see the code that calls it.
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID:
<4240a90c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newshosting.com!nx02.iad01.newshosting.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4240a17f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,6574813dc04e4e07 X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 22 Mar 2005 16:23:56 -0700 From: "Lori M Olson [TeamB]" <javadragon@techie.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax;nscd1) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: The static method readURL(String) from the type URLReader should be accessed in a static way References: <4240a17f$1@newsgroups.borland.com> In-Reply-To: <4240a17f$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.179.181.200 Message-ID: <4240a90c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111533836 142.179.181.200 (22 Mar 2005 15:23:56 -0800) Lines: 41 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newshosting.com!nx02.iad01.newshosting.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail