Subversion Repository Public Repository

litesoft

Diff Revisions 916 vs 917 for /trunk/Java/core/Anywhere/src/org/litesoft/mementobeansupport/AbstractAttributeProxy.java

Diff revisions: vs.
  @@ -49,7 +49,7 @@
49 49 return castV( this );
50 50 }
51 51 V zClone = copy();
52 - zClone.mRepeating = true;
52 + castBase( zClone ).mRepeating = true;
53 53 return zClone;
54 54 }
55 55
  @@ -83,7 +83,7 @@
83 83 return castV( this );
84 84 }
85 85 V zClone = copy();
86 - zClone.mValue = pValue;
86 + castBase( zClone ).mValue = pValue;
87 87 return zClone;
88 88 }
89 89
  @@ -112,7 +112,7 @@
112 112 return castV( this );
113 113 }
114 114 V zClone = copy();
115 - zClone.mValue = makeImmutable( pValue );
115 + castBase( zClone ).mValue = makeImmutable( pValue );
116 116 return zClone;
117 117 }
118 118
  @@ -150,7 +150,7 @@
150 150 public final boolean equals( Object obj )
151 151 {
152 152 return (this == obj) || //
153 - ((obj != null) && (this.getClass() == obj.getClass()) && EqualSupport.equal( this.mValue, castV( obj ).mValue ));
153 + ((obj != null) && (this.getClass() == obj.getClass()) && EqualSupport.equal( this.mValue, ((AbstractAttributeProxy)obj).mValue ));
154 154 }
155 155
156 156 @Override
  @@ -278,6 +278,11 @@
278 278
279 279 abstract protected V copy();
280 280
281 + protected final AbstractAttributeProxy castBase( V pV )
282 + {
283 + return (AbstractAttributeProxy) pV;
284 + }
285 +
281 286 @SuppressWarnings({"unchecked"})
282 287 protected final V castV( Object o )
283 288 {