Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99699

Visual Studio Code Java: Disable serialVersionUID warning

$
0
0

I'm taking a Computer Science class where the assignment boilerplate code is a Java framework where most of the classes (or their superclasses) extend Serializable. What ends up happening then is VSCode complains to me that

The serializable class [insert class name here] does not declare a static final serialVersionUID field of type long"

for nearly all the starting code. I know in other IDEs such as IntelliJ and Eclipse, this specific warning can be suppressed for all Java projects. What would be the equivalent operation in VSCode? I have the Language Support for Java package installed.

The following are reasons why I cannot declare a serialVersionUID or use @SuppressWarnings:

  1. This would force me to modify code which I am not allowed to modify. The prof only wants students to implement certain areas of the framework.

  2. I would need to make these changes to about 30 classes which is less than ideal.


Viewing all articles
Browse latest Browse all 99699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>