Code Monkey home page Code Monkey logo

Comments (5)

eamonnmcmanus avatar eamonnmcmanus commented on June 24, 2024

I went back and looked at the change that introduced these index numbers, and found this from @ronshapiro in the review comments: "I didn't include the actual parameter name for Proguard obfuscation reasons." (cl/126078797 for those who have access.) I wonder if we could do something similar to AutoValue, which has a -A option you can use if you don't want identifiers in the generated code. We'd have to reverse the polarity here, though, since presumably there is lots of Android code that would suddenly get much bigger. Or it could be a new boolean element inside @AutoFactory.

At Google we have @AutoFactory methods with 80 parameters, so telling you that parameter 43 was null isn't all that helpful.

Anyway I think we could at least add text like "first argument is 1" to the message.

from auto.

eamonnmcmanus avatar eamonnmcmanus commented on June 24, 2024

Probably just saying "Argument number 1" rather than "Argument index 1" would be enough for the rewording? We often index from 0, but we don't usually number things from 0.

[I'm trying not to be bothered by the wording of the rest of the message. The argument is null, but it's the parameter that is @Nullable.]

from auto.

mhansen avatar mhansen commented on June 24, 2024

from auto.

ronshapiro avatar ronshapiro commented on June 24, 2024

I think "number 1" is also probably a source of confusion, though possibly less. I vote for adding the start index/number is best. Or something like argument 1 of 7

from auto.

mhansen avatar mhansen commented on June 24, 2024

from auto.

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.