ease backward compatibility
@@ -354,9 +354,8 @@ public class WikiContext implements Cloneable, Command {
*
* @return The engine owning this context.
*/
- public Engine getEngine()
- {
- return m_engine;
+ public WikiEngine getEngine() {
+ return ( WikiEngine )m_engine;
}
/**
@@ -599,7 +598,7 @@ public class WikiContext implements Cloneable, Command {
* @return A shallow clone of the WikiContext
*/
@Override
- public Object clone() {
+ public WikiContext clone() {
try {
// super.clone() must always be called to make sure that inherited objects
// get the right type
@@ -658,9 +657,8 @@ public class WikiContext implements Cloneable, Command {
*
* @return The Session associated with this context.
*/
- public Session getWikiSession()
- {
- return m_session;
+ public WikiSession getWikiSession() {
+ return ( WikiSession )m_session;
}
/**
