From: <aki...@us...> - 2008-07-25 20:38:53
|
Revision: 4441 http://gridarta.svn.sourceforge.net/gridarta/?rev=4441&view=rev Author: akirschbaum Date: 2008-07-25 20:39:01 +0000 (Fri, 25 Jul 2008) Log Message: ----------- Add private constructors to utility classes. Modified Paths: -------------- trunk/crossfire/src/cfeditor/ResourceFileManager.java trunk/daimonin/src/daieditor/ResourceFileManager.java trunk/src/app/net/sf/gridarta/gameobject/scripts/ScriptedEventEditor.java trunk/src/app/net/sf/gridarta/gui/ReplaceDialogManager.java trunk/src/app/net/sf/gridarta/spells/XMLSpellLoader.java Modified: trunk/crossfire/src/cfeditor/ResourceFileManager.java =================================================================== --- trunk/crossfire/src/cfeditor/ResourceFileManager.java 2008-07-25 20:37:10 UTC (rev 4440) +++ trunk/crossfire/src/cfeditor/ResourceFileManager.java 2008-07-25 20:39:01 UTC (rev 4441) @@ -37,4 +37,10 @@ public static final String DEFAULT_SCRIPT_DIR = "script"; + /** + * Private constructor to prevent instantiation. + */ + private ResourceFileManager() { + } + } // class ResourceFileManager Modified: trunk/daimonin/src/daieditor/ResourceFileManager.java =================================================================== --- trunk/daimonin/src/daieditor/ResourceFileManager.java 2008-07-25 20:37:10 UTC (rev 4440) +++ trunk/daimonin/src/daieditor/ResourceFileManager.java 2008-07-25 20:39:01 UTC (rev 4441) @@ -41,4 +41,10 @@ public static final String DEFAULT_MEDIA_DIR = "../client/media"; + /** + * Private constructor to prevent instantiation. + */ + private ResourceFileManager() { + } + } // class ResourceFileManager Modified: trunk/src/app/net/sf/gridarta/gameobject/scripts/ScriptedEventEditor.java =================================================================== --- trunk/src/app/net/sf/gridarta/gameobject/scripts/ScriptedEventEditor.java 2008-07-25 20:37:10 UTC (rev 4440) +++ trunk/src/app/net/sf/gridarta/gameobject/scripts/ScriptedEventEditor.java 2008-07-25 20:39:01 UTC (rev 4441) @@ -57,6 +57,12 @@ private static JDialog pathFrame; /** + * Private constructor to prevent instantiation. + */ + private ScriptedEventEditor() { + } + + /** * Opens the script pad to display a script. * @param scriptPath the script path */ Modified: trunk/src/app/net/sf/gridarta/gui/ReplaceDialogManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/ReplaceDialogManager.java 2008-07-25 20:37:10 UTC (rev 4440) +++ trunk/src/app/net/sf/gridarta/gui/ReplaceDialogManager.java 2008-07-25 20:39:01 UTC (rev 4441) @@ -13,6 +13,12 @@ private static ReplaceDialog<?, ?, ?, ?> instance = null; /** + * Private constructor to prevent instantiation. + */ + private ReplaceDialogManager() { + } + + /** * Returns whether this frame has been fully built. * @return <code>true</code> if this frame has been fully built, otherwise * <code>false</code> Modified: trunk/src/app/net/sf/gridarta/spells/XMLSpellLoader.java =================================================================== --- trunk/src/app/net/sf/gridarta/spells/XMLSpellLoader.java 2008-07-25 20:37:10 UTC (rev 4440) +++ trunk/src/app/net/sf/gridarta/spells/XMLSpellLoader.java 2008-07-25 20:39:01 UTC (rev 4441) @@ -39,6 +39,12 @@ private static final Logger log = Logger.getLogger(XMLSpellLoader.class); /** + * Private constructor to prevent instantiation. + */ + private XMLSpellLoader() { + } + + /** * Load an XML spell definitions file. * @param baseDir The base directory of <code>filename</code>. * @param filename The file name of the spell definitions file. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |