31

I just downloaded the new LWUIT 1.5 and when I compiled my project then I saw in the output trace these lines:

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

I use Sun Java ME SDK 3.0

So how to make the -Xlint recompilation?

5
  • Are you using Obfuscation in your project? Commented Sep 19, 2011 at 13:25
  • @bharath How to know if I use Obfuscation in my project ? Commented Sep 19, 2011 at 13:29
  • Open project properties and look on obfuscation. Commented Sep 19, 2011 at 13:31
  • The obfuscation level is Off. Commented Sep 19, 2011 at 13:45
  • possible duplicate of Compiling issue in NetBeans Commented Jan 21, 2015 at 15:20

3 Answers 3

14

according to comments in older SO question, "-Xlint in NetBeans is set under project properties, run or compile options" - see details here: Compiling issue in NetBeans

There is also a thread at Netbeans forums. They say,

Go to the Compiling section of the Project Properties. These is a check box labeled "Report use of deprecated API". Checking that will turn on -Xlint.

Sign up to request clarification or add additional context in comments.

Comments

4

Implement this code below and outside of compileOptions bracket located in the build.gradle (Module) and implement this code. This should resolve the issue.

    allprojects {
        tasks.withType(JavaCompile){
            options.compilerArgs <<"-Xlint:deprecation"
        }
    }

Comments

-5

Your error will be solved if you replace the deprecated functions. IDEs like Android Studio will show them with squiggly lines, some IDEs will suggest replacements you can easily use.

1 Comment

Hi, this answer lacks details. Please have a look at : stackoverflow.com/help/how-to-answer and edit your post accordingly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.