Comments (6)
Most likely than not, none of those needs to be Serializable
. I think we can remove those implements
and see what breaks. Either you will get a compile error, or a brand new SE_BAD_FIELD
report somewhere else on the chain.
The only of those that seems to have any reason to be Serializable
is BugInstance
due to the cloud plugins, but that is gone now, so it's most likely useless.
from spotbugs.
maybe BugInstance was for cloud? no idea
from spotbugs.
I've been looking into this, it seems to stem down from the fact that MainFrame
, as an awt component, is Seralizable
.
AWT serialization is not used. It's mainly intended for Applets (not our case) and may be used for a sort-of prevalence, but it's not our intended use case either.
We should probably just mark those fields as transient
on MainFrame
, implement readObject
with something along the lines:
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
// re-init non-serializable fields
logger = new ConsoleLogger(this);
backgroundExecutor = Executors.newCachedThreadPool();
mainFrameInitialized = new CountDownLatch(1);
....
}
from spotbugs.
i think you can just rip it all out with impunity
from spotbugs.
Yeah, that could also be, but we would have to suppress the SE_BAD_FIELD
warnings on the awt compontents.
@ThrawnCA will you take this over now or shall someone else do it?
from spotbugs.
Resolved on #85
from spotbugs.
Related Issues (20)
- SE_NO_SERIALVERSIONID with Serializable records HOT 3
- `java -jar /path/to/spotbugs/lib/spotbugs.jar -version` returns nothing HOT 2
- False Positive: RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE HOT 3
- Can't use the spotbugs. LinkageError HOT 2
- Task spotbugsMain NO-SOURCE HOT 2
- Combine `-high` with an include filter HOT 2
- Replace AWT-based GUI HOT 8
- after update to 4.8.3.0 Exception analyzing using detector edu.umd.cs.findbugs.detect.FieldItemSummary HOT 6
- Nightly builds do not deploy Eclipse plugin anymore HOT 14
- java.sql.Statement enquoteIdentifer and enquoteLiteral HOT 4
- False positives for try-with-resources (NP_LOAD_OF_KNOWN_NULL_VALUE, RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE)
- False-positive MC_OVERRIDABLE_METHOD_CALL_IN_CONSTRUCTOR for method reference HOT 1
- SBSC_USE_STRINGBUFFER_CONCATENATION no longer reported in Eclipse plug-in since version 4.7.3 HOT 3
- Sonar run from master fails with java 11 HOT 2
- Support for @NotNullByDefault HOT 12
- Scanning code via Bamboo rendors error for new UAT sonarqube 9.9.3 HOT 3
- checkstyle requires jdk 11 while sonar9.9.2 requires jdk 17 HOT 1
- Crash in Sonarqube analysis HOT 5
- `DLS_DEAD_LOCAL_STORE` false positives for Hibernate enhanced entities HOT 1
- Treat `@PostConstruct` methods as constructors for `UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spotbugs.