@@ -63,8 +63,7 @@ protected IDataMatrix<Data> clone() throws CloneNotSupportedException {
63
63
* Removes id of this matrix form ids list.
64
64
*/
65
65
protected void finalize () throws Throwable {
66
- if (this .id .equals ("" ))
67
- return ;
66
+ if (this .id .equals ("" )) return ;
68
67
DataMatrix .ids .remove (this .id );
69
68
}
70
69
@@ -117,12 +116,9 @@ public String toString() {
117
116
*
118
117
* @return true if both matrixes have same dimension and same data,
119
118
* otherwise returns false.
120
- * @throws NullPointerException
121
- * if given parameter is null.
122
119
*/
123
- public boolean equals (Object obj ) throws NullPointerException {
124
- if (obj == null )
125
- throw new NullPointerException ();
120
+ public boolean equals (Object obj ) {
121
+ if (obj == null ) return false ;
126
122
if (obj instanceof DataMatrix ) {
127
123
try {
128
124
@ SuppressWarnings ("unchecked" )
@@ -726,6 +722,7 @@ public String getId() {
726
722
return new String (this .id );
727
723
}
728
724
725
+ //getData_s magivrad sxva rame unda gavaketo , romelic monacemebs daakopirebs. aman imena am obietis data unda daabrunos.
729
726
public Object [][] getData () {
730
727
//correct will be return this.data and other code should be commented
731
728
Object [][] newData = new Object [this .linedimension ][this .columndimension ];
@@ -744,6 +741,7 @@ public void setData(Data[]... data) throws NullPointerException {
744
741
for (int i = 0 ; i < data .length ; i ++) {
745
742
lengthList .add (data [i ].length );
746
743
}
744
+ //TODO imis magivrad , rom mere maxi davutvalo pirvelive iteraciashive unda davitvalo maxi. am shemtxevashi listis shemnac ar iqneba sachiro
747
745
init (data .length , Collections .max (lengthList ));
748
746
//i think here should be this.data = data;
749
747
//this.fill(data) should be commented.
0 commit comments