Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dr.UgoGagliardelli" Newsgroups: it.comp.java Subject: Re: quesito su java e variabili Date: Sun, 6 Sep 2015 22:17:50 +0200 Organization: Aioe.org NNTP Server Lines: 13 Message-ID: References: NNTP-Posting-Host: 5bRQwmqG5J2GtcZIp6nm/g.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com it.comp.java:8506 Il 06.09.2015 18.35, Vittorio ha scritto: > Se c'è una variabile non usata (benchè assegnata) eclipse con un warning > giallo propone : > > remove variable and all assignaments oppure remove variable,keep > assignaments with side effect > > Che differenza c'è tra i due? A me il risultato è uguale, ad esempio se > rimuovo "r" nella classe : [...] > ottengo sempre con entrambe le opzioni il medesimo risultato: Perche non c'erano side effects.