Пример #1
0
 @Override
 protected Object clone() throws TCloneNotSupportedException {
   if (!(this instanceof TCloneable)
       && Platform.getPlatformObject(this).getPlatformClass().getMetadata().getArrayItem()
           == null) {
     throw new TCloneNotSupportedException();
   }
   Object result = Platform.clone(this);
   Platform.getPlatformObject(result).setId(Platform.nextObjectId());
   return result;
 }
Пример #2
0
 @Rename("<init>")
 private void init() {
   Platform.getPlatformObject(this).setId(Platform.nextObjectId());
 }