Skip to content

Commit 8fcc317

Browse files
author
Nathaniel Graham
committed
Add explicit implementation of Cloneable
Added Cloneable to the implemented interface list as per Coverity suggestion. The required methods were already implemented, but it was not explicitly stated. This is an intent revealing change. Signed-off-by: Nathaniel Graham <[email protected]>
1 parent 6f6c01e commit 8fcc317

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ompi/mpi/java/java/Comm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
/**
6666
* The {@code Comm} class represents communicators.
6767
*/
68-
public class Comm implements Freeable
68+
public class Comm implements Freeable, Cloneable
6969
{
7070
public final static int TYPE_SHARED = 0;
7171
protected final static int SELF = 1;

ompi/mpi/java/java/Datatype.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
/**
5353
* The {@code Datatype} class represents {@code MPI_Datatype} handles.
5454
*/
55-
public final class Datatype implements Freeable
55+
public final class Datatype implements Freeable, Cloneable
5656
{
5757
protected long handle;
5858
protected int baseType;

ompi/mpi/java/java/Info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/**
2424
* This class represents {@code MPI_Info}.
2525
*/
26-
public final class Info implements Freeable
26+
public final class Info implements Freeable, Cloneable
2727
{
2828
protected long handle;
2929
protected static final long NULL = getNull();

0 commit comments

Comments
 (0)