Coder Social home page Coder Social logo

Comments (4)

k3p7i3 avatar k3p7i3 commented on July 22, 2024 2

@volodya-lombrozo it seems i found the cause of the problem - in the end of HasMethod.java there is a nested static class with static Stream<String> checks() method, and qulice take into account all method declarations named as checks(). I'll see what i can do about it.

    private static final class HasLabel {

        /**
         * Checks of label.
         * @param root Root Method XPath.
         * @return List of XPaths to check.
         */
        static Stream<String> checks(final String root) {
            return Stream.of(
                String.format(
                    "%s/o[@base='seq']/o[@base='tuple']/o[@base='label' and @data='bytes']/@data",
                    root
                )
            );
        }
    }

from qulice.

pnatashap avatar pnatashap commented on July 22, 2024 1

Rule AvoidAccessToStaticMembersViaThis get all methods from the file, not from the class body. It is the reason for bug.
Will ask in pmd how to avoid warning messages and will fix the rule to get only current class methods

from qulice.

volodya-lombrozo avatar volodya-lombrozo commented on July 22, 2024

BTW, using @SuppressWarnings("PMD.AvoidAccessToStaticMembersViaThis") helps to avoid the qulice complaint.

from qulice.

volodya-lombrozo avatar volodya-lombrozo commented on July 22, 2024

@yegor256 Could you help here, please?

from qulice.

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.