+ 3

Java Deprecated

Terminated code/JavaResumeExp.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

8th Oct 2020, 5:51 AM
Jonnalagadda Kedharnadh
Jonnalagadda Kedharnadh - avatar
5 Réponses
+ 4
By adding @Deprecated at starting In your code we can sole it
8th Oct 2020, 6:34 AM
Jonnalagadda Kedharnadh
Jonnalagadda Kedharnadh - avatar
8th Oct 2020, 6:21 AM
Jonnalagadda Kedharnadh
Jonnalagadda Kedharnadh - avatar
+ 4
Kedharnadh , @Deprecated annotation won't solve the problem but just hide it. Problem will still be ther, it's juet that compiler won't complain about it. Othe classes that use your class will show the same warning for using deprecated api. @SuppressWarnings("deprecated") is more suitable here than @Deprecated. Read the docs and use the alternative ways to solve problem instead of just hiding the problem.
8th Oct 2020, 6:47 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 3
You are using deprecated methods. Read the docs. It mentions reason for deprecation: https://docs.oracle.com/javase/7/docs/technotes/guides/concurrency/threadPrimitiveDeprecation.html
8th Oct 2020, 6:29 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 2
Where is your code? Link it in description.
8th Oct 2020, 6:19 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar