-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Subclass.cs ... bug or useless line of code?
PostPosted: Mon Jul 18, 2005 2:23 pm 
when compiling NHibernate against .net 2.0 it threw this warning:

Warning 8 Assignment made to same variable; did you mean to assign something else? C:\Jim\Visual Studio 2005\Projects\NHibernate\src\NHibernate\Mapping\Subclass.cs 58 10 NHibernate-1.1


public override PersistentClass Superclass
{
get { return superclass; }
set { this.superclass = superclass; } <---- this right here
}


perhaps its supposed to be "= value". if its not supposed to be settable, then why not just leave the body empty?


Top
  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 12:47 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
yes it's a bug, thanks for reporting it


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.