Coder Social home page Coder Social logo

netio's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar rynr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

netio's Issues

Findbugs: Dereference of the result of readLine() without nullcheck

The result of invoking readLine() is dereferenced without checking to see if the result is null. If there are no more lines of text to read, readLine() will return null and dereferencing that will generate a null pointer exception.

Dereference of the result of readLine() without nullcheck in org.rjung.netio.NetworkSwitch.loginConnect() lineNumber 126
Dereference of the result of readLine() without nullcheck in org.rjung.netio.NetworkSwitch.loginSendCredentials() lineNumber 99

Findbugs: Reliance on default encoding

Found a call to a method which will perform a byte to String (or String to byte) conversion, and will assume that the default platform encoding is suitable. This will cause the application behaviour to vary between platforms. Use an alternative API and specify a charset name or Charset object explicitly.

Found reliance on default encoding in org.rjung.netio.NetworkSwitch.getPassword(): String.getBytes() lineNumber 113
Found reliance on default encoding in org.rjung.netio.NetworkSwitch.loginConnect(): new java.io.InputStreamReader(InputStream) lineNumber 121
Found reliance on default encoding in org.rjung.netio.NetworkSwitch.loginConnect(): new java.io.OutputStreamWriter(OutputStream) lineNumber 123

Use default Logger

As a developer
*I want" to have standard logging
So that I don't need to think about dependency updates.

Acceptance Criteria

  • The project does not have a library dependency for logging

Findbugs: Method invokes toString() method on a String

Calling String.toString() is just a redundant operation. Just use the String.

org.rjung.netio.NetworkSwitch.loginConnect() invokes toString() method on a String lineNumber 126
org.rjung.netio.NetworkSwitch.loginSendCredentials() invokes toString() method on a String lineNumber 99

Use the http-interface of netio

This plugin currently uses the telnet-interface to the netio-module.
To not take care of the network-connection, it's probably more reliable to use a http-interface.

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.