Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: array of HashSet<> Date: Sun, 28 Feb 2016 08:38:08 -0500 Organization: Aioe.org NNTP Server Lines: 20 Message-ID: References: NNTP-Posting-Host: ANasIS7Js9OyLQwgloeBLQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:33895 On 2/28/2016 2:44 AM, Roedy Green wrote: > I am not trying to arrange the HashSet fields in order in an array. I > am just trying to do something like this: > > private final HashSet[] hashSets; > hashSets = new HashSet[ filesToProcess.length ]; > I get this error message: > > Warning:(104, 20) java: unchecked conversion > required: java.util.HashSet[] > found: java.util.HashSet[] hashSets = new HashSet[ filesToProcess.length ] should fix that. Arne