GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [java] AppendCharacterWithChar flags literals in an expression · Issue #2275 · pmd/pmd

[java] AppendCharacterWithChar flags literals in an expression #2275

New issue
Copy link
New issue
Copy link
Closed
#2276
Closed
[java] AppendCharacterWithChar flags literals in an expression#2275
#2276
Copy link
Labels
a:false-positivePMD flags a piece of code that is not problematic
Milestone
6.22.0

Description

@kris-scheibe
kris-scheibe
opened on Feb 9, 2020
Issue body actions

Affects PMD Version: 6.21

Rule: AppendCharacterWithChar

Description: the rule flags String literals, which are part of an expression, such as in StringBuffer.append("X".repeat(5));

Code Sample demonstrating the issue:

public class Foo {
 public void bar(StringBuffer sb, int length) {
  sb.append("a".repeat(length));
 }
}

Running PMD through: Other

Activity

  1. adangel
    added this to the 6.22.0 milestone on Feb 9, 2020
  2. adangel
    added
    a:false-positivePMD flags a piece of code that is not problematic
    has:pr
    on Feb 9, 2020
  3. adangel
    closed this as completedin a020619on Feb 10, 2020
  4. adangel
    closed this as completedin #2276on Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:false-positivePMD flags a piece of code that is not problematic

    Type

    No type

    Projects

    No projects

      Milestone

      • 6.22.0

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.