Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup event generics #27

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/plugins/WebOfTrust/EventSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@
* is about.
*/
public interface EventSource extends Cloneable, Serializable {

/** {@inheritDoc} */
public EventSource clone(); // Override because it is not public in class Object.

/**
* Provides a clone of this event source. Implementations must return {@code this.clone()}.
*/
public EventSource cloned();

/**
* When a {@link Notification} about an {@link EventSource} is being deployed to a
Expand Down
8 changes: 7 additions & 1 deletion src/plugins/WebOfTrust/Identity.java
Original file line number Diff line number Diff line change
Expand Up @@ -1005,8 +1005,14 @@ public Identity clone() {
throw new IllegalStateException(e);
}
}


/**
* @see Identity#clone()
*/
@Override
public Identity cloned() {
return clone();
}

/**
* Stores this identity in the database without committing the transaction
Expand Down
8 changes: 8 additions & 0 deletions src/plugins/WebOfTrust/Score.java
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,14 @@ public Score clone() {
return clone;
}

/**
* @see Score#clone()
*/
@Override
public Score cloned() {
return clone();
}

@Override
public void startupDatabaseIntegrityTest() throws Exception {
activateFully();
Expand Down
Loading