macgregor/alexandria

View on GitHub
alexandria-core/src/main/java/com/github/macgregor/alexandria/AlexandriaConvert.java

Summary

Maintainability
A
0 mins
Test Coverage

Rename "context" which hides the field declared at line 37.
Open

        batchProcess.execute(context -> context.config().metadata().get(), (context, metadata) -> {

Overriding or shadowing a variable declared in an outer scope can strongly impact the readability, and therefore the maintainability, of a piece of code. Further, it could lead maintainers to introduce bugs because they think they're using one variable but are really using another.

Noncompliant Code Example

class Foo {
  public int myField;

  public void doSomething() {
    int myField = 0;
    ...
  }
}

See

Rename "context" which hides the field declared at line 37.
Open

        }, (context, exceptions) -> {

Overriding or shadowing a variable declared in an outer scope can strongly impact the readability, and therefore the maintainability, of a piece of code. Further, it could lead maintainers to introduce bugs because they think they're using one variable but are really using another.

Noncompliant Code Example

class Foo {
  public int myField;

  public void doSomething() {
    int myField = 0;
    ...
  }
}

See

Rename "context" which hides the field declared at line 37.
Open

        batchProcess.execute(context -> context.config().metadata().get(), (context, metadata) -> {

Overriding or shadowing a variable declared in an outer scope can strongly impact the readability, and therefore the maintainability, of a piece of code. Further, it could lead maintainers to introduce bugs because they think they're using one variable but are really using another.

Noncompliant Code Example

class Foo {
  public int myField;

  public void doSomething() {
    int myField = 0;
    ...
  }
}

See

There are no issues that match your filters.

Category
Status