From: <aki...@us...> - 2006-12-23 22:55:35
|
Revision: 1250 http://svn.sourceforge.net/gridarta/?rev=1250&view=rev Author: akirschbaum Date: 2006-12-23 14:55:29 -0800 (Sat, 23 Dec 2006) Log Message: ----------- Add comment/@NotNull annotation. Modified Paths: -------------- trunk/crossfire/src/cfeditor/CAttribDialog.java trunk/daimonin/src/daieditor/CAttribDialog.java Modified: trunk/crossfire/src/cfeditor/CAttribDialog.java =================================================================== --- trunk/crossfire/src/cfeditor/CAttribDialog.java 2006-12-23 22:46:34 UTC (rev 1249) +++ trunk/crossfire/src/cfeditor/CAttribDialog.java 2006-12-23 22:55:29 UTC (rev 1250) @@ -92,6 +92,7 @@ import net.sf.gridarta.map.MapModel; import net.sf.japi.swing.ActionFactory; import org.apache.log4j.Logger; +import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; /** @@ -123,7 +124,8 @@ private JLabel imagePanel; // panel for object's face (png) - private final GameObject gameObject; + /** The game object being modified. */ + @NotNull private final GameObject gameObject; private final Archetype<GameObject> archetype; @@ -191,7 +193,7 @@ * @param gameObject the GameObject to be displayed by this dialog * @param mainControl main control */ - private CAttribDialog(final CFArchTypeList archTypeList, final GameObject gameObject, final CMainControl mainControl) { + private CAttribDialog(final CFArchTypeList archTypeList, @NotNull final GameObject gameObject, final CMainControl mainControl) { listNr = 0; this.mainControl = mainControl; // reference to the main control Modified: trunk/daimonin/src/daieditor/CAttribDialog.java =================================================================== --- trunk/daimonin/src/daieditor/CAttribDialog.java 2006-12-23 22:46:34 UTC (rev 1249) +++ trunk/daimonin/src/daieditor/CAttribDialog.java 2006-12-23 22:55:29 UTC (rev 1250) @@ -92,6 +92,7 @@ import net.sf.japi.swing.ActionFactory; import static net.sf.japi.util.Arrays2.linearSearch; import org.apache.log4j.Logger; +import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; /** @@ -123,7 +124,8 @@ private JLabel imagePanel; // panel for object's face (png) - private final GameObject gameObject; + /** The game object being modified. */ + @NotNull private final GameObject gameObject; private final Archetype<GameObject> archetype; @@ -191,7 +193,7 @@ * @param gameObject the GameObject to be displayed by this dialog * @param mainControl main control */ - private CAttribDialog(final CFArchTypeList archTypeList, final GameObject gameObject, final CMainControl mainControl) { + private CAttribDialog(final CFArchTypeList archTypeList, @NotNull final GameObject gameObject, final CMainControl mainControl) { listNr = 0; this.mainControl = mainControl; // reference to the main control This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |