powered by Jive Software

Add two static final members to Bookmarks.java

Dear Smack Team,

When I am implementing the Bookmarks JEP provided by SMACK,

I found it would be very convient to define the following two static members

to facilitate getting the Bookmarks private data through the PrivateDataManager.

public final static String ELEMENT_NAME = “storage”;

public final static String NAME_SPACE = “storage:bookmarks”;

I think it is easier to understand and program using this one:

Bookmarks bookmarks = (Bookmarks) privateDataManager.getPrivateData(

Bookmarks .ELEMENT_NAME,

Bookmarks .NAME_SPACE);

Than this one:

Bookmarks bookmarks = (Bookmarks) privateDataManager.getPrivateData(

“storage”,

“storage:bookmarks”);

It is really trivial but it does make the program more readable.

Regards,

– Scott