Repository: GoogleContainerTools/jib
File: jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerParameters.java (Java)

Code before:
  private ListProperty<String> entrypoint;
  private List<String> extraClasspath = Collections.emptyList();
  private boolean expandClasspathDependencies;
  private final Property<String> mainClass;
  @Nullable private List<String> args;
  private ImageFormat format = ImageFormat.Docker;
  private List<String> ports = Collections.emptyList();
  private List<String> volumes = Collections.emptyList();
  private MapProperty<String, String> labels;
  private String appRoot = "";
  @Nullable private String user;
  @Nullable private String workingDirectory;
  private final Property<String> filesModificationTime;
  private final Property<String> creationTime;

  @Inject
  public ContainerParameters(ObjectFactory objectFactory) {
    labels = objectFactory.mapProperty(String.class, String.class).empty();
    filesModificationTime = objectFactory.property(String.class).convention("EPOCH_PLUS_SECOND");
    creationTime = objectFactory.property(String.class).convention("EPOCH");
    mainClass = objectFactory.property(String.class);
    jvmFlags = objectFactory.listProperty(String.class);
    entrypoint = objectFactory.listProperty(String.class);
  }

  @Input
  @Optional
  public List<String> getEntrypoint() {
    if (System.getProperty(PropertyNames.CONTAINER_ENTRYPOINT) != null) {
      return ConfigurationPropertyValidator.parseListProperty(
          System.getProperty(PropertyNames.CONTAINER_ENTRYPOINT));
    }
    return entrypoint.getOrElse(Collections.emptyList());
  }

  public void setEntrypoint(List<String> entrypoint) {
    this.entrypoint.set(entrypoint);
  }

  public void setEntrypoint(Provider<List<String>> entrypoint) {
    this.entrypoint.set(entrypoint);
  }

  public void setEntrypoint(String entrypoint) {
    this.entrypoint.set(Collections.singletonList(entrypoint));
  }

  @Input
  @Optional
  public List<String> getJvmFlags() {
    String jvmFlagsSystemProperty = System.getProperty(PropertyNames.CONTAINER_JVM_FLAGS);

Review comment (suggestion):
Just a similar concern here for updating nullability for this public getter: https://github.com/GoogleContainerTools/jib/pull/3936#discussion_r1156115328

Code after:
  private ListProperty<String> entrypoint;
  private List<String> extraClasspath = Collections.emptyList();
  private boolean expandClasspathDependencies;
  private final Property<String> mainClass;
  @Nullable private List<String> args;
  private ImageFormat format = ImageFormat.Docker;
  private List<String> ports = Collections.emptyList();
  private List<String> volumes = Collections.emptyList();
  private MapProperty<String, String> labels;
  private String appRoot = "";
  @Nullable private String user;
  @Nullable private String workingDirectory;
  private final Property<String> filesModificationTime;
  private final Property<String> creationTime;

  @Inject
  public ContainerParameters(ObjectFactory objectFactory) {
    labels = objectFactory.mapProperty(String.class, String.class).empty();
    filesModificationTime = objectFactory.property(String.class).convention("EPOCH_PLUS_SECOND");
    creationTime = objectFactory.property(String.class).convention("EPOCH");
    mainClass = objectFactory.property(String.class);
    jvmFlags = objectFactory.listProperty(String.class);
    entrypoint = objectFactory.listProperty(String.class);
  }

  @Input
  @Nullable
  @Optional
  public List<String> getEntrypoint() {
    if (System.getProperty(PropertyNames.CONTAINER_ENTRYPOINT) != null) {
      return ConfigurationPropertyValidator.parseListProperty(
          System.getProperty(PropertyNames.CONTAINER_ENTRYPOINT));
    }
    return entrypoint.getOrNull();
  }

  public void setEntrypoint(List<String> entrypoint) {
    this.entrypoint.set(entrypoint);
  }

  public void setEntrypoint(Provider<List<String>> entrypoint) {
    this.entrypoint.set(entrypoint);
  }

  public void setEntrypoint(String entrypoint) {
    this.entrypoint.set(Collections.singletonList(entrypoint));
  }

  @Input
  @Optional
  public List<String> getJvmFlags() {