Skip to content
Snippets Groups Projects
Commit e1154d6a authored by Adam Welc's avatar Adam Welc
Browse files

Vectors should be made shared when required by the use of the copy and not at...

Vectors should be made shared when required by the use of the copy and not at the point of making the copy itself.
parent 3e6906d4
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,6 @@ public final class RComplexVector extends RVector implements RAbstractComplexVec
}
public RComplexVector copyWithNewDimensions(int[] newDimensions) {
this.makeShared();
return RDataFactory.createComplexVector(data, isComplete(), newDimensions);
}
......
......@@ -89,7 +89,6 @@ public final class RDoubleVector extends RVector implements RAbstractDoubleVecto
}
public RDoubleVector copyWithNewDimensions(int[] newDimensions) {
this.makeShared();
return RDataFactory.createDoubleVector(data, isComplete(), newDimensions);
}
......
......@@ -87,7 +87,6 @@ public final class RIntVector extends RVector implements RAbstractIntVector {
}
public RIntVector copyWithNewDimensions(int[] newDimensions) {
this.makeShared();
return RDataFactory.createIntVector(data, isComplete(), newDimensions);
}
......
......@@ -104,7 +104,6 @@ public final class RList extends RVector implements RAbstractVector {
@Override
public RList copyWithNewDimensions(int[] newDimensions) {
this.makeShared();
return RDataFactory.createList(data, newDimensions);
}
......
......@@ -131,7 +131,6 @@ public final class RLogicalVector extends RVector implements RAbstractLogicalVec
@Override
public RLogicalVector copyWithNewDimensions(int[] newDimensions) {
this.makeShared();
return RDataFactory.createLogicalVector(data, isComplete(), newDimensions);
}
......
......@@ -65,7 +65,6 @@ public final class RRawVector extends RVector implements RAbstractRawVector {
}
public RRawVector copyWithNewDimensions(int[] newDimensions) {
this.makeShared();
return RDataFactory.createRawVector(data, newDimensions);
}
......
......@@ -135,7 +135,6 @@ public final class RStringVector extends RVector implements RAbstractStringVecto
@Override
public RStringVector copyWithNewDimensions(int[] newDimensions) {
this.makeShared();
return RDataFactory.createStringVector(data, isComplete(), newDimensions);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment