Results 1 to 3 of 3
  1. #1
    Gunaseelan is offline Member
    Join Date
    Jan 2011
    Location
    Chenai
    Posts
    2
    Rep Power
    0

    Default The Local variable is never read

    Hi Friends,
    I am developing a Java Project using Eclipse IDE.
    I am passing two values from a JSP Page to a servlet file.While I declared two variables to get the variables,a warnig shows on that line"The Local variable is never read".

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,953
    Rep Power
    19

    Default

    Which means exactly that.
    For example:
    Java Code:
    private void someMethod() {
        int a = 0;
    }
    This will result in the same error message because, though I am assigning a value to "a" I am not actually doing anything with "a" afterwards.

  3. #3
    Gunaseelan is offline Member
    Join Date
    Jan 2011
    Location
    Chenai
    Posts
    2
    Rep Power
    0

Similar Threads

  1. BUG:local variable is never read
    By luckyleaf95 in forum New To Java
    Replies: 9
    Last Post: 02-03-2010, 08:23 AM
  2. Replies: 2
    Last Post: 12-05-2009, 11:24 AM
  3. Read and draw a local image.
    By ichwar in forum New To Java
    Replies: 1
    Last Post: 07-27-2009, 02:02 PM
  4. How to read xml file located in local system using Java
    By java_kick in forum Advanced Java
    Replies: 2
    Last Post: 04-06-2009, 11:28 PM
  5. Replies: 2
    Last Post: 03-31-2008, 05:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •