Skip to content

Commit 041ea7b

Browse files
author
Thomas Weise
committed
Added Missing ICloneable Interface to _ConstXXX Class Head
1 parent af9e3ef commit 041ea7b

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

src/main/java/org/optimizationBenchmarking/utils/math/functions/compound/_Const1.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* {@link org.optimizationBenchmarking.utils.math.functions.UnaryFunction
2020
* 1-ary} which returns a constant value.
2121
*/
22-
final class _Const1 extends UnaryFunction implements Iterable<Object> {
23-
22+
final class _Const1 extends UnaryFunction
23+
implements Iterable<Object>, ICloneable {
2424
/** the serial version uid */
2525
private static final long serialVersionUID = 1L;
2626

@@ -34,7 +34,7 @@ final class _Const1 extends UnaryFunction implements Iterable<Object> {
3434
* Create the
3535
* {@link org.optimizationBenchmarking.utils.math.functions.compound._Const1}
3636
* , a function which returns a constant value.
37-
*
37+
*
3838
* @param constant
3939
* the instance of {@link java.lang.Number} holding the constant
4040
* value returned by this function

src/main/java/org/optimizationBenchmarking/utils/math/functions/compound/_Const2.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* {@link org.optimizationBenchmarking.utils.math.functions.BinaryFunction
2020
* 2-ary} which returns a constant value.
2121
*/
22-
final class _Const2 extends BinaryFunction implements Iterable<Object> {
23-
22+
final class _Const2 extends BinaryFunction
23+
implements Iterable<Object>, ICloneable {
2424
/** the serial version uid */
2525
private static final long serialVersionUID = 1L;
2626

@@ -34,7 +34,7 @@ final class _Const2 extends BinaryFunction implements Iterable<Object> {
3434
* Create the
3535
* {@link org.optimizationBenchmarking.utils.math.functions.compound._Const2}
3636
* , a function which returns a constant value.
37-
*
37+
*
3838
* @param constant
3939
* the instance of {@link java.lang.Number} holding the constant
4040
* value returned by this function

src/main/java/org/optimizationBenchmarking/utils/math/functions/compound/_Const3.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* {@link org.optimizationBenchmarking.utils.math.functions.TernaryFunction
2020
* 3-ary} which returns a constant value.
2121
*/
22-
final class _Const3 extends TernaryFunction implements Iterable<Object> {
23-
22+
final class _Const3 extends TernaryFunction
23+
implements Iterable<Object>, ICloneable {
2424
/** the serial version uid */
2525
private static final long serialVersionUID = 1L;
2626

@@ -34,7 +34,7 @@ final class _Const3 extends TernaryFunction implements Iterable<Object> {
3434
* Create the
3535
* {@link org.optimizationBenchmarking.utils.math.functions.compound._Const3}
3636
* , a function which returns a constant value.
37-
*
37+
*
3838
* @param constant
3939
* the instance of {@link java.lang.Number} holding the constant
4040
* value returned by this function

src/main/java/org/optimizationBenchmarking/utils/math/functions/compound/_Const4.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
* 4-ary} which returns a constant value.
2121
*/
2222
final class _Const4 extends QuaternaryFunction
23-
implements Iterable<Object> {
24-
23+
implements Iterable<Object>, ICloneable {
2524
/** the serial version uid */
2625
private static final long serialVersionUID = 1L;
2726

@@ -35,7 +34,7 @@ final class _Const4 extends QuaternaryFunction
3534
* Create the
3635
* {@link org.optimizationBenchmarking.utils.math.functions.compound._Const4}
3736
* , a function which returns a constant value.
38-
*
37+
*
3938
* @param constant
4039
* the instance of {@link java.lang.Number} holding the constant
4140
* value returned by this function

src/test/java/codeGen/org/optimizationBenchmarking/utils/math/functions/compound/CompoundFunctionCodeGenerator.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,10 @@ private final void __const(final int m) throws IOException {
16991699
.getSimpleName());
17001700
bw.print(" implements ");//$NON-NLS-1$
17011701
bw.print(Iterable.class.getSimpleName());
1702-
bw.println("<Object> {");//$NON-NLS-1$
1702+
bw.println("<Object>");//$NON-NLS-1$
1703+
bw.print(',');
1704+
bw.print(ICloneable.class.getSimpleName());
1705+
bw.print('{');
17031706

17041707
bw.println();
17051708
bw.println("/** the serial version uid */");//$NON-NLS-1$

0 commit comments

Comments
 (0)