Skip to content

The Nullless example uses null, implicitly (Nitpicking for fun) #9

@dylan-chong

Description

@dylan-chong

The field:

final Constrain<? super T> constrain;

is set to null implicitly since it is not set to anything, and the method:

Constrain<? super T> getConstrain() {
    return constrain;
  }

returns null... so perhaps it shouldn't be called 'Nullless'. It also means 'Nullless' exploits the same bug in the same way as 'Unsound.java in Java 8'.

Just saying! :P

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions