SquirrelJME/SquirrelJME

View on GitHub

Showing 132 of 203 total issues

Method nextEntry has a Cognitive Complexity of 38 (exceeds 24 allowed). Consider refactoring.
Open

    @Override
    public ZipStreamEntry nextEntry()
        throws IOException
    {
        /* {@squirreljme.error BF0z An entry is currently being read, it

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method sqrt has a Cognitive Complexity of 38 (exceeds 24 allowed). Consider refactoring.
Open

    @ImplementationNote("Source: http://www.netlib.org/fdlibm/e_sqrt.c")
    public static strictfp double sqrt(double __v)
    {
        double z;
        int uur, uut1, uus1, uuix1, uuq1;

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method byteToChar has 137 lines of code (exceeds 100 allowed). Consider refactoring.
Open

    public static char byteToChar(int __b)
        throws IllegalArgumentException
    {
        /* {@squirreljme.error BF01 Byte index is not within bounds.
        (The byte)} */
Severity: Major
Found in modules/zip/src/main/java/net/multiphasicapps/zip/IBM437CodePage.java - About 2 hrs to fix

    Method __context has 137 lines of code (exceeds 100 allowed). Consider refactoring.
    Open

        private boolean __context(JDWPHostController __controller, Object __thread,
            JDWPEventModifierContext __context, Object __on, Object[] __ensnare)
            throws NullPointerException
        {
            if (__controller == null || __context == null)

      Method poll has a Cognitive Complexity of 37 (exceeds 24 allowed). Consider refactoring.
      Open

          @SuppressWarnings("SynchronizationOnLocalVariableOrMethodParameter")
          public JDWPPacket poll()
              throws JDWPException
          {
              // If the handshake did not happen, do it now

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Method read has a Cognitive Complexity of 36 (exceeds 24 allowed). Consider refactoring.
      Open

          @Override
          public int read(byte[] __b, int __o, int __l)
              throws IndexOutOfBoundsException, IOException, NullPointerException
          {
              // Check
      Severity: Minor
      Found in modules/io/src/main/java/net/multiphasicapps/io/ZLibDecompressor.java - About 2 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Method runVm has 128 lines of code (exceeds 100 allowed). Consider refactoring.
      Open

          @Override
          public int runVm()
              throws VMException
          {
              ProcessBuilder builder = this.builder;

        Method read has 128 lines of code (exceeds 100 allowed). Consider refactoring.
        Open

            @Override
            public int read()
                throws IOException
            {
                // Lock

          Method asVMObject has a Cognitive Complexity of 35 (exceeds 24 allowed). Consider refactoring.
          Open

              public final Object asVMObject(Object __in, boolean __noclassres)
              {
                  // Null is converted to null
                  if (__in == null)
                      return SpringNullObject.NULL;

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Method putEntry has a Cognitive Complexity of 35 (exceeds 24 allowed). Consider refactoring.
          Open

              public final __BucketMapEntry__<K, V> putEntry(K __k)
              {
                  __BucketMapEntry__<K, V>[][] buckets = this._buckets;
                  int bucketdiv = this._bucketdiv;
                  
          Severity: Minor
          Found in modules/cldc-compact/src/main/java/java/util/__BucketMap__.java - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Method equals has a Cognitive Complexity of 35 (exceeds 24 allowed). Consider refactoring.
          Open

              @Override
              @ImplementationNote("This method considers if the source and target " +
                  "lists are RandomAccess, for more optimized comparison.")
              public boolean equals(Object __o)
              {
          Severity: Minor
          Found in modules/cldc-compact/src/main/java/java/util/AbstractList.java - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Method __undirty has 125 lines of code (exceeds 100 allowed). Consider refactoring.
          Open

              private void __undirty()
              {
                  if (!this._dirty)
                      return;
                      
          Severity: Major
          Found in modules/midp-lcdui/src/main/java/javax/microedition/lcdui/Text.java - About 2 hrs to fix

            Method run has a Cognitive Complexity of 34 (exceeds 24 allowed). Consider refactoring.
            Open

                @SuppressWarnings("ConditionCoveredByFurtherCondition")
                @Override
                public void run()
                {
                    MidiPlayer player = this.player;

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Method runVm has a Cognitive Complexity of 34 (exceeds 24 allowed). Consider refactoring.
            Open

                @Override
                public int runVm()
                    throws VMException
                {
                    ProcessBuilder builder = this.builder;

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Method connect has a Cognitive Complexity of 33 (exceeds 24 allowed). Consider refactoring.
            Open

                @Override
                @SquirrelJMEVendorApi
                public Connection connect(String __part, int __mode, boolean __timeouts,
                    ConnectionOption<?>[] __opts)
                    throws IOException, NullPointerException

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Method poll has a Cognitive Complexity of 33 (exceeds 24 allowed). Consider refactoring.
            Open

                public boolean poll()
                    throws JDWPException
                {
                    // Read in any packets and process them as they come
                    for (JDWPCommLink commLink = this.getCommLink();;)

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Method run has a Cognitive Complexity of 33 (exceeds 24 allowed). Consider refactoring.
            Open

                @Override
                public final void run()
                {
                    List<TimerTask> tasks = this._tasks;
                    
            Severity: Minor
            Found in modules/cldc-compact/src/main/java/java/util/__TimerThread__.java - About 1 hr to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Method rom has a Cognitive Complexity of 33 (exceeds 24 allowed). Consider refactoring.
            Open

                @Override
                public void rom(AOTSettings __aotSettings, RomSettings __settings,
                    OutputStream __out, VMClassLibrary... __libs)
                    throws IOException, NullPointerException
                {

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Method asVMObject has 117 lines of code (exceeds 100 allowed). Consider refactoring.
            Open

                public final Object asVMObject(Object __in, boolean __noclassres)
                {
                    // Null is converted to null
                    if (__in == null)
                        return SpringNullObject.NULL;

              Method __commonPrimitive has 115 lines of code (exceeds 100 allowed). Consider refactoring.
              Open

                  private static JvmPrimitiveType __commonPrimitive(int __op,
                      boolean __second)
                      throws NoSuchElementException
                  {
                      // Second value?
                Severity
                Category
                Status
                Source
                Language