Skip to content

IDE auto-formatting confused by method references (40b1) #279

@processing-bot

Description

@processing-bot

Created by: MichelBillaud

Description

The IDE auto-formatting is confused by method references. Eg

  Predicate<Foo> p = Foo::check;

turns into

::  Predicate<Foo> p = Foocheck;

Steps to reproduce

  1. Start a new sketch with
import java.util.function.Predicate;

class Foo {
  boolean check() {
    return true;
  };
}

void setup() {
  Predicate<Foo> p = Foo::check;
}
  1. Ctrl+T

Environment

  • Processing version: 40b1
  • Operating System and OS version: Linux Debian 10.10
  • Other information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions