Skip to content

Adding Snippets has errors #2413

Closed
Closed

Description

@michaelbausor

script: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/utilities/add_snippets_to_file.py

  1. Method signature with @nullable does not work.
    Fix:
    At this line in add_snippets_to_file.py#L99, replace the existing:
    ',\s+'.join(['(final\s+)?{}\s+{}'.format(
    with this:
    ',\s+'.join(['(@nullable\s+)?(final\s+)?{}\s+{}'.format(

  2. for all single line comments, the script either fails (when its the last method in the file) or appends javadocs to the successive method.

example:
/** some javadoc */
public String method ( String args );

Activity

  1. added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Sep 7, 2017
  2. added
    type: processA process-related concern. May include testing, release, or the like.
    on Jan 24, 2018
  3. yihanzhen commented on Feb 2, 2018

    @yihanzhen
    Contributor

    @pongad It seems your PR will resolve this issue, so I am giving this to you.

  4. added a commit that references this issue on Jul 9, 2018
  5. pongad commented on Jul 10, 2018

    @pongad
    Contributor

    Should be fixed by #2838.

  6. added a commit that references this issue on Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🚨 criticalP0 critical issue. Requires immediate fixpriority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.type: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions