Java Immutable Builder classes not detected by IntelliJ

Viewed 1276

I keep on wondering why IntelliJ cannot detect the classes which are auto-generated by Immutables:

enter image description here

The code for the RemoteEntityACL is this:

@Value.Immutable
@Value.Style(visibility = Value.Style.ImplementationVisibility.PRIVATE)
public interface RemoteEntityACL extends Serializable {
  @Nullable
  @Value.Default
  default List<String> read() {
    return new LinkedList<>();
  }

  @Nullable
  @Value.Default
  default List<String> write() {
    return new ArrayList<>();
  }

  @Nullable
  @Value.Default
  default Boolean publicRead() {
    return false;
  }

  @Nullable
  @Value.Default
  default Boolean publicWrite() {
    return false;
  }

  @Nullable
  @Value.Default
  default List<RemotePropertyACL> propertyACLs() {
    return new ArrayList<>();
  }
}

What could be wrong here?

1 Answers

Updating to latest version should help fix this:

<dependency>
   <groupId>org.immutables</groupId>
   <artifactId>value</artifactId>
   <version>2.8.8</version>
</dependency>
Related