Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2008
    Posts
    13
    Rep Power
    0

    Default how to find if the code contains deprecated API?

    Hi All,

    our team has been assigned to develop a Java code, which parses another .java file and identifies if it contains any deprecated API.

    any pointers how to identify this?

    thanks in advance!

  2. #2
    Join Date
    May 2008
    Posts
    1
    Rep Power
    0

    Default

    When you compile the code using -Xlint:deprecation it will list out the deprecated APIs.

  3. #3
    Join Date
    Apr 2008
    Posts
    13
    Rep Power
    0

    Default

    but this option can be checked from command prompt right? but in case I want to check it in the code itself, something like, I have a code snippet which takes input as a .java file and gives the output as "no of deprecated api's used in this file are: ", how can this be done?

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

Similar Threads

  1. getYear deprecated method
    By ravian in forum New To Java
    Replies: 5
    Last Post: 01-05-2011, 08:50 AM
  2. I need help with a deprecated program
    By mikau in forum New To Java
    Replies: 0
    Last Post: 02-13-2008, 09:34 AM
  3. Using Deprecated Methods
    By ravian in forum New To Java
    Replies: 3
    Last Post: 11-23-2007, 07:58 PM
  4. method size is deprecated
    By oregon in forum New To Java
    Replies: 4
    Last Post: 08-05-2007, 05:59 PM
  5. Replies: 1
    Last Post: 04-26-2007, 03:52 PM

Posting Permissions

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