File tree Expand file tree Collapse file tree
object/src/main/java/com/orientechnologies/orient/object/db Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626import com .orientechnologies .orient .core .db .object .OLazyObjectListInterface ;
2727import com .orientechnologies .orient .core .db .object .OLazyObjectMultivalueElement ;
2828import com .orientechnologies .orient .core .db .record .ODatabaseRecord ;
29+ import com .orientechnologies .orient .core .db .record .OIdentifiable ;
2930import com .orientechnologies .orient .core .id .ORID ;
3031import com .orientechnologies .orient .core .record .ORecord ;
31- import com .orientechnologies .orient .core .record .ORecordInternal ;
32- import com .orientechnologies .orient .core .record .impl .ODocument ;
3332
3433@ Deprecated
3534@ SuppressWarnings ({ "unchecked" })
@@ -246,15 +245,8 @@ private void convert(final int iIndex) {
246245
247246 final ODatabaseRecord database = ODatabaseRecordThreadLocal .INSTANCE .get ();
248247
249- if (o != null ) {
250- ODocument doc = new ODocument ();
251- if (o instanceof ORID ) {
252- doc = database .load ((ORID ) o , fetchPlan );
253- } else if (o instanceof ODocument ) {
254- doc = (ODocument ) o ;
255- }
256- list .set (iIndex , (TYPE ) database .getUserObjectByRecord ((ORecordInternal <?>) o , fetchPlan ));
257- }
248+ if (o != null && o instanceof OIdentifiable )
249+ list .set (iIndex , (TYPE ) database .getUserObjectByRecord (((OIdentifiable ) o ).getRecord (), fetchPlan ));
258250 }
259251
260252 @ Override
You can’t perform that action at this time.
0 commit comments