[Japi-cvs] SF.net SVN: japi:[756] tools
Status: Beta
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2008-12-29 04:02:42
|
Revision: 756
http://japi.svn.sourceforge.net/japi/?rev=756&view=rev
Author: christianhujer
Date: 2008-12-29 04:02:35 +0000 (Mon, 29 Dec 2008)
Log Message:
-----------
Made all fields final that can be final.
Modified Paths:
--------------
historic/trunk/src/app/net/sf/japi/cpp/CPreProcessor.java
historic/trunk/src/app/net/sf/japi/sql/DatabaseTreeModel.java
historic/trunk/src/app/net/sf/japi/util/Table.java
historic/trunk/src/doc/guide/swing/action/basic/src/ex/Application.java
libs/argparser/trunk/src/prj/net/sf/japi/io/args/TokenReader.java
libs/argparser/trunk/src/tst/test/net/sf/japi/io/args/RBMockCommand.java
libs/argparser/trunk/src/tst/test/net/sf/japi/io/args/converter/AbstractConverterTest.java
libs/logging/trunk/src/prj/net/sf/japi/log/LoggerFactory.java
libs/midi/trunk/src/prj/net/sf/japi/midi/DeviceComparator.java
libs/swing-action/trunk/src/prj/net/sf/japi/swing/DefaultActionBuilder.java
libs/swing-action/trunk/src/prj/net/sf/japi/swing/DisposeAction.java
libs/swing-action/trunk/src/prj/net/sf/japi/swing/DummyActionBuilder.java
libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/AppLaunchCommand.java
libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java
libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/ApplicationQuitter.java
libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java
libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEvent.java
libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentFrame.java
libs/swing-bookmarks/trunk/src/prj/net/sf/japi/swing/bookmarks/BookmarkManager.java
libs/swing-bookmarks/trunk/src/prj/net/sf/japi/swing/bookmarks/BookmarkTransferable.java
libs/swing-bookmarks/trunk/src/prj/net/sf/japi/swing/bookmarks/BookmarkTreeCellRenderer.java
libs/swing-extlib/trunk/src/prj/net/sf/japi/swing/ToolBarLayout.java
libs/swing-misc/trunk/src/prj/net/sf/japi/swing/misc/JSAXErrorHandler.java
libs/swing-prefs/trunk/src/prj/net/sf/japi/swing/prefs/PreferencesPane.java
libs/swing-prefs/trunk/src/tst/test/net/sf/japi/swing/prefs/MockPrefs.java
libs/swing-recent/trunk/src/prj/net/sf/japi/swing/recent/PrefsRecentURLs.java
libs/swing-tod/trunk/src/prj/net/sf/japi/swing/tod/TipOfTheDayManager.java
libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/JTreeTable.java
libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModelTableModelAdapter.java
libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModelTreeModelAdapter.java
libs/util/trunk/src/prj/net/sf/japi/util/IteratorIterable.java
libs/util/trunk/src/prj/net/sf/japi/util/filter/NotFilter.java
progs/cardlearn/trunk/src/prj/net/sf/japi/cardlearn/CardDatabaseConfig.java
progs/cardlearn/trunk/src/prj/net/sf/japi/cardlearn/CardDatabaseConfigEditor.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Program.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/QuestionCollection.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Settings.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/AnswerGUI.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/FirstSettingsModule.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ProgramFrame.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionGUI.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ReviewGUI.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SettingsGUI.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SolutionGUI.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/AbstractJTestImport.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/JTestV1.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/KEduca.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/XMLUtils.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/AbstractManager.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/HelpManager.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/InternalFrameManager.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/MenuManager.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/OpenURLPane.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/ToolBarManager.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/AbstractCachingImporter.java
progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/IOModuleProvider.java
progs/jhexedit/trunk/src/prj/net/sf/japi/progs/jhexedit/HexEditPane.java
progs/jhexview/trunk/src/prj/net/sf/japi/progs/jhexview/HexViewPane.java
progs/jirus/trunk/src/prj/net/sf/jirus/MyReceiver.java
progs/jtype/trunk/src/prj/net/sf/japi/jtype/Helper.java
progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java
tools/gdbControl/trunk/src/prj/net/sf/japi/tools/gdbcontrol/ComWithGdb.java
tools/keystrokes/trunk/src/prj/net/sf/japi/tools/keystrokes/KeyStrokes.java
tools/mail/trunk/src/prj/net/sf/japi/tools/mail/Mail.java
tools/prefsbrowser/trunk/src/prj/net/sf/japi/tools/prefsbrowser/PrefsBranchNode.java
tools/prefsbrowser/trunk/src/prj/net/sf/japi/tools/prefsbrowser/PrefsRootNode.java
tools/string2bytes/trunk/src/prj/net/sf/japi/string2bytes/CodecSelectionPanel.java
tools/todoScanner/trunk/src/prj/net/sf/japi/tools/todoScanner/TodoScanner.java
Modified: historic/trunk/src/app/net/sf/japi/cpp/CPreProcessor.java
===================================================================
--- historic/trunk/src/app/net/sf/japi/cpp/CPreProcessor.java 2008-12-28 23:30:05 UTC (rev 755)
+++ historic/trunk/src/app/net/sf/japi/cpp/CPreProcessor.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -66,7 +66,7 @@
private final Map<String, String> defines = new HashMap<String, String>();
/** Setting whether to strip comments. */
- private boolean stripComments = true;
+ private final boolean stripComments = true;
public CPreProcessor() {
}
@@ -122,8 +122,8 @@
private final Reader in;
private final Writer out;
private int c;
- private StringBuilder currentDirective = new StringBuilder();
- private StringBuilder currentDirectiveArgs = new StringBuilder();
+ private final StringBuilder currentDirective = new StringBuilder();
+ private final StringBuilder currentDirectiveArgs = new StringBuilder();
private Processor(final Reader inStream, final Writer outStream) throws IOException {
//noinspection IOResourceOpenedButNotSafelyClosed
Modified: historic/trunk/src/app/net/sf/japi/sql/DatabaseTreeModel.java
===================================================================
--- historic/trunk/src/app/net/sf/japi/sql/DatabaseTreeModel.java 2008-12-28 23:30:05 UTC (rev 755)
+++ historic/trunk/src/app/net/sf/japi/sql/DatabaseTreeModel.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -38,10 +38,10 @@
public class DatabaseTreeModel implements TreeModel {
/** The event listeners. */
- private EventListenerList listenerList = new EventListenerList();
+ private final EventListenerList listenerList = new EventListenerList();
/** The Database nodes in the tree. */
- private List<CatalogTreeNode> catalogs = new ArrayList<CatalogTreeNode>();
+ private final List<CatalogTreeNode> catalogs = new ArrayList<CatalogTreeNode>();
/** The Database Metadata of the database this treemodel reflects. */
private DatabaseMetaData databaseMetaData;
@@ -165,7 +165,7 @@
private String catalog;
/** The tables of this catalog. */
- private List<TableTreeNode> tables = new ArrayList<TableTreeNode>();
+ private final List<TableTreeNode> tables = new ArrayList<TableTreeNode>();
/** Create a CatalogTreeNode.
* @param catalog Catalog for which to create a CatalogTreeNode.
Modified: historic/trunk/src/app/net/sf/japi/util/Table.java
===================================================================
--- historic/trunk/src/app/net/sf/japi/util/Table.java 2008-12-28 23:30:05 UTC (rev 755)
+++ historic/trunk/src/app/net/sf/japi/util/Table.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -35,7 +35,7 @@
public class Table<T1,T2> {
/** The pairs of the table. */
- private Set<Pair<T1,T2>> pairs = new HashSet<Pair<T1,T2>>();
+ private final Set<Pair<T1,T2>> pairs = new HashSet<Pair<T1,T2>>();
/** Create a table. */
public Table() {
Modified: historic/trunk/src/doc/guide/swing/action/basic/src/ex/Application.java
===================================================================
--- historic/trunk/src/doc/guide/swing/action/basic/src/ex/Application.java 2008-12-28 23:30:05 UTC (rev 755)
+++ historic/trunk/src/doc/guide/swing/action/basic/src/ex/Application.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -12,7 +12,7 @@
public class Application extends WindowAdapter {
/** The application frame. */
- private JFrame frame;
+ private final JFrame frame;
/** Main program.
* @param args command line arguments (currently ignored)
@@ -22,7 +22,7 @@
new Application();
}
- private ActionBuilder actionBuilder = ActionBuilderFactory.getInstance().getActionBuilder("ex");
+ private final ActionBuilder actionBuilder = ActionBuilderFactory.getInstance().getActionBuilder("ex");
public Application() {
frame = new JFrame(actionBuilder.getString("appWindow.title"));
Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/TokenReader.java
===================================================================
--- libs/argparser/trunk/src/prj/net/sf/japi/io/args/TokenReader.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/TokenReader.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -43,7 +43,7 @@
public class TokenReader implements Closeable, Iterable<String>, Iterator<String> {
/** Reader to read from. */
- @NotNull private Reader in;
+ @NotNull private final Reader in;
/** The next token. */
@Nullable private String next;
Modified: libs/argparser/trunk/src/tst/test/net/sf/japi/io/args/RBMockCommand.java
===================================================================
--- libs/argparser/trunk/src/tst/test/net/sf/japi/io/args/RBMockCommand.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/argparser/trunk/src/tst/test/net/sf/japi/io/args/RBMockCommand.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -31,7 +31,7 @@
public class RBMockCommand extends BasicCommand {
/** My own ResourceBundle. */
- private ResourceBundle myBundle = ResourceBundle.getBundle("test.net.sf.japi.io.args.RBMockCommandMyBundle");
+ private final ResourceBundle myBundle = ResourceBundle.getBundle("test.net.sf.japi.io.args.RBMockCommandMyBundle");
/** Whether to return its own ResourceBundle. */
private boolean returnOwnBundle;
Modified: libs/argparser/trunk/src/tst/test/net/sf/japi/io/args/converter/AbstractConverterTest.java
===================================================================
--- libs/argparser/trunk/src/tst/test/net/sf/japi/io/args/converter/AbstractConverterTest.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/argparser/trunk/src/tst/test/net/sf/japi/io/args/converter/AbstractConverterTest.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -35,10 +35,10 @@
public abstract class AbstractConverterTest<V, T extends Converter<V>> {
/** The target class. */
- private Class<V> targetClass;
+ private final Class<V> targetClass;
/** The converter testling. */
- private T converter;
+ private final T converter;
/**
* Create an AbstractConverterTest.
Modified: libs/logging/trunk/src/prj/net/sf/japi/log/LoggerFactory.java
===================================================================
--- libs/logging/trunk/src/prj/net/sf/japi/log/LoggerFactory.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/logging/trunk/src/prj/net/sf/japi/log/LoggerFactory.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -41,7 +41,7 @@
* Key: logger name, as with {@link java.util.logging.LogManager#getLogger(String)}.
* Value: Logger associated with the Key
*/
- @NotNull private Map<String, Logger> loggers = new HashMap<String, Logger>();
+ @NotNull private final Map<String, Logger> loggers = new HashMap<String, Logger>();
/**
* Private Singleton Constructor.
Modified: libs/midi/trunk/src/prj/net/sf/japi/midi/DeviceComparator.java
===================================================================
--- libs/midi/trunk/src/prj/net/sf/japi/midi/DeviceComparator.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/midi/trunk/src/prj/net/sf/japi/midi/DeviceComparator.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -13,7 +13,7 @@
private static final long serialVersionUID = 1L;
/** The convenient default instance. */
- private static Comparator<? super MidiDevice> instance = new DeviceComparator();
+ private static final Comparator<? super MidiDevice> instance = new DeviceComparator();
/** {@inheritDoc} */
public int compare(final MidiDevice o1, final MidiDevice o2) {
Modified: libs/swing-action/trunk/src/prj/net/sf/japi/swing/DefaultActionBuilder.java
===================================================================
--- libs/swing-action/trunk/src/prj/net/sf/japi/swing/DefaultActionBuilder.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-action/trunk/src/prj/net/sf/japi/swing/DefaultActionBuilder.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -81,7 +81,7 @@
@NotNull private final ActionMap actionMap = new NamedActionMap();
/** The action providers that were registered and will be queried when an action should be created / retrieved. */
- private List<ActionProvider> actionProviders = new ArrayList<ActionProvider>();
+ private final List<ActionProvider> actionProviders = new ArrayList<ActionProvider>();
/** Add a ResourceBundle to the list of used bundles.
* @param baseName the base name of the resource bundle, a fully qualified class name
Modified: libs/swing-action/trunk/src/prj/net/sf/japi/swing/DisposeAction.java
===================================================================
--- libs/swing-action/trunk/src/prj/net/sf/japi/swing/DisposeAction.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-action/trunk/src/prj/net/sf/japi/swing/DisposeAction.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -48,7 +48,7 @@
/** The window to be disposed.
* @serial include
*/
- private Window window;
+ private final Window window;
/** Install the DisposeAction to a JDialog for the ESCAPE key.
* For most users of this method, the return value is irrelevant and can be ignored.
Modified: libs/swing-action/trunk/src/prj/net/sf/japi/swing/DummyActionBuilder.java
===================================================================
--- libs/swing-action/trunk/src/prj/net/sf/japi/swing/DummyActionBuilder.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-action/trunk/src/prj/net/sf/japi/swing/DummyActionBuilder.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -45,7 +45,7 @@
/** The ActionMap.
* The DummyActionBuilder at least needs an ActionMap to fulfil the contract of ActionBuilder regarding nullability.
*/
- private ActionMap actionMap = new ActionMap();
+ private final ActionMap actionMap = new ActionMap();
/** {@inheritDoc} */
public void addBundle(@NotNull final String baseName) {
Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/AppLaunchCommand.java
===================================================================
--- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/AppLaunchCommand.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/AppLaunchCommand.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -15,7 +15,7 @@
@Nullable private final Class<? extends Application<?>> appClass;
/** The Application. */
- @Nullable private Application<?> application;
+ @Nullable private final Application<?> application;
/** Creates an AppLaunchCommand.
* @param appClass Application Class to launch.
Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java
===================================================================
--- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -40,22 +40,22 @@
public abstract class Application<D> implements CanLoad<D>, InternalFrameListener, DocumentListener<D> {
/** The application frame. */
- @NotNull private JFrame appFrame;
+ @NotNull private final JFrame appFrame;
/** The ActionBuilder. */
@NotNull private final ActionBuilder actionBuilder;
/** Whether or not to ask the user before quitting. */
- private boolean askForQuit = true;
+ private final boolean askForQuit = true;
/** The About Dialog. */
private AboutDialog aboutDialog = null; // lazy
/** The file chooser for loading and saving. */
- private JFileChooser fileChooser;
+ private final JFileChooser fileChooser;
/** The MDI handler. */
- private JDesktopPane desktop;
+ private final JDesktopPane desktop;
/** The current document frame. */
@Nullable private DocumentFrame<D> currentDocumentFrame = null;
Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/ApplicationQuitter.java
===================================================================
--- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/ApplicationQuitter.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/ApplicationQuitter.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -11,7 +11,7 @@
class ApplicationQuitter<D> extends WindowAdapter {
/** Application to quit. */
- @NotNull private Application<D> application;
+ @NotNull private final Application<D> application;
/** Creates an ApplicationQuitter.
* @param application Application to quit when its window is closing.
Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java
===================================================================
--- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -27,7 +27,7 @@
private final EventListenerList listenerList = new EventListenerList();
/** The data of this Document. */
- @NotNull private D data;
+ @NotNull private final D data;
/** The URI of this document. */
@Nullable private String uri;
Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEvent.java
===================================================================
--- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEvent.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEvent.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -16,7 +16,7 @@
@NotNull private final DocumentEventType type;
/** The source of this event. */
- private Document<D> source;
+ private final Document<D> source;
/** Constructs a DocumentEvent.
* @param source The Document on which the Event initially occurred.
Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentFrame.java
===================================================================
--- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentFrame.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentFrame.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -15,7 +15,7 @@
class DocumentFrame<D> extends JInternalFrame {
/** The document of this DocumentFrame. */
- @NotNull private Document<D> document;
+ @NotNull private final Document<D> document;
/** The Action for activating this frame. */
private final Action windowAction = new AbstractAction() {
Modified: libs/swing-bookmarks/trunk/src/prj/net/sf/japi/swing/bookmarks/BookmarkManager.java
===================================================================
--- libs/swing-bookmarks/trunk/src/prj/net/sf/japi/swing/bookmarks/BookmarkManager.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-bookmarks/trunk/src/prj/net/sf/japi/swing/bookmarks/BookmarkManager.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -87,7 +87,7 @@
private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.swing.bookmarks");
/** The ProgramFrame this BookmarkManager manages bookmarks for. */
- private Bookmarkable bookmarkable;
+ private final Bookmarkable bookmarkable;
/** Create a new BookmarkManager.
* @param bookmarkable The bookmarkable to use for this BookmarkManager.
@@ -190,7 +190,7 @@
/** Action for managing the bookmarks.
* @serial include
*/
- private Action manageBookmarks = ACTION_BUILDER.createAction(true, "manageBookmarks", this);
+ private final Action manageBookmarks = ACTION_BUILDER.createAction(true, "manageBookmarks", this);
/** Action for managing the bookmarks. */
public void manageBookmarks() {
@@ -549,12 +549,12 @@
/** The bookmarks in this folder.
* @serial include
*/
- private List<Bookmark> bookmarks = new ArrayList<Bookmark>();
+ private final List<Bookmark> bookmarks = new ArrayList<Bookmark>();
/** The Menus created for this folder.
* @serial include
*/
- private List<JMenu> menus = new ArrayList<JMenu>();
+ private final List<JMenu> menus = new ArrayList<JMenu>();
/** Create a BookmarkFolder without a title.
* This should only be used for the basic BookmarkFolder containing all other BookmarkItems and BookmarkFolders.
@@ -706,12 +706,12 @@
/** Action for adding a bookmark.
* @serial include
*/
- private Action addBookmark = ACTION_BUILDER.createAction(true, "addBookmark", this);
+ private final Action addBookmark = ACTION_BUILDER.createAction(true, "addBookmark", this);
/** Action for creating a new bookmark folder.
* @serial include
*/
- private Action newBookmarkFolder = ACTION_BUILDER.createAction(true, "newBookmarkFolder", this);
+ private final Action newBookmarkFolder = ACTION_BUILDER.createAction(true, "newBookmarkFolder", this);
/** Add a bookmark for the currently selected Question from the currently selected QuestionCollection . */
public void addBookmark() {
Modified: libs/swing-bookmarks/trunk/src/prj/net/sf/japi/swing/bookmarks/BookmarkTransferable.java
===================================================================
--- libs/swing-bookmarks/trunk/src/prj/net/sf/japi/swing/bookmarks/BookmarkTransferable.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-bookmarks/trunk/src/prj/net/sf/japi/swing/bookmarks/BookmarkTransferable.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -42,7 +42,7 @@
}
/** Supported DataFlavors. */
- private static DataFlavor[] flavors = {BOOKMARK_DATA_FLAVOR};
+ private static final DataFlavor[] flavors = {BOOKMARK_DATA_FLAVOR};
/** Bookmark to be transferred. */
private final BookmarkManager.Bookmark bookmark;
@@ -61,7 +61,7 @@
/** {@inheritDoc} */
public DataFlavor[] getTransferDataFlavors() {
- return flavors;
+ return flavors.clone();
}
/** {@inheritDoc} */
Modified: libs/swing-bookmarks/trunk/src/prj/net/sf/japi/swing/bookmarks/BookmarkTreeCellRenderer.java
===================================================================
--- libs/swing-bookmarks/trunk/src/prj/net/sf/japi/swing/bookmarks/BookmarkTreeCellRenderer.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-bookmarks/trunk/src/prj/net/sf/japi/swing/bookmarks/BookmarkTreeCellRenderer.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -36,7 +36,7 @@
/** JSeparator.
* @serial include
*/
- private JSeparator sep = new JSeparator();
+ private final JSeparator sep = new JSeparator();
/** {@inheritDoc} */
@Override public Component getTreeCellRendererComponent(final JTree tree, final Object value, final boolean sel, final boolean expanded, final boolean leaf, final int row, final boolean hasFocus) {
Modified: libs/swing-extlib/trunk/src/prj/net/sf/japi/swing/ToolBarLayout.java
===================================================================
--- libs/swing-extlib/trunk/src/prj/net/sf/japi/swing/ToolBarLayout.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-extlib/trunk/src/prj/net/sf/japi/swing/ToolBarLayout.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -90,22 +90,22 @@
/** Components in the north region.
* @serial include
*/
- private List<Component> north = new ArrayList<Component>();
+ private final List<Component> north = new ArrayList<Component>();
/** Components in the south region.
* @serial include
*/
- private List<Component> south = new ArrayList<Component>();
+ private final List<Component> south = new ArrayList<Component>();
/** Components in the east region.
* @serial include
*/
- private List<Component> east = new ArrayList<Component>();
+ private final List<Component> east = new ArrayList<Component>();
/** Components in the west region.
* @serial include
*/
- private List<Component> west = new ArrayList<Component>();
+ private final List<Component> west = new ArrayList<Component>();
/** Component in the center region.
* @serial include
Modified: libs/swing-misc/trunk/src/prj/net/sf/japi/swing/misc/JSAXErrorHandler.java
===================================================================
--- libs/swing-misc/trunk/src/prj/net/sf/japi/swing/misc/JSAXErrorHandler.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-misc/trunk/src/prj/net/sf/japi/swing/misc/JSAXErrorHandler.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -43,7 +43,7 @@
/** The JTextArea which displays the errors.
* @serial include
*/
- private JTextArea errorPane = new JTextArea();
+ private final JTextArea errorPane = new JTextArea();
/** The Dialog.
* @serial include
@@ -58,7 +58,7 @@
/** Button for closing.
* @serial include
*/
- private JButton closeButton;
+ private final JButton closeButton;
/** Create a JSAXErrorHandler.
* @param parent Parent component to display on.
Modified: libs/swing-prefs/trunk/src/prj/net/sf/japi/swing/prefs/PreferencesPane.java
===================================================================
--- libs/swing-prefs/trunk/src/prj/net/sf/japi/swing/prefs/PreferencesPane.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-prefs/trunk/src/prj/net/sf/japi/swing/prefs/PreferencesPane.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -274,7 +274,7 @@
/** The border.
* For some reason it gets lost when set in the initializer, so we store it and set it each time the renderer is used.
*/
- private Border border = createEmptyBorder(10, 10, 10, 10);
+ private final Border border = createEmptyBorder(10, 10, 10, 10);
/** Create a PrefsListCellRenderer. */
PrefsListCellRenderer() {
Modified: libs/swing-prefs/trunk/src/tst/test/net/sf/japi/swing/prefs/MockPrefs.java
===================================================================
--- libs/swing-prefs/trunk/src/tst/test/net/sf/japi/swing/prefs/MockPrefs.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-prefs/trunk/src/tst/test/net/sf/japi/swing/prefs/MockPrefs.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -36,7 +36,7 @@
private final Map<String, int[]> invocationCounter = new HashMap<String, int[]>();
/** The Textfield for changes. */
- private JTextField textfield = new JTextField();
+ private final JTextField textfield = new JTextField();
/** The text for changes. */
private String text = "";
Modified: libs/swing-recent/trunk/src/prj/net/sf/japi/swing/recent/PrefsRecentURLs.java
===================================================================
--- libs/swing-recent/trunk/src/prj/net/sf/japi/swing/recent/PrefsRecentURLs.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-recent/trunk/src/prj/net/sf/japi/swing/recent/PrefsRecentURLs.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -38,13 +38,13 @@
private int maxLastOpened;
/** List with recently opened files. */
- private List<String> recentlyOpenedURLs = new ArrayList<String>();
+ private final List<String> recentlyOpenedURLs = new ArrayList<String>();
/** List with listeners. */
- private EventListenerList listeners = new EventListenerList();
+ private final EventListenerList listeners = new EventListenerList();
/** The Preferences to manage the recent URLs in. */
- private Preferences prefs;
+ private final Preferences prefs;
/** The PrefsRecentURls. */
private static final Map<Class<?>,PrefsRecentURLs> instances = new WeakHashMap<Class<?>,PrefsRecentURLs>();
Modified: libs/swing-tod/trunk/src/prj/net/sf/japi/swing/tod/TipOfTheDayManager.java
===================================================================
--- libs/swing-tod/trunk/src/prj/net/sf/japi/swing/tod/TipOfTheDayManager.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-tod/trunk/src/prj/net/sf/japi/swing/tod/TipOfTheDayManager.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -114,16 +114,16 @@
@Nullable private JDialog dialog;
/** JCheckBox for showing at startup. */
- @NotNull private JCheckBox showAtStartup = new JCheckBox(ACTION_BUILDER.createAction(false, "todShowAtStartup", null));
+ @NotNull private final JCheckBox showAtStartup = new JCheckBox(ACTION_BUILDER.createAction(false, "todShowAtStartup", null));
/** The JLabel showing the current number of the tod. */
- @NotNull private JLabel currentTodIndex = new JLabel();
+ @NotNull private final JLabel currentTodIndex = new JLabel();
/** The JEditorPane displaying the tod text. */
- @NotNull private JEditorPane todText = new JEditorPane("text/html", "");
+ @NotNull private final JEditorPane todText = new JEditorPane("text/html", "");
/** List with tod texts. */
- @NotNull private List<String> todTexts = new ArrayList<String>();
+ @NotNull private final List<String> todTexts = new ArrayList<String>();
/** Number of current Tip of the day.
* In visible state, the index must range between 0 and the number of tods available - 1, inclusive.
Modified: libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/JTreeTable.java
===================================================================
--- libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/JTreeTable.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/JTreeTable.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -40,7 +40,7 @@
public class JTreeTable<R, T> extends JTable {
/** TreeTableCellRenderer. */
- private TreeTableCellRenderer tree;
+ private final TreeTableCellRenderer tree;
/** The TreeTableModel for this JTreeTable. */
private TreeTableModel<R, T> treeTableModel;
Modified: libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModelTableModelAdapter.java
===================================================================
--- libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModelTableModelAdapter.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModelTableModelAdapter.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -34,10 +34,10 @@
private static final long serialVersionUID = 1L;
/** The underlying JTree. */
- private JTree tree;
+ private final JTree tree;
/** The underlying TreeTableModel. */
- private TreeTableModel treeTableModel;
+ private final TreeTableModel treeTableModel;
/** Create a TreeTableModelAdapter.
* @param treeTableModel TreeTableModel to adapt
Modified: libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModelTreeModelAdapter.java
===================================================================
--- libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModelTreeModelAdapter.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModelTreeModelAdapter.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -36,7 +36,7 @@
private final EventListenerList listenerList = new EventListenerList();
/** The underlying TreeTableModel. */
- private TreeTableModel<R, T> treeTableModel;
+ private final TreeTableModel<R, T> treeTableModel;
public TreeTableModelTreeModelAdapter(final TreeTableModel<R, T> treeTableModel) {
this.treeTableModel = treeTableModel;
Modified: libs/util/trunk/src/prj/net/sf/japi/util/IteratorIterable.java
===================================================================
--- libs/util/trunk/src/prj/net/sf/japi/util/IteratorIterable.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/util/trunk/src/prj/net/sf/japi/util/IteratorIterable.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -31,7 +31,7 @@
public class IteratorIterable<T> implements Iterable<T> {
/** The wrapped Iterator. */
- @NotNull private Iterator<T> iterator;
+ @NotNull private final Iterator<T> iterator;
/**
* Wrap an Iterator in an Iterable.
Modified: libs/util/trunk/src/prj/net/sf/japi/util/filter/NotFilter.java
===================================================================
--- libs/util/trunk/src/prj/net/sf/japi/util/filter/NotFilter.java 2008-12-28 23:30:05 UTC (rev 755)
+++ libs/util/trunk/src/prj/net/sf/japi/util/filter/NotFilter.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -26,7 +26,7 @@
final class NotFilter<T> implements Filter<T> {
/** The filter to negate. */
- private Filter<T> filter;
+ private final Filter<T> filter;
/** Create a NotFilter.
* @param filter Filter to negate
Modified: progs/cardlearn/trunk/src/prj/net/sf/japi/cardlearn/CardDatabaseConfig.java
===================================================================
--- progs/cardlearn/trunk/src/prj/net/sf/japi/cardlearn/CardDatabaseConfig.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/cardlearn/trunk/src/prj/net/sf/japi/cardlearn/CardDatabaseConfig.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -10,7 +10,7 @@
/** Serial version. */
private static final long serialVersionUID = 1L;
- private String[] fieldNames = new String[6];
+ private final String[] fieldNames = new String[6];
/** Creates a CardDatabaseConfig.
*/
Modified: progs/cardlearn/trunk/src/prj/net/sf/japi/cardlearn/CardDatabaseConfigEditor.java
===================================================================
--- progs/cardlearn/trunk/src/prj/net/sf/japi/cardlearn/CardDatabaseConfigEditor.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/cardlearn/trunk/src/prj/net/sf/japi/cardlearn/CardDatabaseConfigEditor.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -15,13 +15,13 @@
public class CardDatabaseConfigEditor extends JComponent {
/** The CardDatabaseConfig to edit. */
- private CardDatabaseConfig config;
+ private final CardDatabaseConfig config;
/** The labels for the fields. */
- private JLabel[] labels = new JLabel[6];
+ private final JLabel[] labels = new JLabel[6];
/** The textfields for the fields. */
- private JTextField[] fields = new JTextField[6];
+ private final JTextField[] fields = new JTextField[6];
/** Creates a CardDatabaseConfigEditor.
* @param config CardDatabaseConfiguration to edit.
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Program.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Program.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Program.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -37,16 +37,16 @@
public class Program {
/** The IOProvider. */
- private IOModuleProvider<QuestionCollection> ioProvider = IOModuleProvider.getProvider(QuestionCollection.class);
+ private final IOModuleProvider<QuestionCollection> ioProvider = IOModuleProvider.getProvider(QuestionCollection.class);
/** The KEduca filter reference. */
- private KEduca keduca;
+ private final KEduca keduca;
/** The JTestV1 filter reference. */
- private JTestV1 jtestv1;
+ private final JTestV1 jtestv1;
/** The Settings. */
- private Settings settings;
+ private final Settings settings;
/** The currently loaded Question Collection. */
private QuestionCollection col;
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/QuestionCollection.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/QuestionCollection.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/QuestionCollection.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -40,7 +40,7 @@
/** The Questions.
* @serial include
*/
- private List<QuestionText> questions;
+ private final List<QuestionText> questions;
/** The title of this collection.
* @serial include
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Settings.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Settings.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Settings.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -40,10 +40,10 @@
private int maxLastOpened;
/** List with recently opened files. */
- private List<String> recentlyOpenedURLs = new ArrayList<String>();
+ private final List<String> recentlyOpenedURLs = new ArrayList<String>();
/** List with listeners. */
- private List<RecentURLsListener> listeners = new ArrayList<RecentURLsListener>();
+ private final List<RecentURLsListener> listeners = new ArrayList<RecentURLsListener>();
/** Create a Settings with default values. */
public Settings() {
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/AnswerGUI.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/AnswerGUI.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/AnswerGUI.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -47,12 +47,12 @@
private static final String HTML_END = "</body></html>";
/** Answer to display GUI for. */
- private transient MCAnswerText answer;
+ private final transient MCAnswerText answer;
/** The button the user may push.
* @serial include
*/
- private JToggleButton button;
+ private final JToggleButton button;
/** Create an AnswerGUI.
* @param answer Answer to vizualize
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/FirstSettingsModule.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/FirstSettingsModule.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/FirstSettingsModule.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -49,12 +49,12 @@
/** ShowSolutionsOn.
* @serial include
*/
- private JRadioButton showSolutionsOn;
+ private final JRadioButton showSolutionsOn;
/** ShowSolutionsOff.
* @serial include
*/
- private JRadioButton showSolutionsOff;
+ private final JRadioButton showSolutionsOff;
/** Create a FirstSettingsModule.
* @param settings Settings to modify
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ProgramFrame.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ProgramFrame.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ProgramFrame.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -77,7 +77,7 @@
private transient Program program;
/** The BookmarkManager. */
- private transient BookmarkManager bookmarkManager = new BookmarkManager(this);
+ private final transient BookmarkManager bookmarkManager = new BookmarkManager(this);
/** Action Builder. */
private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.jtest.gui");
@@ -291,52 +291,52 @@
/** Action for doc.
* @serial include
*/
- private Action doc = ACTION_BUILDER.createAction(false, "doc");
+ private final Action doc = ACTION_BUILDER.createAction(false, "doc");
/** Action for open.
* @serial include
*/
- private Action open = ACTION_BUILDER.createAction(true, "open", this);
+ private final Action open = ACTION_BUILDER.createAction(true, "open", this);
/** Action for save.
* @serial include
*/
- private Action save = ACTION_BUILDER.createAction(true, "save", this);
+ private final Action save = ACTION_BUILDER.createAction(true, "save", this);
/** Action for print.
* @serial include
*/
- private Action print = ACTION_BUILDER.createAction(true, "print", this);
+ private final Action print = ACTION_BUILDER.createAction(true, "print", this);
/** Action for quit.
* @serial include
*/
- private Action quit = ACTION_BUILDER.createAction(true, "quit", this);
+ private final Action quit = ACTION_BUILDER.createAction(true, "quit", this);
/** Action for view.
* @serial include
*/
- private Action view = ACTION_BUILDER.createAction(true, "view");
+ private final Action view = ACTION_BUILDER.createAction(true, "view");
/** Action for settings.
* @serial include
*/
- private Action settings = ACTION_BUILDER.createAction(true, "settings");
+ private final Action settings = ACTION_BUILDER.createAction(true, "settings");
/** Action for config.
* @serial include
*/
- private Action config = ACTION_BUILDER.createAction(true, "config", this);
+ private final Action config = ACTION_BUILDER.createAction(true, "config", this);
/** Action for help.
* @serial include
*/
- private Action help = ACTION_BUILDER.createAction(true, "help");
+ private final Action help = ACTION_BUILDER.createAction(true, "help");
/** Action for about.
* @serial include
*/
- private Action about = ACTION_BUILDER.createAction(true, "about", this);
+ private final Action about = ACTION_BUILDER.createAction(true, "about", this);
/** Create Menu with essential program actions.
* @return Menu with essential program actions
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionGUI.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionGUI.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionGUI.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -109,7 +109,7 @@
/** The Settings.
* @serial include
*/
- private Settings settings;
+ private final Settings settings;
/** Create a GUI for a Collection of Questions.
* @param settings Settings to use.
@@ -274,42 +274,42 @@
/** Action for start test.
* @serial include
*/
- private Action start = ACTION_BUILDER.createAction(true, "start", this);
+ private final Action start = ACTION_BUILDER.createAction(true, "start", this);
/** Action for first question.
* @serial include
*/
- private Action first = ACTION_BUILDER.createAction(true, "first", this);
+ private final Action first = ACTION_BUILDER.createAction(true, "first", this);
/** Action for previous question.
* @serial include
*/
- private Action prev = ACTION_BUILDER.createAction(true, "prev", this);
+ private final Action prev = ACTION_BUILDER.createAction(true, "prev", this);
/** Action for next question.
* @serial include
*/
- private Action next = ACTION_BUILDER.createAction(true, "next", this);
+ private final Action next = ACTION_BUILDER.createAction(true, "next", this);
/** Action for last question.
* @serial include
*/
- private Action last = ACTION_BUILDER.createAction(true, "last", this);
+ private final Action last = ACTION_BUILDER.createAction(true, "last", this);
/** Action for review.
* @serial include
*/
- private Action review = ACTION_BUILDER.createAction(true, "review", this);
+ private final Action review = ACTION_BUILDER.createAction(true, "review", this);
/** Action for end.
* @serial include
*/
- private Action end = ACTION_BUILDER.createAction(true, "end", this);
+ private final Action end = ACTION_BUILDER.createAction(true, "end", this);
/** All Actions related to navigation.
* @serial include
*/
- private Action[] navigationActions = { start, first, prev, next, last, review, end };
+ private final Action[] navigationActions = { start, first, prev, next, last, review, end };
/** Create Navigation Menu.
* @return Navigation Menu
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ReviewGUI.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ReviewGUI.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ReviewGUI.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -50,12 +50,12 @@
/** The Panel with the Review elements.
* @serial include
*/
- private JPanel reviews;
+ private final JPanel reviews;
/** The QuestionCollectionGUI.
* @serial include
*/
- private QuestionCollectionGUI questionCollectionGUI;
+ private final QuestionCollectionGUI questionCollectionGUI;
/** The JCheckBoxes.
* @serial include
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SettingsGUI.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SettingsGUI.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SettingsGUI.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -49,12 +49,12 @@
/** ShowSolutionsOn.
* @serial include
*/
- private JRadioButton showSolutionsOn;
+ private final JRadioButton showSolutionsOn;
/** ShowSolutionsOff.
* @serial include
*/
- private JRadioButton showSolutionsOff;
+ private final JRadioButton showSolutionsOff;
/** Create a SettingsGUI.
* @param settings Settings to create a GUI for.
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SolutionGUI.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SolutionGUI.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SolutionGUI.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -58,7 +58,7 @@
/** The JEditorPane to show the solution.
* @serial include
*/
- private JEditorPane solution;
+ private final JEditorPane solution;
/** Create a SolutionGUI. */
public SolutionGUI() {
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/AbstractJTestImport.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/AbstractJTestImport.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/AbstractJTestImport.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -52,7 +52,7 @@
} // class Uptodate
/** Map with uptodate information. */
- private Map<String, Uptodate> acceptable = new WeakHashMap<String, Uptodate>();
+ private final Map<String, Uptodate> acceptable = new WeakHashMap<String, Uptodate>();
/** {@inheritDoc} */
public final boolean canLoad(final String uri) {
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/JTestV1.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/JTestV1.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/JTestV1.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -56,19 +56,19 @@
public class JTestV1 extends AbstractJTestImport<QuestionCollection> implements Importer<QuestionCollection>, Exporter<QuestionCollection> {
/** The DocumentBuilderFactory. */
- private DocumentBuilderFactory dbf;
+ private final DocumentBuilderFactory dbf;
/** The DocumentBuilder. */
- private DocumentBuilder db;
+ private final DocumentBuilder db;
/** The DOMImplementation in use. */
- private DOMImplementation domImpl;
+ private final DOMImplementation domImpl;
/** The XPathFactory. */
- private XPathFactory xpf;
+ private final XPathFactory xpf;
/** The XPath. */
- private XPath xp;
+ private final XPath xp;
/** Create a new JTest interface.
* @throws Error in case of ParserConfigurationExceptions
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/KEduca.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/KEduca.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/KEduca.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -51,19 +51,19 @@
public class KEduca extends AbstractJTestImport<QuestionCollection> implements Exporter<QuestionCollection> {
/** The DocumentBuilderFactory. */
- private DocumentBuilderFactory dbf;
+ private final DocumentBuilderFactory dbf;
/** The DocumentBuilder. */
- private DocumentBuilder db;
+ private final DocumentBuilder db;
/** The DOMImplementation in use. */
- private DOMImplementation domImpl;
+ private final DOMImplementation domImpl;
/** The XPathFactory. */
- private XPathFactory xpf;
+ private final XPathFactory xpf;
/** The XPath. */
- private XPath xp;
+ private final XPath xp;
/** Create a new KEduca interface.
* @throws Error in case of ParserConfigurationExceptions
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/XMLUtils.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/XMLUtils.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/XMLUtils.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -40,7 +40,7 @@
}
/** Quiet error handler. */
- private DefaultHandler2 quietHandler = new DefaultHandler2();
+ private final DefaultHandler2 quietHandler = new DefaultHandler2();
/** Get the quiet error handler.
* @return The quiet error handler.
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/AbstractManager.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/AbstractManager.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/AbstractManager.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -91,7 +91,7 @@
/** View Show All action.
* @see #viewShowAll()
*/
- private Action viewShowAll = ACTION_BUILDER.createAction(true, "viewShowAll", this);
+ private final Action viewShowAll = ACTION_BUILDER.createAction(true, "viewShowAll", this);
/** View Show All action, shows all managed components. */
public void viewShowAll() {
@@ -103,7 +103,7 @@
/** View Hide All action.
* @see #viewHideAll()
*/
- private Action viewHideAll = ACTION_BUILDER.createAction(true, "viewHideAll", this);
+ private final Action viewHideAll = ACTION_BUILDER.createAction(true, "viewHideAll", this);
/** View Hide All action, hides all managed components. */
public void viewHideAll() {
@@ -234,7 +234,7 @@
/** The list of JCheckBoxMenuItems and JCheckBoxes created for this JComponent.
* @serial include
*/
- private List<WeakReference<AbstractButton>> buttons = new ArrayList<WeakReference<AbstractButton>>();
+ private final List<WeakReference<AbstractButton>> buttons = new ArrayList<WeakReference<AbstractButton>>();
/** Create a SubAction.
* @param comp JComponent to create Action for
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/HelpManager.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/HelpManager.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/HelpManager.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -41,7 +41,7 @@
public class HelpManager extends WindowAdapter {
/** The HelpManager instances. */
- private static Map<String,HelpManager> managers = new WeakHashMap<String,HelpManager>();
+ private static final Map<String,HelpManager> managers = new WeakHashMap<String,HelpManager>();
/** Get a HelpManager.
* If no HelpManager already exists, a new one will be created and remembered.
@@ -58,10 +58,10 @@
}
/** The dialog. */
- private JFrame dialog;
+ private final JFrame dialog;
/** The HTML Viewer. */
- private JEditorPane helpView;
+ private final JEditorPane helpView;
/** Create a HelpManager. */
public HelpManager() {
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/InternalFrameManager.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/InternalFrameManager.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/InternalFrameManager.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -46,10 +46,10 @@
}
/** InternalFrames action. */
- private Action internalFrames = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "internalFrames");
+ private final Action internalFrames = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "internalFrames");
/** InternalFrames configuration action. */
- private Action configureInternalFrames = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "configureInternalFrames", this);
+ private final Action configureInternalFrames = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "configureInternalFrames", this);
/** InternalFrames configuration action. */
public void configureInternalFrames() { /* TODO */ }
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/MenuManager.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/MenuManager.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/MenuManager.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -47,10 +47,10 @@
//}
/** Menus action. */
- private Action menus = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "menus");
+ private final Action menus = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "menus");
/** Menus configuration action. */
- private Action configureMenus = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "configureMenus", this);
+ private final Action configureMenus = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "configureMenus", this);
/** Menus configuration action. */
public void configureMenus() { /* TODO */ }
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/OpenURLPane.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/OpenURLPane.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/OpenURLPane.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -112,27 +112,27 @@
/** Action for ok button.
* @serial include
*/
- private Action ok = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "ok", this);
+ private final Action ok = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "ok", this);
/** Action for cancel button.
* @serial include
*/
- private Action cancel = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "cancel", this);
+ private final Action cancel = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "cancel", this);
/** Action for delete button.
* @serial include
*/
- private Action delete = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "delete", this);
+ private final Action delete = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "delete", this);
/** Action for selectFile button.
* @serial include
*/
- private Action selectFile = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "selectFile", this);
+ private final Action selectFile = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "selectFile", this);
/** TextField with user input.
* @serial include
*/
- private JTextField input = new JTextField();
+ private final JTextField input = new JTextField();
/** Dialog to show.
* @serial include
Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/ToolBarManager.java
===================================================================
--- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/ToolBarManager.java 2008-12-28 23:30:05 UTC (rev 755)
+++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/ToolBarManager.java 2008-12-29 04:02:35 UTC (rev 756)
@@ -86,10 +86,10 @@
}
/** Toolbars action. */
- private Action toolbars = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "toolbars");
+ private final Action toolbars = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").createAction(true, "toolbars");
/** Toolbars configuration action. */
- private Action configureToolbars = Ac...
[truncated message content] |