Giter Site home page Giter Site logo

Comments (6)

jsotuyod avatar jsotuyod commented on May 18, 2024

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.

mebigfatguy avatar mebigfatguy commented on May 18, 2024

maybe BugInstance was for cloud? no idea

from spotbugs.

jsotuyod avatar jsotuyod commented on May 18, 2024

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.

mebigfatguy avatar mebigfatguy commented on May 18, 2024

i think you can just rip it all out with impunity

from spotbugs.

jsotuyod avatar jsotuyod commented on May 18, 2024

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.

jsotuyod avatar jsotuyod commented on May 18, 2024

Resolved on #85

from spotbugs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.