Skip to content

Commit f82db8f

Browse files
Treiblesschorlectrueden
authored andcommitted
Return cloned ararys
1 parent 5474d71 commit f82db8f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/org/scijava/ops/matcher/OpRef.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,20 +102,20 @@ public String getName() {
102102

103103
/** Gets the types which the op must match. */
104104
public Type[] getTypes() {
105-
return types;
105+
return types.clone();
106106
}
107107

108108
/**
109109
* Gets the op's output types (one constraint per output), or null for no
110110
* constraints.
111111
*/
112112
public Type[] getOutTypes() {
113-
return outTypes;
113+
return outTypes.clone();
114114
}
115115

116116
/** Gets the op's arguments. */
117117
public Type[] getArgs() {
118-
return args;
118+
return args.clone();
119119
}
120120

121121
/**

0 commit comments

Comments
 (0)