Skip to content

Add a "default" method modifier #48

@giucal

Description

@giucal

As I'm writing, its absence is also evident in GitHub syntax highlighting:

public interface Reader {
  int readInto(byte[] buf, int n);
  
  default int readInto(byte[] buf) {
    return readInto(buf, buf.length);
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions