Skip to content

Add a copy constructor for BibEntry #13613

@InAnYan

Description

@InAnYan

Is your suggestion for improvement related to a problem? Please describe.

Using Cloneable is the old way in Java. Nowadays, you should use either a copy constructor or a factory method.

Describe the solution you'd like

Implement a copy constructor for BibEntry:

public class BibEntry /* implements Cloneable - remove */ {
    ...
    public BibEntry(BibEntry other) {
        ...
    }
    ...
}

Additional context

You will also need to find where .clone() were used and change the code to use the new constructor

Metadata

Metadata

Assignees

No fields configured for feature.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions