yegor256/rehttp

View on GitHub
src/main/java/net/rehttp/base/DyStatus.java

Summary

Maintainability
A
3 hrs
Test Coverage

Method failures has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public Collection<Iterable<Directive>> failures(final long after) {
        return new ListOf<>(
            new Mapped<>(
                item -> DyStatus.xembly(item, false),
Severity: Minor
Found in src/main/java/net/rehttp/base/DyStatus.java - About 1 hr to fix

    Method xembly has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private static Iterable<Directive> xembly(
            final Item item, final boolean full) throws IOException {
            final long time = Long.parseLong(item.get("time").getN());
            final long when = Long.parseLong(item.get("when").getN());
            final long ttl = Long.parseLong(item.get("ttl").getN())
    Severity: Minor
    Found in src/main/java/net/rehttp/base/DyStatus.java - About 1 hr to fix

      Method history has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          @Override
          public Collection<Iterable<Directive>> history(final long after) {
              return new ListOf<>(
                  new Mapped<>(
                      item -> DyStatus.xembly(item, false),
      Severity: Minor
      Found in src/main/java/net/rehttp/base/DyStatus.java - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status