Skip to content

RuntimeUtils.rt and initialized field should be final (and private / removed?) #26

@Marcono1234

Description

@Marcono1234

The RuntimeUtils class has the public fields rt and loaded:

public static Runtime rt = Runtime.INSTANCE;

public static boolean loaded = false;

These field should likely be final to prevent users from reassigning them.
And maybe rt should also be private (or be completely removed) because having two fields providing the same instance might be irritating.

Also note that RuntimeUtils should have an explicit private constructor because it currently has a public default constructor.

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