On Mon, Mar 28, 2011 at 17:39, Sergiu Dumitriu <sergiu(a)xwiki.com> wrote:
On 03/28/2011 12:17 PM, tmortagne (SVN) wrote:
Author: tmortagne
Date: 2011-03-28 12:17:12 +0200 (Mon, 28 Mar 2011)
New Revision: 36061
Modified:
platform/core/branches/xwiki-core-3.0/xwiki-core/src/main/java/com/xpn/xwiki/api/Document.java
Log:
XWIKI-6191: String based user related API on Document can return null
Modified:
platform/core/branches/xwiki-core-3.0/xwiki-core/src/main/java/com/xpn/xwiki/api/Document.java
===================================================================
---
platform/core/branches/xwiki-core-3.0/xwiki-core/src/main/java/com/xpn/xwiki/api/Document.java
2011-03-28 10:16:18 UTC (rev 36060)
+++
platform/core/branches/xwiki-core-3.0/xwiki-core/src/main/java/com/xpn/xwiki/api/Document.java
2011-03-28 10:17:12 UTC (rev 36061)
@@ -357,7 +357,7 @@
*/
public String getAuthor()
{
To avoid calling a deprecated method, why don't you use
return StringUtils.defaultString(this.compactWiki....)
i don't see the point of having to take care of retro compatibility
issue is two different places if i don't need to.
- return
this.compactWikiEntityReferenceSerializer.serialize(this.doc.getAuthorReference());
+ return this.doc.getAuthor();
}
/**
@@ -368,7 +368,7 @@
*/
public String getContentAuthor()
{
- return
this.compactWikiEntityReferenceSerializer.serialize(this.doc.getContentAuthorReference());
+ return this.doc.getContentAuthor();
}
/**
@@ -417,7 +417,7 @@
*/
public String getCreator()
{
- return
this.compactWikiEntityReferenceSerializer.serialize(this.doc.getCreatorReference());
+ return this.doc.getCreator();
}
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne