Return-Path: Delivered-To: apmail-incubator-hama-dev-archive@minotaur.apache.org Received: (qmail 85887 invoked from network); 7 Oct 2010 01:17:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Oct 2010 01:17:24 -0000 Received: (qmail 74692 invoked by uid 500); 7 Oct 2010 01:17:24 -0000 Delivered-To: apmail-incubator-hama-dev-archive@incubator.apache.org Received: (qmail 74653 invoked by uid 500); 7 Oct 2010 01:17:24 -0000 Mailing-List: contact hama-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hama-dev@incubator.apache.org Delivered-To: mailing list hama-dev@incubator.apache.org Received: (qmail 74645 invoked by uid 99); 7 Oct 2010 01:17:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Oct 2010 01:17:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 07 Oct 2010 01:17:23 +0000 Received: (qmail 85872 invoked by uid 99); 7 Oct 2010 01:17:03 -0000 Received: from localhost.apache.org (HELO mail-iw0-f175.google.com) (127.0.0.1) (smtp-auth username edwardyoon, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Oct 2010 01:17:03 +0000 Received: by iwn38 with SMTP id 38so5920iwn.6 for ; Wed, 06 Oct 2010 18:17:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.159.204 with SMTP id k12mr64150ibx.42.1286414222480; Wed, 06 Oct 2010 18:17:02 -0700 (PDT) Received: by 10.231.31.195 with HTTP; Wed, 6 Oct 2010 18:17:02 -0700 (PDT) In-Reply-To: References: Date: Thu, 7 Oct 2010 10:17:02 +0900 Message-ID: Subject: Re: one line patch to fix warning about deprecated method From: "Edward J. Yoon" To: hama-dev@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks. It's filed on HAMA-296. BTW, getLocal() method seem better. On Thu, Oct 7, 2010 at 6:41 AM, Filipe David Manana w= rote: > Hi, > Since it's a 1 line patch to fix a warning, here's the patch: > > > diff --git a/src/java/org/apache/hama/bsp/JobInProgress.java > b/src/java/org/apache/hama/bsp/JobInProgress.java > index e482a81..f799d02 100644 > --- a/src/java/org/apache/hama/bsp/JobInProgress.java > +++ b/src/java/org/apache/hama/bsp/JobInProgress.java > @@ -71,7 +71,7 @@ class JobInProgress { > =C2=A0 =C2=A0 this.jobId =3D jobId; > > =C2=A0 =C2=A0 this.tasks =3D new ArrayList(); > - =C2=A0 =C2=A0this.localFs =3D (LocalFileSystem) FileSystem.getNamed("lo= cal", conf); > + =C2=A0 =C2=A0this.localFs =3D (LocalFileSystem) > FileSystem.get(java.net.URI.create("file:///"), conf); > > =C2=A0 =C2=A0 this.master =3D master; > =C2=A0 =C2=A0 this.status =3D new JobStatus(jobId, 0.0f, 0.0f, JobStatus.= PREP); > > > > cheers > -- > Filipe David Manana, > fdmanana@gmail.com, fdmanana@apache.org > > "Reasonable men adapt themselves to the world. > =C2=A0Unreasonable men adapt the world to themselves. > =C2=A0That's why all progress depends on unreasonable men." > --=20 Best Regards, Edward J. Yoon edwardyoon@apache.org http://blog.udanax.org