japi-cvs Mailing List for JAPI (Page 55)
Status: Beta
Brought to you by:
christianhujer
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
(115) |
May
(11) |
Jun
(5) |
Jul
(2) |
Aug
(10) |
Sep
(35) |
Oct
(14) |
Nov
(49) |
Dec
(27) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(57) |
Feb
(1) |
Mar
|
Apr
(2) |
May
(25) |
Jun
(134) |
Jul
(76) |
Aug
(34) |
Sep
(27) |
Oct
(5) |
Nov
|
Dec
(1) |
2008 |
Jan
(3) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(63) |
Nov
(30) |
Dec
(43) |
2009 |
Jan
(10) |
Feb
(420) |
Mar
(67) |
Apr
(3) |
May
(61) |
Jun
(21) |
Jul
(19) |
Aug
|
Sep
(6) |
Oct
(16) |
Nov
(1) |
Dec
|
2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
(7) |
May
(3) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: <chr...@us...> - 2006-04-14 23:30:44
|
Revision: 58 Author: christianhujer Date: 2006-04-14 16:30:39 -0700 (Fri, 14 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=58&view=rev Log Message: ----------- Added new tasks. Modified Paths: -------------- trunk/src/doc/tasks.xhtml Modified: trunk/src/doc/tasks.xhtml =================================================================== --- trunk/src/doc/tasks.xhtml 2006-04-14 23:29:31 UTC (rev 57) +++ trunk/src/doc/tasks.xhtml 2006-04-14 23:30:39 UTC (rev 58) @@ -158,6 +158,16 @@ }]]></pre> Also think whether IntelliJ IDEA or Inspection Gadgets is to blame. </dd> + <dt><!-- TODO -->Create class for centering top level containers on different references</dt> + <dd> + AWT lacks good facilities for centering top level containers. + Work around this. + </dd> + <dt><!-- TODO -->Create a library for good command line argument handling</dt> + <dd> + Usage effort should be kept at a minimum. + An easy to use and easy to integrate pattern should be used. + </dd> </dl> </body> </html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-14 23:29:38
|
Revision: 57 Author: christianhujer Date: 2006-04-14 16:29:31 -0700 (Fri, 14 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=57&view=rev Log Message: ----------- Updated irc information. Modified Paths: -------------- trunk/src/doc/start.xhtml Modified: trunk/src/doc/start.xhtml =================================================================== --- trunk/src/doc/start.xhtml 2006-04-14 16:49:22 UTC (rev 56) +++ trunk/src/doc/start.xhtml 2006-04-14 23:29:31 UTC (rev 57) @@ -51,7 +51,7 @@ You may visit the <a href="http://sourceforge.net/projects/japi">JAPI Project Page at SourceForge</a> or send mail to <a href="mailto:ch...@it...">ch...@it...</a>. </li> <li> - You may as well join <a href="irc://irc.freenode.net:6667/%23daimonin">IRC Channel <code>#daimonin</code> at <code>irc.freenode.net</code></a> and look for Cher(istheus), z0ra or Zergus. + You may as well join <a href="irc://irc.freenode.net:6667/%23japi">IRC Channel <code>#japi</code> at <code>irc.freenode.net</code></a> and look for Cher(istheus), z0ra or Zergus. Currently, the map editor of the MMORPG <a href="http://www.daimonin.net/">Daimonin</a> is JAPI's main application. </li> </ul> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-14 16:49:31
|
Revision: 56 Author: christianhujer Date: 2006-04-14 09:49:22 -0700 (Fri, 14 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=56&view=rev Log Message: ----------- Renamed FileField to JFileField Added Paths: ----------- trunk/src/app/net/sf/japi/swing/JFileField.java Removed Paths: ------------- trunk/src/app/net/sf/japi/swing/FileField.java Deleted: trunk/src/app/net/sf/japi/swing/FileField.java =================================================================== --- trunk/src/app/net/sf/japi/swing/FileField.java 2006-04-14 16:35:28 UTC (rev 55) +++ trunk/src/app/net/sf/japi/swing/FileField.java 2006-04-14 16:49:22 UTC (rev 56) @@ -1,76 +0,0 @@ -/* JAPI - (Yet another (hopefully) useful) Java API - * - * Copyright (C) 2004-2006 Christian Hujer - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - */ - -package net.sf.japi.swing; - -import java.awt.BorderLayout; -import java.io.File; -import javax.swing.JComponent; -import javax.swing.JTextField; -import javax.swing.JFileChooser; - -/** A class that displays a textfield for a file and a button for choosing the file. - * TODO - * @author <a href="mailto:Chr...@it...">Christian Hujer</a> - */ -public final class FileField extends JComponent { - - /** The JTextField used to display the filename. - * @serial include - */ - private final JTextField textField; - - /** Create a FileField. - * @param size Number of columns for the textfield part. - */ - public FileField(final int size) { - textField = new JTextField(size); - final JFileChooserButton button = new JFileChooserButton(textField, JFileChooser.FILES_ONLY); - setLayout(new BorderLayout()); - add(textField, BorderLayout.CENTER); - add(button, BorderLayout.LINE_END); - } - - /** Create a FileField. - * @param size Number of columns for the textfield part. - */ - public FileField(final JFileChooser fileChooser, final int size) { - textField = new JTextField(size); - final JFileChooserButton button = new JFileChooserButton(fileChooser, textField, JFileChooser.FILES_ONLY); - setLayout(new BorderLayout()); - add(textField, BorderLayout.CENTER); - add(button, BorderLayout.LINE_END); - } - - /** Return the selected file. - * @return selected file - */ - public File getSelectedFile() { - return new File(textField.getText()); - } - - /** Return the selected filename. - * @return selected filename - */ - public String getSelectedFilename() { - return textField.getText(); - } - -} // class FileField Copied: trunk/src/app/net/sf/japi/swing/JFileField.java (from rev 54, trunk/src/app/net/sf/japi/swing/FileField.java) =================================================================== --- trunk/src/app/net/sf/japi/swing/JFileField.java (rev 0) +++ trunk/src/app/net/sf/japi/swing/JFileField.java 2006-04-14 16:49:22 UTC (rev 56) @@ -0,0 +1,75 @@ +/* JAPI - (Yet another (hopefully) useful) Java API + * + * Copyright (C) 2004-2006 Christian Hujer + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +package net.sf.japi.swing; + +import java.awt.BorderLayout; +import java.io.File; +import javax.swing.JComponent; +import javax.swing.JTextField; +import javax.swing.JFileChooser; + +/** A class that displays a textfield for a file and a button for choosing the file. + * @author <a href="mailto:Chr...@it...">Christian Hujer</a> + */ +public final class JFileField extends JComponent { + + /** The JTextField used to display the filename. + * @serial include + */ + private final JTextField textField; + + /** Create a FileField. + * @param size Number of columns for the textfield part. + */ + public JFileField(final int size) { + textField = new JTextField(size); + final JFileChooserButton button = new JFileChooserButton(textField, JFileChooser.FILES_ONLY); + setLayout(new BorderLayout()); + add(textField, BorderLayout.CENTER); + add(button, BorderLayout.LINE_END); + } + + /** Create a FileField. + * @param size Number of columns for the textfield part. + */ + public JFileField(final JFileChooser fileChooser, final int size) { + textField = new JTextField(size); + final JFileChooserButton button = new JFileChooserButton(fileChooser, textField, JFileChooser.FILES_ONLY); + setLayout(new BorderLayout()); + add(textField, BorderLayout.CENTER); + add(button, BorderLayout.LINE_END); + } + + /** Return the selected file. + * @return selected file + */ + public File getSelectedFile() { + return new File(textField.getText()); + } + + /** Return the selected filename. + * @return selected filename + */ + public String getSelectedFilename() { + return textField.getText(); + } + +} // class FileField Property changes on: trunk/src/app/net/sf/japi/swing/JFileField.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-14 16:35:46
|
Revision: 55 Author: christianhujer Date: 2006-04-14 09:35:28 -0700 (Fri, 14 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=55&view=rev Log Message: ----------- Internationalized assertion message. Modified Paths: -------------- trunk/src/app/net/sf/japi/swing/ReflectionAction.java trunk/src/app/net/sf/japi/swing/action.properties Modified: trunk/src/app/net/sf/japi/swing/ReflectionAction.java =================================================================== --- trunk/src/app/net/sf/japi/swing/ReflectionAction.java 2006-04-14 15:36:34 UTC (rev 54) +++ trunk/src/app/net/sf/japi/swing/ReflectionAction.java 2006-04-14 16:35:28 UTC (rev 55) @@ -52,6 +52,9 @@ */ public final class ReflectionAction extends AbstractAction { + /** Action Factory for reading strings. */ + private static final ActionFactory ACTION_FACTORY = ActionFactory.getFactory("net.sf.japi.swing"); + /** The key used for storing the target object to invoke the method on. * Value Type: {@link Object}. */ @@ -143,8 +146,7 @@ try { getMethod(instance).invoke(instance); } catch (final IllegalAccessException ex) { - // TODO: i18n/l10n - assert false : "Action Methods must be accessible public. That means the declaring class as well as the method must be public.\n" + ex; + assert false : ACTION_FACTORY.format("ReflectionAction.nonPublicMethod", ex); } catch (final InvocationTargetException ex) { final ActionFactory actionFactory = (ActionFactory) getValue(REFLECTION_MESSAGE_PROVIDER); final Throwable cause = ex.getCause(); Modified: trunk/src/app/net/sf/japi/swing/action.properties =================================================================== --- trunk/src/app/net/sf/japi/swing/action.properties 2006-04-14 15:36:34 UTC (rev 54) +++ trunk/src/app/net/sf/japi/swing/action.properties 2006-04-14 16:35:28 UTC (rev 55) @@ -52,4 +52,5 @@ saxErrorClose.text=Close saxError.title=XML Errors dialogDontShowAgain=Show this dialog again next time. -laf=Look and Feel \ No newline at end of file +laf=Look and Feel +ReflectionAction.nonPublicMethod=Action Methods must be accessible public. That means the declaring class as well as the method must be public.\n{0} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-14 15:36:47
|
Revision: 54 Author: christianhujer Date: 2006-04-14 08:36:34 -0700 (Fri, 14 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=54&view=rev Log Message: ----------- Added Socket Forwarder. Primitive, needs refactoring. Added Paths: ----------- trunk/src/app/net/sf/japi/net/Forwarder.java Added: trunk/src/app/net/sf/japi/net/Forwarder.java =================================================================== --- trunk/src/app/net/sf/japi/net/Forwarder.java (rev 0) +++ trunk/src/app/net/sf/japi/net/Forwarder.java 2006-04-14 15:36:34 UTC (rev 54) @@ -0,0 +1,83 @@ +/* + * JAPI - (Yet another (hopefully) useful) Java API + * + * Copyright (C) 2006 Christian Hujer + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +package net.sf.japi.net; + +import java.net.ServerSocket; +import java.net.Socket; +import java.io.IOException; +import net.sf.japi.io.Copier; + +/** This class forwards incoming TCP connections to another host and port. + * @author <a href="mailto:ch...@it...">Christian Hujer</a> + */ +public class Forwarder implements Runnable { + + /** Main program. + * @param args command line arguments (currently ignored) + */ + public static void main(final String... args) throws IOException { + ServerSocket server = null; + server = new ServerSocket(Integer.parseInt(args[0])); + while (true) { + final Socket client = new Socket(args[1], Integer.parseInt(args[2])); + new Forwarder(client, server.accept()).start(); + } + } + + /** First socket. */ + private final Socket s1; + + /** Second socket. */ + private final Socket s2; + + /** Create a new Forwarder. + * @param s1 first socket + * @param s2 second socket + */ + public Forwarder(final Socket s1, final Socket s2) { + this.s1 = s1; + this.s2 = s2; + } + + /** Start the forwarder. */ + public void start() { + new Thread(this).start(); + } + + /** {@inheritDoc} */ + public void run() { + try { + final Thread c1 = new Copier(s1.getInputStream(), s2.getOutputStream()).start(); + final Thread c2 = new Copier(s2.getInputStream(), s1.getOutputStream()).start(); + c1.join(); + c2.join(); + } catch (final InterruptedException ignore) { + /* ignore */ + } catch (final IOException e) { + e.printStackTrace(); //TODO + } finally { + try { s1.close(); } catch (final Exception ignore) { /* ignore */ } + try { s2.close(); } catch (final Exception ignore) { /* ignore */ } + } + } + +} // class Forwarder Property changes on: trunk/src/app/net/sf/japi/net/Forwarder.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-13 21:42:46
|
Revision: 53 Author: christianhujer Date: 2006-04-13 14:42:38 -0700 (Thu, 13 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=53&view=rev Log Message: ----------- Added I/O Copier. Added Paths: ----------- trunk/src/app/net/sf/japi/io/Copier.java Added: trunk/src/app/net/sf/japi/io/Copier.java =================================================================== --- trunk/src/app/net/sf/japi/io/Copier.java (rev 0) +++ trunk/src/app/net/sf/japi/io/Copier.java 2006-04-13 21:42:38 UTC (rev 53) @@ -0,0 +1,122 @@ +/* + * JAPI - (Yet another (hopefully) useful) Java API + * + * Copyright (C) 2006 Christian Hujer + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +package net.sf.japi.io; + +import java.io.InputStream; +import java.io.OutputStream; +import java.io.IOException; + +/** A Runnable that copies from an InputStream to an OutputStream. + * @author <a href="mailto:ch...@it...">Christian Hujer</a> + */ +public class Copier implements Runnable { + + /** Default buffer size when copying. */ + public static final int DEFAULT_BUF_SIZE = 8192; + + /** Default automatic flush. */ + public static final boolean DEFAULT_AUTO_FLUSH = true; + + /** Default automatic close. */ + public static final boolean DEFAULT_AUTO_CLOSE = true; + + /** The InputStream to read from. */ + private final InputStream in; + + /** The OutputStream to write to. */ + private final OutputStream out; + + /** The buffer size to use. */ + private final int bufSize; + + /** Whether to flush automatically. */ + private final boolean autoFlush; + + /** Whether to close streams automatically after copying. */ + private final boolean autoClose; + + /** Create a Copier with default buffer size and autoFlush. + * @param in the InputStream to read from + * @param out the OutputStream to write to + */ + public Copier(final InputStream in, final OutputStream out) { + this(in, out, DEFAULT_BUF_SIZE, DEFAULT_AUTO_FLUSH, DEFAULT_AUTO_CLOSE); + } + + /** Create a Copier with specified buffer size and automatic flush behaviour. + * @param in the InputStream to read from + * @param out the OutputStream to write to + * @param bufSize buffer size to use while copying + */ + public Copier(final InputStream in, final OutputStream out, final int bufSize) { + this(in, out, bufSize, DEFAULT_AUTO_FLUSH, DEFAULT_AUTO_CLOSE); + } + + /** Create a Copier with specified buffer size and specified flush behaviour. + * @param in the InputStream to read from + * @param out the OutputStream to write to + * @param bufSize buffer size to use while copying + * @param autoFlush whether to flush automatically (true for automatic flush, false for flush on close) + * @param autoClose whether to close the streams automatically (true for automatic close, false for no close) + */ + public Copier(final InputStream in, final OutputStream out, final int bufSize, final boolean autoFlush, final boolean autoClose) { + this.in = in; + this.out = out; + this.bufSize = bufSize; + this.autoFlush = autoFlush; + this.autoClose = autoClose; + } + + /** Start the copier in a new thread. + * @return the newly created thread + */ + public Thread start() { + final Thread thread = new Thread(this); + thread.start(); + return thread; + } + + /** {@inheritDoc} */ + public void run() { + final byte[] buf = new byte[bufSize]; + try { + for (int bytesRead; (bytesRead = in.read(buf)) != -1;) { + out.write(buf, 0, bytesRead); + if (autoFlush) { + out.flush(); + } + } + } catch (final IOException e) { + System.err.println(e); + } finally { + //noinspection CatchGenericClass,OverlyBroadCatchBlock + try { out.flush(); } catch (final Exception ignore) { /* ignore */ } + if (autoClose) { + //noinspection CatchGenericClass,OverlyBroadCatchBlock + try { out.close(); } catch (final Exception ignore) { /* ignore */ } + //noinspection CatchGenericClass,OverlyBroadCatchBlock + try { in.close(); } catch (final Exception ignore) { /* ignore */ } + } + } + } + +} // class Copier Property changes on: trunk/src/app/net/sf/japi/io/Copier.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-12 21:35:26
|
Revision: 52 Author: christianhujer Date: 2006-04-12 14:34:45 -0700 (Wed, 12 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=52&view=rev Log Message: ----------- Cosmetic changes: Unified number of blank lines surrounding package and import statements. Modified Paths: -------------- trunk/src/app/net/sf/japi/io/ARGVInputStream.java trunk/src/app/net/sf/japi/io/BCD.java trunk/src/app/net/sf/japi/io/Nibbles.java trunk/src/app/net/sf/japi/net/ProxySettings.java trunk/src/app/net/sf/japi/sql/DatabaseTreeModel.java trunk/src/app/net/sf/japi/sql/ResultSetTableModel.java trunk/src/app/net/sf/japi/swing/ActionMethod.java trunk/src/app/net/sf/japi/swing/ActionProvider.java trunk/src/app/net/sf/japi/swing/NamedActionMap.java trunk/src/app/net/sf/japi/swing/ToggleAction.java trunk/src/app/net/sf/japi/swing/ToolBarLayout.java trunk/src/app/net/sf/japi/swing/font/FontChooser.java trunk/src/app/net/sf/japi/swing/font/FontPreview.java trunk/src/app/net/sf/japi/swing/prefs/keys/AbstractSimpleNode.java trunk/src/app/net/sf/japi/swing/prefs/keys/ActionKeyDisplay.java trunk/src/app/net/sf/japi/swing/prefs/keys/SimpleNode.java trunk/src/app/net/sf/japi/swing/prefs/proxy/ProxyPrefs.java trunk/src/app/net/sf/japi/util/filter/file/FileFilter.java trunk/src/app/net/sf/japi/util/filter/file/RegexFileFilter.java trunk/src/test/net/sf/japi/finance/InterestCalculatorTest.java trunk/src/test/net/sf/japi/util/Arrays2Test.java Modified: trunk/src/app/net/sf/japi/io/ARGVInputStream.java =================================================================== --- trunk/src/app/net/sf/japi/io/ARGVInputStream.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/io/ARGVInputStream.java 2006-04-12 21:34:45 UTC (rev 52) @@ -23,7 +23,6 @@ import java.io.SequenceInputStream; import static net.sf.japi.util.PrintStreamThrowableHandler.STDERR; - /** An ARGV InputStream, behaving similar as <code><ARGV></code> in Perl. * Just to make life a bit less painful to Perl programmers that were reborn as Java programmers. * <p /> Modified: trunk/src/app/net/sf/japi/io/BCD.java =================================================================== --- trunk/src/app/net/sf/japi/io/BCD.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/io/BCD.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.io; /** A class with methods for converting BCD data from and to Binary data. Modified: trunk/src/app/net/sf/japi/io/Nibbles.java =================================================================== --- trunk/src/app/net/sf/japi/io/Nibbles.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/io/Nibbles.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.io; /** A class to get nibbles from byte sequences. Modified: trunk/src/app/net/sf/japi/net/ProxySettings.java =================================================================== --- trunk/src/app/net/sf/japi/net/ProxySettings.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/net/ProxySettings.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.net; /** This class handles Proxy settings. Modified: trunk/src/app/net/sf/japi/sql/DatabaseTreeModel.java =================================================================== --- trunk/src/app/net/sf/japi/sql/DatabaseTreeModel.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/sql/DatabaseTreeModel.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.sql; import java.sql.SQLException; Modified: trunk/src/app/net/sf/japi/sql/ResultSetTableModel.java =================================================================== --- trunk/src/app/net/sf/japi/sql/ResultSetTableModel.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/sql/ResultSetTableModel.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.sql; import java.sql.ResultSet; Modified: trunk/src/app/net/sf/japi/swing/ActionMethod.java =================================================================== --- trunk/src/app/net/sf/japi/swing/ActionMethod.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/swing/ActionMethod.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.swing; import java.lang.annotation.Documented; Modified: trunk/src/app/net/sf/japi/swing/ActionProvider.java =================================================================== --- trunk/src/app/net/sf/japi/swing/ActionProvider.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/swing/ActionProvider.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.swing; import javax.swing.Action; Modified: trunk/src/app/net/sf/japi/swing/NamedActionMap.java =================================================================== --- trunk/src/app/net/sf/japi/swing/NamedActionMap.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/swing/NamedActionMap.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.swing; import javax.swing.ActionMap; Modified: trunk/src/app/net/sf/japi/swing/ToggleAction.java =================================================================== --- trunk/src/app/net/sf/japi/swing/ToggleAction.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/swing/ToggleAction.java 2006-04-12 21:34:45 UTC (rev 52) @@ -50,6 +50,8 @@ public static final String REFLECTION_PROPERTY_NAME = "ReflectionPropertyName"; /** Serial Version. */ + // Work around bug in IntelliJ IDEA + @SuppressWarnings({"AnalyzingVariableNaming"}) private static final long serialVersionUID = 1L; /** The selected state. @@ -87,6 +89,8 @@ } catch (final IllegalAccessException ex) { assert false : ex; } catch (final InvocationTargetException ex) { + // XXX workaround bug in IntelliJ IDEA (ex is NOT ignored) + //noinspection ThrowInsideCatchBlockWhichIgnoresCaughtException throw new RuntimeException(ex.getCause()); } } @@ -133,6 +137,7 @@ */ public void setSelected(final boolean selected) { this.selected = selected; + //noinspection ForLoopWithMissingComponent for (final Iterator<WeakReference<AbstractButton>> it = buttons.iterator(); it.hasNext();) { final WeakReference<AbstractButton> ref = it.next(); final AbstractButton button = ref.get(); Modified: trunk/src/app/net/sf/japi/swing/ToolBarLayout.java =================================================================== --- trunk/src/app/net/sf/japi/swing/ToolBarLayout.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/swing/ToolBarLayout.java 2006-04-12 21:34:45 UTC (rev 52) @@ -70,7 +70,8 @@ * @see BorderLayout * @see JToolBar */ -@SuppressWarnings({"NonPrivateFieldAccessedInSynchronizedContext", "FieldAccessedSynchronizedAndUnsynchronized"}) public class ToolBarLayout extends BorderLayout { +@SuppressWarnings({"NonPrivateFieldAccessedInSynchronizedContext", "FieldAccessedSynchronizedAndUnsynchronized"}) +public class ToolBarLayout extends BorderLayout { /** Serial Version. */ @SuppressWarnings({"AnalyzingVariableNaming"}) @@ -160,6 +161,7 @@ } /** {@inheritDoc} */ + @SuppressWarnings({"deprecation"}) @Override public void addLayoutComponent(final String name, final Component comp) { synchronized (comp.getTreeLock()) { if (name == null || CENTER.equals(name)) { @@ -386,7 +388,7 @@ EAST, /** Constraint for west region, last component. */ - WEST; + WEST, } // enum Region Modified: trunk/src/app/net/sf/japi/swing/font/FontChooser.java =================================================================== --- trunk/src/app/net/sf/japi/swing/font/FontChooser.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/swing/font/FontChooser.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.swing.font; import java.awt.Component; Modified: trunk/src/app/net/sf/japi/swing/font/FontPreview.java =================================================================== --- trunk/src/app/net/sf/japi/swing/font/FontPreview.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/swing/font/FontPreview.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.swing.font; import java.awt.Dimension; Modified: trunk/src/app/net/sf/japi/swing/prefs/keys/AbstractSimpleNode.java =================================================================== --- trunk/src/app/net/sf/japi/swing/prefs/keys/AbstractSimpleNode.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/swing/prefs/keys/AbstractSimpleNode.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.swing.prefs.keys; import org.jetbrains.annotations.Nullable; Modified: trunk/src/app/net/sf/japi/swing/prefs/keys/ActionKeyDisplay.java =================================================================== --- trunk/src/app/net/sf/japi/swing/prefs/keys/ActionKeyDisplay.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/swing/prefs/keys/ActionKeyDisplay.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.swing.prefs.keys; import java.awt.FlowLayout; Modified: trunk/src/app/net/sf/japi/swing/prefs/keys/SimpleNode.java =================================================================== --- trunk/src/app/net/sf/japi/swing/prefs/keys/SimpleNode.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/swing/prefs/keys/SimpleNode.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.swing.prefs.keys; import org.jetbrains.annotations.Nullable; Modified: trunk/src/app/net/sf/japi/swing/prefs/proxy/ProxyPrefs.java =================================================================== --- trunk/src/app/net/sf/japi/swing/prefs/proxy/ProxyPrefs.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/swing/prefs/proxy/ProxyPrefs.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.swing.prefs.proxy; import net.sf.japi.swing.prefs.AbstractPrefs; Modified: trunk/src/app/net/sf/japi/util/filter/file/FileFilter.java =================================================================== --- trunk/src/app/net/sf/japi/util/filter/file/FileFilter.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/util/filter/file/FileFilter.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.util.filter.file; import java.io.File; Modified: trunk/src/app/net/sf/japi/util/filter/file/RegexFileFilter.java =================================================================== --- trunk/src/app/net/sf/japi/util/filter/file/RegexFileFilter.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/app/net/sf/japi/util/filter/file/RegexFileFilter.java 2006-04-12 21:34:45 UTC (rev 52) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.util.filter.file; import java.io.File; Modified: trunk/src/test/net/sf/japi/finance/InterestCalculatorTest.java =================================================================== --- trunk/src/test/net/sf/japi/finance/InterestCalculatorTest.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/test/net/sf/japi/finance/InterestCalculatorTest.java 2006-04-12 21:34:45 UTC (rev 52) @@ -25,7 +25,6 @@ /** Tests the capital finance class. * Date: 09.04.2006 - * */ public class InterestCalculatorTest extends TestCase { Modified: trunk/src/test/net/sf/japi/util/Arrays2Test.java =================================================================== --- trunk/src/test/net/sf/japi/util/Arrays2Test.java 2006-04-12 21:19:55 UTC (rev 51) +++ trunk/src/test/net/sf/japi/util/Arrays2Test.java 2006-04-12 21:34:45 UTC (rev 52) @@ -24,8 +24,7 @@ import junit.framework.TestCase; import net.sf.japi.util.Arrays2; -/** - * Test for {@link Arrays2}. +/** Test for {@link Arrays2}. * @author <a href="mailto:ch...@it...">Christian Hujer</a> */ public class Arrays2Test extends TestCase { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-12 21:20:06
|
Revision: 51 Author: christianhujer Date: 2006-04-12 14:19:55 -0700 (Wed, 12 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=51&view=rev Log Message: ----------- Added TODO comments so IntelliJ IDEA will show the TODOs in its TODO Browser. Modified Paths: -------------- trunk/src/doc/tasks.xhtml Modified: trunk/src/doc/tasks.xhtml =================================================================== --- trunk/src/doc/tasks.xhtml 2006-04-11 23:08:22 UTC (rev 50) +++ trunk/src/doc/tasks.xhtml 2006-04-12 21:19:55 UTC (rev 51) @@ -14,136 +14,136 @@ They are here for public discussion before they become BUG / RFE entries in the bug tracker. </p> <dl> - <dt>Integration Subversion with Ant</dt> + <dt><!-- TODO -->Integration Subversion with Ant</dt> <dd> The build.xml for Ant still uses the old cvs tasks. The subversion ant task provided by tigris should be used instead. </dd> - <dt>Add Changelog Facility</dt> + <dt><!-- TODO -->Add Changelog Facility</dt> <dd> There should be an automatic changelog facility in build.xml that displays all changes made since the last release. Because we use subversion now, this should be easy to do once subversion is integrated in Ant. </dd> - <dt>Create missing package descriptions</dt> + <dt><!-- TODO -->Create missing package descriptions</dt> <dd> Some packages lack package descriptions. </dd> - <dt>Review package descriptions</dt> + <dt><!-- TODO -->Review package descriptions</dt> <dd> Some package descriptions might be inaccurate or not good enough. </dd> - <dt>Improve java2html</dt> + <dt><!-- TODO -->Improve java2html</dt> <dd> java2html needs some improvement to create XHTML 1.1 with properly identifiable lines. E.g. <code><![CDATA[<span id="line10" class="even line">...</span>]]></code>. The stylesheet should allow for alternating background of odd and even lines. </dd> - <dt>Finnish JTreeTable</dt> + <dt><!-- TODO -->Finnish JTreeTable</dt> <dd> The class JTreeTable needs to be finnished. </dd> - <dt>Finnish preferences modules</dt> + <dt><!-- TODO -->Finnish preferences modules</dt> <dd> The preferences modules for keyboard, menu, toolbar, dialogs (bringing onetime dialogs back again) and proxy need to be finnished resp. created. </dd> - <dt>Increase JAPI</dt> + <dt><!-- TODO -->Increase JAPI</dt> <dd> Cher has some old JAPI versions from the time of JAPI before SF, which might contain some useful classes that should go into JAPI. </dd> - <dt>Add Cursor Handling to ActionFactory</dt> + <dt><!-- TODO -->Add Cursor Handling to ActionFactory</dt> <dd> ActionFactory should be able to automatically set the cursors for components it creates. </dd> - <dt>Improve ToolbarLayout</dt> + <dt><!-- TODO -->Improve ToolbarLayout</dt> <dd> ToolbarLayout needs an improvement to allow toolbars to be placed next to each other. </dd> - <dt>Create Checkstyle Configuration</dt> + <dt><!-- TODO -->Create Checkstyle Configuration</dt> <dd> JAPI needs a Checkstyle configuration. An Ant Target running Checkstyle should also be added. </dd> - <dt>Create font browser tool</dt> + <dt><!-- TODO -->Create font browser tool</dt> <dd> This goes in tools/font </dd> - <dt>Create a jar browser tool</dt> + <dt><!-- TODO -->Create a jar browser tool</dt> <dd> This goes in tools/jar </dd> - <dt>Rework guide on XInclude</dt> + <dt><!-- TODO -->Rework guide on XInclude</dt> <dd> Some source code in the guide is not yet included using java2html and XInclude. This should be changed to let all source code look consistently. </dd> - <dt>Website Layout improvement</dt> + <dt><!-- TODO -->Website Layout improvement</dt> <dd> JAPI needs a logo and a better website. </dd> - <dt>IDE project files</dt> + <dt><!-- TODO -->IDE project files</dt> <dd> Think about a concept of how to put IDE project files in the JAPI repository in a way that when users change them, they'll be working on their copies without creating new versions when they do commits. For a start, IntelliJ IDEA, NetBeans and Eclipse should be supported. Perhaps applying the UCM stream concept of ClearCase might also be a possible solution to this. Question: How to checkout a trunk directory from a branch instead. </dd> - <dt>Unit Tests</dt> + <dt><!-- TODO -->Unit Tests</dt> <dd> JAPI needs a unit test suite. </dd> - <dt>Set svn:ignore properties properly</dt> + <dt><!-- TODO -->Set svn:ignore properties properly</dt> <dd> Some directories like tools/fonts should have settings for svn:ignore. All sub project directories with their own build.xml should, for instance, set svn:ignore to exclude their <code>classes</code> directory. </dd> - <dt>NPE avoidance</dt> + <dt><!-- TODO -->NPE avoidance</dt> <dd> There's much code, especially in ActionFactory, which will throw little useful NullPointerExceptions. This code should be reworked by using <code>@Nullable</code> and <code>@NotNull</code> annotations. All possible NullPointerException warnings should be removed except in acceptable cases. This task also includes the definition of a list of acceptable cases of possible NullPointerExceptions. </dd> - <dt>Properties handling</dt> + <dt><!-- TODO -->Properties handling</dt> <dd> Make sure all property files are iso-8859-1 and not any other encoding. Also make sure that in xi:include elements, property files are included as iso-8859-1. </dd> - <dt>Add syntax highlighting for property files</dt> + <dt><!-- TODO -->Add syntax highlighting for property files</dt> <dd> Add a syntax highlighting for property files. </dd> - <dt>Remove old references to ITCQIS</dt> + <dt><!-- TODO -->Remove old references to ITCQIS</dt> <dd> Some source still contains references to ITCQIS other than Cher's mail address. These references should be removed. </dd> - <dt>Unify package documentation and XHTML sources</dt> + <dt><!-- TODO -->Unify package documentation and XHTML sources</dt> <dd> Some package documentation is XHTML Basic. Some documents are XHTML 1.1 and some are XHTML 1.1 + XInclude. This should be unified to always be XHTML 1.1. </dd> - <dt>Remove unused meta stuff from XHTML sources</dt> + <dt><!-- TODO -->Remove unused meta stuff from XHTML sources</dt> <dd> Some XHTML sources contain unused meta stuff. This should be removed. </dd> - <dt>Improve copyright handling</dt> + <dt><!-- TODO -->Improve copyright handling</dt> <dd> Files get automatic copyright notices. Currently, the year and name are fixed. This should be improved. </dd> - <dt>Unify Utility Classes</dt> + <dt><!-- TODO -->Unify Utility Classes</dt> <dd> Several Utility Classes do not yet have a private constructor. They all should get one. The documentation on all these private constructors should follow the same pattern. </dd> - <dt>Unify Whitespace</dt> + <dt><!-- TODO -->Unify Whitespace</dt> <dd> Some classes have two blank lines between copyright comment and package, some have only one. This should be unified. </dd> - <dt>Unify SuppressWarnings in case of working around bugs</dt> + <dt><!-- TODO -->Unify SuppressWarnings in case of working around bugs</dt> <dd> Several warning suppressions do not suppress valid warnings but bogus warnings that are bugs of IntelliJ IDEA. These warning suppressions should be tagged as such with a special comment to find and remove them once the bugs in IntelliJ IDEA are This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-11 23:08:27
|
Revision: 50 Author: christianhujer Date: 2006-04-11 16:08:22 -0700 (Tue, 11 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=50&view=rev Log Message: ----------- Added task to unify workaround SuppressWarnings. Modified Paths: -------------- trunk/src/doc/tasks.xhtml Modified: trunk/src/doc/tasks.xhtml =================================================================== --- trunk/src/doc/tasks.xhtml 2006-04-11 23:01:40 UTC (rev 49) +++ trunk/src/doc/tasks.xhtml 2006-04-11 23:08:22 UTC (rev 50) @@ -143,6 +143,21 @@ <dd> Some classes have two blank lines between copyright comment and package, some have only one. This should be unified. </dd> + <dt>Unify SuppressWarnings in case of working around bugs</dt> + <dd> + Several warning suppressions do not suppress valid warnings but bogus warnings that are bugs of IntelliJ IDEA. + These warning suppressions should be tagged as such with a special comment to find and remove them once the bugs in IntelliJ IDEA are + fixed. + <br /> + Suggestion: <samp>// XXX workaround bug in IntelliJ IDEA (<var>explanatory text</var>)</samp>. + <br /> + Example: <pre><![CDATA[ } catch (final InvocationTargetException ex) { + // XXX workaround bug in IntelliJ IDEA (ex is NOT ignored) + //noinspection ThrowInsideCatchBlockWhichIgnoresCaughtException + throw new RuntimeException(ex.getCause()); + }]]></pre> + Also think whether IntelliJ IDEA or Inspection Gadgets is to blame. + </dd> </dl> </body> </html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-11 23:01:53
|
Revision: 49 Author: christianhujer Date: 2006-04-11 16:01:40 -0700 (Tue, 11 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=49&view=rev Log Message: ----------- Several cosmetic changes to filters. Modified Paths: -------------- trunk/src/app/net/sf/japi/util/filter/AndFilterForArray.java trunk/src/app/net/sf/japi/util/filter/Filter.java trunk/src/app/net/sf/japi/util/filter/NotFilter.java trunk/src/app/net/sf/japi/util/filter/OrFilterForArray.java trunk/src/app/net/sf/japi/util/filter/OrFilterForIterable.java trunk/src/app/net/sf/japi/util/filter/file/AbstractFileFilter.java trunk/src/app/net/sf/japi/util/filter/file/Factory.java trunk/src/app/net/sf/japi/util/filter/file/FileFilter.java trunk/src/app/net/sf/japi/util/filter/file/FilenameFileFilter.java Modified: trunk/src/app/net/sf/japi/util/filter/AndFilterForArray.java =================================================================== --- trunk/src/app/net/sf/japi/util/filter/AndFilterForArray.java 2006-04-11 23:00:57 UTC (rev 48) +++ trunk/src/app/net/sf/japi/util/filter/AndFilterForArray.java 2006-04-11 23:01:40 UTC (rev 49) @@ -32,7 +32,7 @@ * @param filters Filters to AND */ AndFilterForArray(final Filter<T>[] filters) { - this.filters = filters; + this.filters = filters.clone(); } /** {@inheritDoc} */ Modified: trunk/src/app/net/sf/japi/util/filter/Filter.java =================================================================== --- trunk/src/app/net/sf/japi/util/filter/Filter.java 2006-04-11 23:00:57 UTC (rev 48) +++ trunk/src/app/net/sf/japi/util/filter/Filter.java 2006-04-11 23:01:40 UTC (rev 49) @@ -21,9 +21,6 @@ package net.sf.japi.util.filter; import java.util.Collection; -import net.sf.japi.util.filter.AndFilterForArray; -import net.sf.japi.util.filter.AndFilterForIterable; -import net.sf.japi.util.filter.CollectionFilter; /** This interface servers as a common interface for filters. * @author <a href="mailto:Chr...@it...">Christian Hujer</a> @@ -39,6 +36,7 @@ /** Factory for useful filters. * @author <a href="mailto:ch...@it...">Christian Hujer</a> */ + @SuppressWarnings({"StaticMethodNamingConvention", "UtilityClass", "InnerClassOfInterface"}) final class Factory { /** Utility class, must not be instantiated. */ Modified: trunk/src/app/net/sf/japi/util/filter/NotFilter.java =================================================================== --- trunk/src/app/net/sf/japi/util/filter/NotFilter.java 2006-04-11 23:00:57 UTC (rev 48) +++ trunk/src/app/net/sf/japi/util/filter/NotFilter.java 2006-04-11 23:01:40 UTC (rev 49) @@ -20,8 +20,6 @@ package net.sf.japi.util.filter; -import net.sf.japi.util.filter.Filter; - /** A Filter that is the negation of another filter. * @author <a href="mailto:Chr...@it...">Christian Hujer</a> */ Modified: trunk/src/app/net/sf/japi/util/filter/OrFilterForArray.java =================================================================== --- trunk/src/app/net/sf/japi/util/filter/OrFilterForArray.java 2006-04-11 23:00:57 UTC (rev 48) +++ trunk/src/app/net/sf/japi/util/filter/OrFilterForArray.java 2006-04-11 23:01:40 UTC (rev 49) @@ -20,8 +20,6 @@ package net.sf.japi.util.filter; -import net.sf.japi.util.filter.Filter; - /** A Filter used to OR-combine other filters given as array. * @author <a href="mailto:Chr...@it...">Christian Hujer</a> */ @@ -34,7 +32,7 @@ * @param filters Filters to OR */ OrFilterForArray(final Filter<T>[] filters) { - this.filters = filters; + this.filters = filters.clone(); } /** {@inheritDoc} */ Modified: trunk/src/app/net/sf/japi/util/filter/OrFilterForIterable.java =================================================================== --- trunk/src/app/net/sf/japi/util/filter/OrFilterForIterable.java 2006-04-11 23:00:57 UTC (rev 48) +++ trunk/src/app/net/sf/japi/util/filter/OrFilterForIterable.java 2006-04-11 23:01:40 UTC (rev 49) @@ -20,8 +20,6 @@ package net.sf.japi.util.filter; -import net.sf.japi.util.filter.Filter; - /** A Filter used to OR-combine other filters given as {@link Iterable}. * @author <a href="mailto:Chr...@it...">Christian Hujer</a> */ Modified: trunk/src/app/net/sf/japi/util/filter/file/AbstractFileFilter.java =================================================================== --- trunk/src/app/net/sf/japi/util/filter/file/AbstractFileFilter.java 2006-04-11 23:00:57 UTC (rev 48) +++ trunk/src/app/net/sf/japi/util/filter/file/AbstractFileFilter.java 2006-04-11 23:01:40 UTC (rev 49) @@ -23,6 +23,7 @@ /** A FileFilter that combines several File filtering classes and interfaces. * @author <a href="mailto:ch...@it...">Christian Hujer</a> */ -public abstract class AbstractFileFilter extends javax.swing.filechooser.FileFilter implements net.sf.japi.util.filter.file.FileFilter { +@SuppressWarnings({"EmptyClass"}) +public abstract class AbstractFileFilter extends javax.swing.filechooser.FileFilter implements FileFilter { } // class FileFilter Modified: trunk/src/app/net/sf/japi/util/filter/file/Factory.java =================================================================== --- trunk/src/app/net/sf/japi/util/filter/file/Factory.java 2006-04-11 23:00:57 UTC (rev 48) +++ trunk/src/app/net/sf/japi/util/filter/file/Factory.java 2006-04-11 23:01:40 UTC (rev 49) @@ -18,16 +18,23 @@ * 02111-1307, USA. */ - package net.sf.japi.util.filter.file; import java.io.File; +import net.sf.japi.util.filter.Filter; /** A factory for filters. * @author <a href="mailto:ch...@it...">Christian Hujer</a> + * @todo check whether this class is complete + * @todo check whether this class is required or instead {@link Filter.Factory} should be used */ +@SuppressWarnings({"UtilityClass", "StaticMethodNamingConvention"}) public class Factory { + /** Private Utility Class Constructor. */ + private Factory() { + } + /** Creates a FileFilter which returns the opposite of the supplied filter. * @param filter Filter to invert * @return inverted filter @@ -51,7 +58,7 @@ /** {@inheritDoc} */ @Override public boolean accept(final File pathname) { - return !((java.io.FileFilter)filter).accept(pathname); + return !filter.accept(pathname); } /** {@inheritDoc} */ Modified: trunk/src/app/net/sf/japi/util/filter/file/FileFilter.java =================================================================== --- trunk/src/app/net/sf/japi/util/filter/file/FileFilter.java 2006-04-11 23:00:57 UTC (rev 48) +++ trunk/src/app/net/sf/japi/util/filter/file/FileFilter.java 2006-04-11 23:01:40 UTC (rev 49) @@ -27,6 +27,8 @@ /** An interface that joins {@link java.io.FileFilter} with {@link Filter}. * @author <a href="mailto:ch...@it...">Christian Hujer</a> */ +// This class is intentionally named like one of its superclasses +@SuppressWarnings({"ClassNameSameAsAncestorName"}) public interface FileFilter extends java.io.FileFilter, Filter<File> { } // interface FileFilter Modified: trunk/src/app/net/sf/japi/util/filter/file/FilenameFileFilter.java =================================================================== --- trunk/src/app/net/sf/japi/util/filter/file/FilenameFileFilter.java 2006-04-11 23:00:57 UTC (rev 48) +++ trunk/src/app/net/sf/japi/util/filter/file/FilenameFileFilter.java 2006-04-11 23:01:40 UTC (rev 49) @@ -21,13 +21,12 @@ package net.sf.japi.util.filter.file; import java.io.File; -import javax.swing.filechooser.FileFilter; /** Swing FileFilter implementation that filters files with specified names. * @author <a href="mailto:Chr...@it...">Christian Hujer</a> * @todo find a convenient way for i18n/l10n of this class */ -public final class FilenameFileFilter extends FileFilter { +public final class FilenameFileFilter extends AbstractFileFilter { /** Wether to accept directories. */ private final boolean acceptDirectories; @@ -62,7 +61,7 @@ this.acceptDirectories = acceptDirectories; this.negate = negate; this.description = description; - this.names = names; + this.names = names.clone(); } /** {@inheritDoc} */ @@ -71,17 +70,17 @@ } /** {@inheritDoc} */ - @Override public boolean accept(final File file) { - final String fileName = file.getName(); + @Override public boolean accept(final File pathname) { + final String fileName = pathname.getName(); boolean ret; if (negate) { ret = true; for (final String name : names) { ret &= !fileName.equals(name); } - ret |= acceptDirectories && file.isDirectory(); + ret |= acceptDirectories && pathname.isDirectory(); } else { - ret = acceptDirectories && file.isDirectory(); + ret = acceptDirectories && pathname.isDirectory(); for (final String name : names) { ret |= fileName.equals(name); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-11 23:01:04
|
Revision: 48 Author: christianhujer Date: 2006-04-11 16:00:57 -0700 (Tue, 11 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=48&view=rev Log Message: ----------- Added task to unify package blank lines. Modified Paths: -------------- trunk/src/doc/tasks.xhtml Modified: trunk/src/doc/tasks.xhtml =================================================================== --- trunk/src/doc/tasks.xhtml 2006-04-11 22:57:40 UTC (rev 47) +++ trunk/src/doc/tasks.xhtml 2006-04-11 23:00:57 UTC (rev 48) @@ -139,6 +139,10 @@ Several Utility Classes do not yet have a private constructor. They all should get one. The documentation on all these private constructors should follow the same pattern. </dd> + <dt>Unify Whitespace</dt> + <dd> + Some classes have two blank lines between copyright comment and package, some have only one. This should be unified. + </dd> </dl> </body> </html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-11 22:57:45
|
Revision: 47 Author: christianhujer Date: 2006-04-11 15:57:40 -0700 (Tue, 11 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=47&view=rev Log Message: ----------- Added task to unify utility class constructors. Modified Paths: -------------- trunk/src/doc/tasks.xhtml Modified: trunk/src/doc/tasks.xhtml =================================================================== --- trunk/src/doc/tasks.xhtml 2006-04-11 22:33:29 UTC (rev 46) +++ trunk/src/doc/tasks.xhtml 2006-04-11 22:57:40 UTC (rev 47) @@ -134,6 +134,11 @@ Currently, the year and name are fixed. This should be improved. </dd> + <dt>Unify Utility Classes</dt> + <dd> + Several Utility Classes do not yet have a private constructor. They all should get one. + The documentation on all these private constructors should follow the same pattern. + </dd> </dl> </body> </html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-11 22:33:39
|
Revision: 46 Author: christianhujer Date: 2006-04-11 15:33:29 -0700 (Tue, 11 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=46&view=rev Log Message: ----------- Updated tasks. Modified Paths: -------------- trunk/src/doc/tasks.xhtml Modified: trunk/src/doc/tasks.xhtml =================================================================== --- trunk/src/doc/tasks.xhtml 2006-04-11 22:04:53 UTC (rev 45) +++ trunk/src/doc/tasks.xhtml 2006-04-11 22:33:29 UTC (rev 46) @@ -112,6 +112,28 @@ <dd> Add a syntax highlighting for property files. </dd> + <dt>Remove old references to ITCQIS</dt> + <dd> + Some source still contains references to ITCQIS other than Cher's mail address. + These references should be removed. + </dd> + <dt>Unify package documentation and XHTML sources</dt> + <dd> + Some package documentation is XHTML Basic. + Some documents are XHTML 1.1 and some are XHTML 1.1 + XInclude. + This should be unified to always be XHTML 1.1. + </dd> + <dt>Remove unused meta stuff from XHTML sources</dt> + <dd> + Some XHTML sources contain unused meta stuff. + This should be removed. + </dd> + <dt>Improve copyright handling</dt> + <dd> + Files get automatic copyright notices. + Currently, the year and name are fixed. + This should be improved. + </dd> </dl> </body> </html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-11 22:05:18
|
Revision: 45 Author: christianhujer Date: 2006-04-11 15:04:53 -0700 (Tue, 11 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=45&view=rev Log Message: ----------- Cosmetic improvements. Modified Paths: -------------- trunk/src/app/net/sf/japi/io/BCD.java trunk/src/app/net/sf/japi/lang/SuperClassIterator.java trunk/src/app/net/sf/japi/swing/action.properties trunk/src/app/net/sf/japi/swing/bookmarks/BookmarkManager.java trunk/src/app/net/sf/japi/util/Collections2.java trunk/src/app/net/sf/japi/util/EndianConverter.java trunk/src/app/net/sf/japi/util/EnumerationIterator.java trunk/src/app/net/sf/japi/util/Table.java trunk/src/app/net/sf/japi/xml/FilteredNodeList.java trunk/src/app/net/sf/japi/xml/NodeListIterator.java Modified: trunk/src/app/net/sf/japi/io/BCD.java =================================================================== --- trunk/src/app/net/sf/japi/io/BCD.java 2006-04-11 22:03:07 UTC (rev 44) +++ trunk/src/app/net/sf/japi/io/BCD.java 2006-04-11 22:04:53 UTC (rev 45) @@ -23,14 +23,13 @@ /** A class with methods for converting BCD data from and to Binary data. * Currently only int is supported. - * Probably <code>code.itcqis.io</code> is not the ideal package for this class, yet it seems most appropriate. - * @author $Author: christianhujer $ - * @version $Revision: 1.2 $ + * Probably <code>net.sf.japi.io</code> is not the ideal package for this class, yet it seems most appropriate. */ public final class BCD { /** Private constructor - no instances needed. */ - private BCD() {} + private BCD() { + } /** Convert a BCD value to an int value. * @param bcd BCD value @@ -62,10 +61,11 @@ /** Check wether a BCD value is correct. * If the supplied value contains a nibble with a value >= 10, it will throw an IllegalArgumentException. * Otherwise it will simply return. + * @param bcd number to check */ public static void check(final int bcd) { for (int i = 0; i < 8; i++) { - if ( (0xF & bcd >> 4 * i) >= 10) { + if ((0xF & bcd >> 4 * i) >= 10) { throw new IllegalArgumentException(); } } @@ -77,7 +77,7 @@ */ public static boolean isBcd(final int bcd) { for (int i = 0; i < 8; i++) { - if ( (0xF & bcd >> 4 * i) >= 10) { + if ((0xF & bcd >> 4 * i) >= 10) { return false; } } @@ -105,7 +105,7 @@ public static int correct(final int bcd) { int newBcd = bcd; for (int i = 0; i < 8; i++) { - if ( (0xF & bcd >> 4 * i) >= 10) { + if ((0xF & bcd >> 4 * i) >= 10) { newBcd -= 10 << 4 * i; newBcd += 1 << 4 * (i + 1); } Modified: trunk/src/app/net/sf/japi/lang/SuperClassIterator.java =================================================================== --- trunk/src/app/net/sf/japi/lang/SuperClassIterator.java 2006-04-11 22:03:07 UTC (rev 44) +++ trunk/src/app/net/sf/japi/lang/SuperClassIterator.java 2006-04-11 22:04:53 UTC (rev 45) @@ -18,7 +18,6 @@ * 02111-1307, USA. */ - package net.sf.japi.lang; import java.util.Iterator; Modified: trunk/src/app/net/sf/japi/swing/action.properties =================================================================== --- trunk/src/app/net/sf/japi/swing/action.properties 2006-04-11 22:03:07 UTC (rev 44) +++ trunk/src/app/net/sf/japi/swing/action.properties 2006-04-11 22:04:53 UTC (rev 45) @@ -52,3 +52,4 @@ saxErrorClose.text=Close saxError.title=XML Errors dialogDontShowAgain=Show this dialog again next time. +laf=Look and Feel \ No newline at end of file Modified: trunk/src/app/net/sf/japi/swing/bookmarks/BookmarkManager.java =================================================================== --- trunk/src/app/net/sf/japi/swing/bookmarks/BookmarkManager.java 2006-04-11 22:03:07 UTC (rev 44) +++ trunk/src/app/net/sf/japi/swing/bookmarks/BookmarkManager.java 2006-04-11 22:04:53 UTC (rev 45) @@ -81,7 +81,7 @@ private BookmarkFolder bookmarks = new BookmarkFolder(); /** Action Factory. */ - private static final ActionFactory actionFactory = ActionFactory.getFactory("com.itcqis.swing.bookmarks"); + private static final ActionFactory actionFactory = ActionFactory.getFactory("net.sf.japi.swing.bookmarks"); /** The ProgramFrame this BookmarkManager manages bookmarks for. */ private Bookmarkable bookmarkable; Modified: trunk/src/app/net/sf/japi/util/Collections2.java =================================================================== --- trunk/src/app/net/sf/japi/util/Collections2.java 2006-04-11 22:03:07 UTC (rev 44) +++ trunk/src/app/net/sf/japi/util/Collections2.java 2006-04-11 22:04:53 UTC (rev 45) @@ -94,7 +94,7 @@ */ public static final <T, C extends Collection<T>> int removeFilter(final C collection, final Filter<? super T> filter) { int removed = 0; - for (T o : collection) { + for (final T o : collection) { if (!filter.accept(o)) { collection.remove(o); removed++; @@ -146,6 +146,7 @@ */ public static final <T> boolean isSorted(final List<T> list, final Comparator<? super T> c) { if (c == null) { + //noinspection unchecked,RawUseOfParameterizedType return isSorted((List) list); } if (list.size() < 2) { Modified: trunk/src/app/net/sf/japi/util/EndianConverter.java =================================================================== --- trunk/src/app/net/sf/japi/util/EndianConverter.java 2006-04-11 22:03:07 UTC (rev 44) +++ trunk/src/app/net/sf/japi/util/EndianConverter.java 2006-04-11 22:04:53 UTC (rev 45) @@ -25,15 +25,20 @@ * endian integer to a big endian integer and vice versa. * @author <a href="mailto:Chr...@it...">Christian Hujer</a> */ +@SuppressWarnings({"UtilityClass"}) public class EndianConverter { + /** Private constructor to prevent instantiation. */ + private EndianConverter() { + } + /** Convert a double. * This method changes byte order from 1, 2, 3, 4, 5, 6, 7, 8 to 8, 7, 6, 5, 4, 3, 2, 1. * @param d double to convert * @return converted double */ - public static final double se(final double d) { - return Double.longBitsToDouble(se(Double.doubleToRawLongBits(d))); + public static final double swapEndianess(final double d) { + return Double.longBitsToDouble(swapEndianess(Double.doubleToRawLongBits(d))); } /** Convert a float. @@ -41,8 +46,8 @@ * @param f float to convert * @return converted float */ - public static final float se(final float f) { - return Float.intBitsToFloat(se(Float.floatToRawIntBits(f))); + public static final float swapEndianess(final float f) { + return Float.intBitsToFloat(swapEndianess(Float.floatToRawIntBits(f))); } /** Convert a long. @@ -50,16 +55,17 @@ * @param l long to convert * @return converted long */ - public static final long se(final long l) { + @SuppressWarnings("OverlyComplexBooleanExpression") + public static final long swapEndianess(final long l) { return - (l & 0x00000000000000FFl) << 56 | - (l & 0x000000000000FF00l) << 40 | - (l & 0x0000000000FF0000l) << 24 | - (l & 0x00000000FF000000l) << 8 | - (l & 0x000000FF00000000l) >>> 8 | - (l & 0x0000FF0000000000l) >>> 24 | - (l & 0x00FF000000000000l) >>> 40 | - (l & 0xFF00000000000000l) >>> 56; + (l & 0x00000000000000FFL) << 56 | + (l & 0x000000000000FF00L) << 40 | + (l & 0x0000000000FF0000L) << 24 | + (l & 0x00000000FF000000L) << 8 | + (l & 0x000000FF00000000L) >>> 8 | + (l & 0x0000FF0000000000L) >>> 24 | + (l & 0x00FF000000000000L) >>> 40 | + (l & 0xFF00000000000000L) >>> 56; } /** Convert an int. @@ -67,7 +73,8 @@ * @param i int to convert * @return converted int */ - public static final int se(final int i) { + @SuppressWarnings("OverlyComplexBooleanExpression") + public static final int swapEndianess(final int i) { return (i & 0x000000FF) << 24 | (i & 0x0000FF00) << 8 | @@ -80,7 +87,7 @@ * @param c char to convert * @return converted char */ - public static final char se(final char c) { + public static final char swapEndianess(final char c) { return (char) ((c & 0x00FF) << 8 | (c & 0xFF00) >>> 8); @@ -91,7 +98,7 @@ * @param s short to convert * @return converted short */ - public static final short se(final short s) { + public static final short swapEndianess(final short s) { return (short) ((s & 0x00FF) << 8 | (s & 0xFF00) >>> 8); @@ -102,7 +109,7 @@ * @param b byte to convert * @return converted byte (same as b) */ - public static final byte se(final byte b) { + public static final byte swapEndianess(final byte b) { return b; } @@ -111,7 +118,8 @@ * @param b boolean to convert * @return converted boolean (same as b) */ - public static final boolean se(final boolean b) { + @SuppressWarnings({"BooleanMethodNameMustStartWithQuestion"}) + public static final boolean swapEndianess(final boolean b) { return b; } Modified: trunk/src/app/net/sf/japi/util/EnumerationIterator.java =================================================================== --- trunk/src/app/net/sf/japi/util/EnumerationIterator.java 2006-04-11 22:03:07 UTC (rev 44) +++ trunk/src/app/net/sf/japi/util/EnumerationIterator.java 2006-04-11 22:04:53 UTC (rev 45) @@ -51,6 +51,9 @@ } /** {@inheritDoc} */ + // SuppressWarnings here because of bug in IntelliJ. + // enumeration.nextElement actually can throw a NoSuchElementException. + @SuppressWarnings({"IteratorNextCanNotThrowNoSuchElementException"}) public T next() throws NoSuchElementException { return enumeration.nextElement(); } Modified: trunk/src/app/net/sf/japi/util/Table.java =================================================================== --- trunk/src/app/net/sf/japi/util/Table.java 2006-04-11 22:03:07 UTC (rev 44) +++ trunk/src/app/net/sf/japi/util/Table.java 2006-04-11 22:04:53 UTC (rev 45) @@ -54,7 +54,7 @@ final Set<T1> firsts = new HashSet<T1>(); for (final Pair<T1, T2> pair : pairs) { final T2 pairSecond = pair.getSecond(); - if (pairSecond == second || pairSecond.equals(second)) { + if (pairSecond.equals(second)) { firsts.add(pair.getFirst()); } } @@ -69,7 +69,7 @@ final Set<Pair<T1,T2>> pairsByFirst = new HashSet<Pair<T1,T2>>(); for (Pair<T1, T2> pair : pairs) { final T1 pairFirst = pair.getFirst(); - if (pairFirst == first || pairFirst.equals(first)) { + if (pairFirst.equals(first)) { pairsByFirst.add(pair); } } @@ -84,7 +84,7 @@ final Set<Pair<T1,T2>> pairsBySecond = new HashSet<Pair<T1,T2>>(); for (Pair<T1, T2> pair : pairs) { final T2 pairSecond = pair.getSecond(); - if (pairSecond == second || pairSecond.equals(second)) { + if (pairSecond.equals(second)) { pairsBySecond.add(pair); } } @@ -99,7 +99,7 @@ final Set<T2> seconds = new HashSet<T2>(); for (final Pair<T1, T2> pair : pairs) { final T1 pairFirst = pair.getFirst(); - if (pairFirst == first || pairFirst.equals(first)) { + if (pairFirst.equals(first)) { seconds.add(pair.getSecond()); } } @@ -125,28 +125,42 @@ /** Remove all pairs that match a first. * @param first first to match + * @return whether a matching pair was removed + * @retval <code>true</code> if at least one pair was removed + * @retval <code>false</code> if no matching pairs were found */ - public void removeAllFirst(final T1 first) { + public boolean removeAllFirst(final T1 first) { + boolean ret = false; + //noinspection ForLoopWithMissingComponent for (final Iterator<Pair<T1,T2>> it = pairs.iterator(); it.hasNext();) { final Pair<T1,T2> pair = it.next(); final T1 pairFirst = pair.getFirst(); - if (pairFirst == first || pairFirst.equals(first)) { + if (pairFirst.equals(first)) { it.remove(); + ret = true; } } + return ret; } /** Remove all pairs that match a second. * @param second second to match + * @return whether a matching pair was removed + * @retval <code>true</code> if at least one pair was removed + * @retval <code>false</code> if no matching pairs were found */ - public void removeAllSecond(final T2 second) { + public boolean removeAllSecond(final T2 second) { + boolean ret = false; + //noinspection ForLoopWithMissingComponent for (final Iterator<Pair<T1,T2>> it = pairs.iterator(); it.hasNext();) { final Pair<T1,T2> pair = it.next(); final T2 pairSecond = pair.getSecond(); - if (pairSecond == second || pairSecond.equals(second)) { + if (pairSecond.equals(second)) { it.remove(); + ret = true; } } + return ret; } /** Remove a pair from the table. Modified: trunk/src/app/net/sf/japi/xml/FilteredNodeList.java =================================================================== --- trunk/src/app/net/sf/japi/xml/FilteredNodeList.java 2006-04-11 22:03:07 UTC (rev 44) +++ trunk/src/app/net/sf/japi/xml/FilteredNodeList.java 2006-04-11 22:04:53 UTC (rev 45) @@ -52,6 +52,7 @@ tmpNodes.add(node); } } + //noinspection unchecked nodes = (T[]) tmpNodes.toArray(new Node[tmpNodes.size()]); } @@ -69,6 +70,7 @@ tmpNodes.add(node); } } + //noinspection unchecked nodes = (T[]) tmpNodes.toArray(new Node[tmpNodes.size()]); } Modified: trunk/src/app/net/sf/japi/xml/NodeListIterator.java =================================================================== --- trunk/src/app/net/sf/japi/xml/NodeListIterator.java 2006-04-11 22:03:07 UTC (rev 44) +++ trunk/src/app/net/sf/japi/xml/NodeListIterator.java 2006-04-11 22:04:53 UTC (rev 45) @@ -105,6 +105,7 @@ /** {@inheritDoc} */ @NotNull public T next() throws NoSuchElementException { + //noinspection unchecked final T item = (T) nodeList.item(index++); if (item == null) { throw new NoSuchElementException(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-11 22:03:17
|
Revision: 44 Author: christianhujer Date: 2006-04-11 15:03:07 -0700 (Tue, 11 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=44&view=rev Log Message: ----------- Removed old meta elements. Fixed title. Modified Paths: -------------- trunk/src/app/net/sf/japi/sql/package.html Modified: trunk/src/app/net/sf/japi/sql/package.html =================================================================== --- trunk/src/app/net/sf/japi/sql/package.html 2006-04-11 22:02:26 UTC (rev 43) +++ trunk/src/app/net/sf/japi/sql/package.html 2006-04-11 22:03:07 UTC (rev 44) @@ -3,27 +3,7 @@ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> - <title>com.itcqis.sql</title> - <meta name="Copyright" content="© 2003 ITCQIS GmbH. All rights reserved" /> - <meta name="Author" content="ITCQIS GmbH, $Author: christianhujer $" /> - <meta scheme="CVS" name="Id" content="$Id: package.html,v 1.1 2006/02/26 22:46:04 christianhujer Exp $" /> - <meta scheme="CVS" name="Source" content="$Source: /cvsroot/japi/japi/src/app/net/sf/japi/sql/package.html,v $" /> - <meta scheme="CVS" name="State" content="$State: Exp $" /> - <meta scheme="CVS" name="Author" content="$Author: christianhujer $" /> - <meta scheme="CVS" name="Revision" content="$Revision: 1.1 $" /> - <meta scheme="CVS" name="Date" content="$Date: 2006/02/26 22:46:04 $" /> - <meta scheme="CVS" name="Log" content=" - $Log: package.html,v $ - Revision 1.1 2006/02/26 22:46:04 christianhujer - Added some new packages and classes. - - Revision 1.1 2003/02/14 16:49:23 chris - Added package documentation. - BUG: missing imports. FIXED. - BUG: while loop not implemented. FIXED. - - " /> - <!--<meta scheme="ITCQIS" name="TODO" content="" />--> + <title>net.sf.japi.sql</title> </head> <body> <p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-11 22:02:35
|
Revision: 43 Author: christianhujer Date: 2006-04-11 15:02:26 -0700 (Tue, 11 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=43&view=rev Log Message: ----------- Removed old meta removal. Modified Paths: -------------- trunk/src/doc/api/release.xslt trunk/src/doc/cleanupXhtml11.xslt Modified: trunk/src/doc/api/release.xslt =================================================================== --- trunk/src/doc/api/release.xslt 2006-04-11 21:44:49 UTC (rev 42) +++ trunk/src/doc/api/release.xslt 2006-04-11 22:02:26 UTC (rev 43) @@ -23,7 +23,6 @@ <xsl:template match="html:head/@profile"/> <xsl:template match="html:html/@version"/> <xsl:template match="html:meta[@scheme='CVS']"/> - <xsl:template match="html:meta[@scheme='ITCQIS']"/> <xsl:template match="html:td/@colspan[.='1']|html:td/@rowspan[.='1']|html:th/@colspan[.='1']|html:th/@rowspan[.='1']"/> <xsl:template match="html:a/@shape[.='rect']"/> <xsl:template match="html:input/@type[.='text']"/> Modified: trunk/src/doc/cleanupXhtml11.xslt =================================================================== --- trunk/src/doc/cleanupXhtml11.xslt 2006-04-11 21:44:49 UTC (rev 42) +++ trunk/src/doc/cleanupXhtml11.xslt 2006-04-11 22:02:26 UTC (rev 43) @@ -35,7 +35,6 @@ <xsl:template match="html:head/@profile"/> <xsl:template match="html:html/@version"/> <xsl:template match="html:meta[@scheme='CVS']"/> - <xsl:template match="html:meta[@scheme='ITCQIS']"/> <xsl:template match="html:td/@colspan[.='1']|html:td/@rowspan[.='1']|html:th/@colspan[.='1']|html:th/@rowspan[.='1']"/> <xsl:template match="html:a/@shape[.='rect']"/> <xsl:template match="html:input/@type[.='text']"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-11 21:44:58
|
Revision: 42 Author: christianhujer Date: 2006-04-11 14:44:49 -0700 (Tue, 11 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=42&view=rev Log Message: ----------- Added some test cases. Modified Paths: -------------- trunk/src/test/net/sf/japi/lang/SuperClassIteratorTest.java trunk/src/test/net/sf/japi/util/Arrays2Test.java Modified: trunk/src/test/net/sf/japi/lang/SuperClassIteratorTest.java =================================================================== --- trunk/src/test/net/sf/japi/lang/SuperClassIteratorTest.java 2006-04-11 21:03:21 UTC (rev 41) +++ trunk/src/test/net/sf/japi/lang/SuperClassIteratorTest.java 2006-04-11 21:44:49 UTC (rev 42) @@ -20,10 +20,7 @@ package test.net.sf.japi.lang; -/** Test for SuperClassIterator. - * @author <a href="mailto:ch...@it...">Christian Hujer</a> - */ - +import java.util.NoSuchElementException; import junit.framework.TestCase; import net.sf.japi.lang.SuperClassIterator; @@ -43,7 +40,7 @@ } /** Test case for {@link SuperClassIterator#SuperClassIterator(Class<?>)}. */ - public void testSuperClassIterator() throws Exception { + public void testSuperClassIterator() { final SuperClassIterator it = new SuperClassIterator(null); assertFalse("SuperClassIterator with null class must not have next.", it.hasNext()); try { @@ -54,4 +51,44 @@ } } + /** Test case for {@link SuperClassIterator#hasNext()}. */ + public void testHasNext() { + final SuperClassIterator it1 = new SuperClassIterator(Object.class); + assertTrue("SuperClassIterator with Object.class must have next.", it1.hasNext()); + final SuperClassIterator it2 = new SuperClassIterator(String.class); + assertTrue("SuperClassIterator with String.class must have next.", it2.hasNext()); + } + + /** Test case for {@link SuperClassIterator#next()}. */ + public void testNext() { + final SuperClassIterator it1 = new SuperClassIterator(Object.class); + assertEquals("First element returned from SuperClassIterator for Object.class must be Object.class", it1.next(), Object.class); + try { + it1.next(); + fail("Second invocation of next() on SuperClassIterator for Object.class must throw NoSuchElementException."); + } catch (final NoSuchElementException ignore) { + /* expected exception */ + } + final SuperClassIterator it2 = new SuperClassIterator(String.class); + assertEquals("First element returned from SuperClassIterator for String.class must be String.class", it2.next(), String.class); + assertEquals("Second element returned from SuperClassIterator for String.class must be Object.class", it2.next(), Object.class); + try { + it2.next(); + fail("Third invocation of next() on SuperClassIterator for String.class must throw NoSuchElementException."); + } catch (final NoSuchElementException ignore) { + /* expected exception */ + } + } + + /** Test case for {@link SuperClassIterator#remove()}. */ + public void testRemove() { + final SuperClassIterator it1 = new SuperClassIterator(Object.class); + try { + it1.remove(); + fail("remove() is expected to be unsupported in SuperClassIterator."); + } catch (final UnsupportedOperationException ignore) { + /* expected exception */ + } + } + } // class SuperClassIteratorTest Modified: trunk/src/test/net/sf/japi/util/Arrays2Test.java =================================================================== --- trunk/src/test/net/sf/japi/util/Arrays2Test.java 2006-04-11 21:03:21 UTC (rev 41) +++ trunk/src/test/net/sf/japi/util/Arrays2Test.java 2006-04-11 21:44:49 UTC (rev 42) @@ -20,10 +20,6 @@ package test.net.sf.japi.util; -/** TODO - * @author <a href="mailto:ch...@it...">Christian Hujer</a> - */ - import java.util.Arrays; import junit.framework.TestCase; import net.sf.japi.util.Arrays2; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-11 21:03:41
|
Revision: 41 Author: christianhujer Date: 2006-04-11 14:03:21 -0700 (Tue, 11 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=41&view=rev Log Message: ----------- Added code conventions configuration. Added Paths: ----------- trunk/src/JAPI_iridia_inspection.xml trunk/src/checkstyle.xml trunk/src/configuration_1_2.dtd Added: trunk/src/JAPI_iridia_inspection.xml =================================================================== --- trunk/src/JAPI_iridia_inspection.xml (rev 0) +++ trunk/src/JAPI_iridia_inspection.xml 2006-04-11 21:03:21 UTC (rev 41) @@ -0,0 +1,638 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- IntelliJ Inspection profile for JAPI. + - To use it, copy it to ~/.IntelliJIdea50/config/inspection/JAPI.xml + --> +<inspections profile_name="JAPI" version="1.0"> + <inspection_tool class="AssertAsName" level="ERROR" enabled="true" /> + <inspection_tool class="EnumAsName" level="ERROR" enabled="true" /> + <inspection_tool class="InstanceofChain" level="WARNING" enabled="true" /> + <inspection_tool class="ClassReferencesSubclass" level="WARNING" enabled="true" /> + <inspection_tool class="DeclareCollectionAsInterface" level="WARNING" enabled="true" /> + <inspection_tool class="InstanceofThis" level="WARNING" enabled="true" /> + <inspection_tool class="OverlyStrongTypeCast" level="WARNING" enabled="true" /> + <inspection_tool class="MethodOnlyUsedFromInnerClass" level="WARNING" enabled="true"> + <option name="ignoreMethodsAccessedFromAnonymousClass" value="false" /> + </inspection_tool> + <inspection_tool class="ReplaceAssignmentWithOperatorAssignment" level="WARNING" enabled="true" /> + <inspection_tool class="AssignmentToForLoopParameter" level="WARNING" enabled="true" /> + <inspection_tool class="AssignmentToCatchBlockParameter" level="WARNING" enabled="true" /> + <inspection_tool class="AssignmentToMethodParameter" level="WARNING" enabled="true" /> + <inspection_tool class="NestedAssignment" level="WARNING" enabled="true" /> + <inspection_tool class="AnonymousClassMethodCount" level="WARNING" enabled="true"> + <option name="m_limit" value="1" /> + </inspection_tool> + <inspection_tool class="FieldCount" level="WARNING" enabled="true"> + <option name="m_countConstantFields" value="false" /> + <option name="m_considerStaticFinalFieldsConstant" value="false" /> + <option name="m_limit" value="10" /> + </inspection_tool> + <inspection_tool class="MethodCount" level="WARNING" enabled="true"> + <option name="m_limit" value="20" /> + </inspection_tool> + <inspection_tool class="ConstructorCount" level="WARNING" enabled="true"> + <option name="m_limit" value="5" /> + </inspection_tool> + <inspection_tool class="ClassNestingDepth" level="WARNING" enabled="true"> + <option name="m_limit" value="1" /> + </inspection_tool> + <inspection_tool class="AnonymousClassComplexity" level="WARNING" enabled="true"> + <option name="m_limit" value="3" /> + </inspection_tool> + <inspection_tool class="ClassComplexity" level="WARNING" enabled="true"> + <option name="m_limit" value="80" /> + </inspection_tool> + <inspection_tool class="ClassCoupling" level="WARNING" enabled="true"> + <option name="m_includeJavaClasses" value="false" /> + <option name="m_includeLibraryClasses" value="false" /> + <option name="m_limit" value="15" /> + </inspection_tool> + <inspection_tool class="AnonymousInnerClass" level="WARNING" enabled="true" /> + <inspection_tool class="ClassMayBeInterface" level="WARNING" enabled="true" /> + <inspection_tool class="ClassNameDiffersFromFileName" level="WARNING" enabled="true" /> + <inspection_tool class="ClassInTopLevelPackage" level="WARNING" enabled="true" /> + <inspection_tool class="ConstantDeclaredInInterface" level="WARNING" enabled="true" /> + <inspection_tool class="EmptyClass" level="WARNING" enabled="true" /> + <inspection_tool class="FinalMethodInFinalClass" level="WARNING" enabled="true" /> + <inspection_tool class="InnerClassOnInterface" level="WARNING" enabled="true"> + <option name="m_ignoreInnerInterfaces" value="false" /> + </inspection_tool> + <inspection_tool class="LimitedScopeInnerClass" level="WARNING" enabled="true" /> + <inspection_tool class="MarkerInterface" level="WARNING" enabled="true" /> + <inspection_tool class="MissingDeprecatedAnnotation" level="WARNING" enabled="true" /> + <inspection_tool class="MissingOverrideAnnotation" level="WARNING" enabled="true" /> + <inspection_tool class="MultipleTopLevelClassesInFile" level="WARNING" enabled="true" /> + <inspection_tool class="ClassInitializer" level="WARNING" enabled="true" /> + <inspection_tool class="ProtectedMemberInFinalClass" level="WARNING" enabled="true" /> + <inspection_tool class="PublicConstructorInNonPublicClass" level="WARNING" enabled="true" /> + <inspection_tool class="Singleton" level="WARNING" enabled="true" /> + <inspection_tool class="StaticNonFinalField" level="WARNING" enabled="true" /> + <inspection_tool class="UtilityClass" level="WARNING" enabled="true" /> + <inspection_tool class="UtilityClassWithPublicConstructor" level="WARNING" enabled="true" /> + <inspection_tool class="UtilityClassWithoutPrivateConstructor" level="WARNING" enabled="true" /> + <inspection_tool class="CloneCallsConstructors" level="WARNING" enabled="true" /> + <inspection_tool class="CloneInNonCloneableClass" level="WARNING" enabled="true" /> + <inspection_tool class="CloneableImplementsClone" level="WARNING" enabled="true"> + <option name="m_ignoreCloneableDueToInheritance" value="false" /> + </inspection_tool> + <inspection_tool class="ThrowablePrintStackTrace" level="WARNING" enabled="true" /> + <inspection_tool class="ThreadDumpStack" level="WARNING" enabled="true" /> + <inspection_tool class="ObsoleteCollection" level="WARNING" enabled="true" /> + <inspection_tool class="SystemOutErr" level="WARNING" enabled="true" /> + <inspection_tool class="CStyleArrayDeclaration" level="WARNING" enabled="true" /> + <inspection_tool class="ChainedEquality" level="WARNING" enabled="true" /> + <inspection_tool class="ConfusingOctalEscape" level="WARNING" enabled="true" /> + <inspection_tool class="ControlFlowStatementWithoutBraces" level="WARNING" enabled="true" /> + <inspection_tool class="LiteralAsArgToStringEquals" level="WARNING" enabled="true" /> + <inspection_tool class="LocalCanBeFinal" level="WARNING" enabled="true"> + <option name="REPORT_VARIABLES" value="true" /> + <option name="REPORT_PARAMETERS" value="true" /> + </inspection_tool> + <inspection_tool class="MissortedModifiers" level="WARNING" enabled="true"> + <option name="m_requireAnnotationsFirst" value="true" /> + </inspection_tool> + <inspection_tool class="MultipleDeclaration" level="WARNING" enabled="true" /> + <inspection_tool class="RedundantFieldInitialization" level="WARNING" enabled="true" /> + <inspection_tool class="RedundantImplements" level="WARNING" enabled="true" /> + <inspection_tool class="UnnecessarilyQualifiedStaticUsage" level="WARNING" enabled="true"> + <option name="m_ignoreStaticFieldAccesses" value="false" /> + <option name="m_ignoreStaticMethodCalls" value="false" /> + <option name="m_ignoreStaticAccessFromStaticContext" value="false" /> + </inspection_tool> + <inspection_tool class="UnnecessaryThis" level="WARNING" enabled="true" /> + <inspection_tool class="UnnecessarySuperConstructor" level="WARNING" enabled="true" /> + <inspection_tool class="UnnecessaryBlockStatement" level="WARNING" enabled="true" /> + <inspection_tool class="UnnecessaryEnumModifier" level="WARNING" enabled="true" /> + <inspection_tool class="UnnecessaryFullyQualifiedName" level="WARNING" enabled="true"> + <option name="m_ignoreJavadoc" value="false" /> + </inspection_tool> + <inspection_tool class="UnnecessaryInterfaceModifier" level="WARNING" enabled="true" /> + <inspection_tool class="UnnecessaryParentheses" level="WARNING" enabled="true" /> + <inspection_tool class="UnnecessaryQualifierForThis" level="WARNING" enabled="true" /> + <inspection_tool class="MultipleTypedDeclaration" level="WARNING" enabled="true" /> + <inspection_tool class="BreakStatement" level="WARNING" enabled="true" /> + <inspection_tool class="BreakStatementWithLabel" level="WARNING" enabled="true" /> + <inspection_tool class="ConditionalExpressionWithIdenticalBranches" level="WARNING" enabled="true" /> + <inspection_tool class="NegatedConditional" level="WARNING" enabled="true"> + <option name="m_ignoreNegatedNullComparison" value="true" /> + </inspection_tool> + <inspection_tool class="ConfusingElse" level="WARNING" enabled="true" /> + <inspection_tool class="ContinueStatement" level="WARNING" enabled="true" /> + <inspection_tool class="ContinueStatementWithLabel" level="WARNING" enabled="true" /> + <inspection_tool class="DefaultNotLastCaseInSwitch" level="WARNING" enabled="true" /> + <inspection_tool class="DuplicateCondition" level="WARNING" enabled="true" /> + <inspection_tool class="EnumSwitchStatementWhichMissesCases" level="WARNING" enabled="true"> + <option name="ignoreSwitchStatementsWithDefault" value="false" /> + </inspection_tool> + <inspection_tool class="FallthruInSwitchStatement" level="WARNING" enabled="true" /> + <inspection_tool class="ForLoopReplaceableByWhile" level="WARNING" enabled="true"> + <option name="m_ignoreLoopsWithoutConditions" value="false" /> + </inspection_tool> + <inspection_tool class="ForLoopWithMissingComponent" level="WARNING" enabled="true" /> + <inspection_tool class="IfStatementWithIdenticalBranches" level="WARNING" enabled="true" /> + <inspection_tool class="NegatedIfElse" level="WARNING" enabled="true"> + <option name="m_ignoreNegatedNullComparison" value="true" /> + </inspection_tool> + <inspection_tool class="IfStatementWithTooManyBranches" level="WARNING" enabled="true"> + <option name="m_limit" value="3" /> + </inspection_tool> + <inspection_tool class="LabeledStatement" level="WARNING" enabled="true" /> + <inspection_tool class="SwitchStatementWithConfusingDeclaration" level="WARNING" enabled="true" /> + <inspection_tool class="NestedSwitchStatement" level="WARNING" enabled="true" /> + <inspection_tool class="NestedConditionalExpression" level="WARNING" enabled="true" /> + <inspection_tool class="OverlyComplexBooleanExpression" level="WARNING" enabled="true"> + <option name="m_limit" value="3" /> + <option name="m_ignorePureConjunctionsDisjunctions" value="true" /> + </inspection_tool> + <inspection_tool class="PointlessIndexOfComparison" level="WARNING" enabled="true" /> + <inspection_tool class="SwitchStatementWithTooFewBranches" level="WARNING" enabled="true"> + <option name="m_limit" value="2" /> + </inspection_tool> + <inspection_tool class="SwitchStatementDensity" level="WARNING" enabled="true"> + <option name="m_limit" value="20" /> + </inspection_tool> + <inspection_tool class="SwitchStatementWithTooManyBranches" level="WARNING" enabled="true"> + <option name="m_limit" value="10" /> + </inspection_tool> + <inspection_tool class="SwitchStatementsWithoutDefault" level="WARNING" enabled="true"> + <option name="m_ignoreFullyCoveredEnums" value="true" /> + </inspection_tool> + <inspection_tool class="UnnecessaryDefault" level="WARNING" enabled="true" /> + <inspection_tool class="ReuseOfLocalVariable" level="WARNING" enabled="true" /> + <inspection_tool class="TooBroadScope" level="WARNING" enabled="true"> + <option name="m_allowConstructorAsInitializer" value="false" /> + <option name="m_onlyLookAtBlocks" value="false" /> + </inspection_tool> + <inspection_tool class="AssignmentToCollectionFieldFromParameter" level="WARNING" enabled="true" /> + <inspection_tool class="AssignmentToDateFieldFromParameter" level="WARNING" enabled="true" /> + <inspection_tool class="PackageVisibleField" level="WARNING" enabled="true" /> + <inspection_tool class="PackageVisibleInnerClass" level="WARNING" enabled="true" /> + <inspection_tool class="ProtectedField" level="WARNING" enabled="true" /> + <inspection_tool class="ProtectedInnerClass" level="WARNING" enabled="true" /> + <inspection_tool class="PublicField" level="WARNING" enabled="true" /> + <inspection_tool class="ReturnOfCollectionField" level="WARNING" enabled="true"> + <option name="ignorePrivateMethods" value="true" /> + </inspection_tool> + <inspection_tool class="ReturnOfDateField" level="WARNING" enabled="true" /> + <inspection_tool class="CatchGenericClass" level="WARNING" enabled="true" /> + <inspection_tool class="InstanceofCatchParameter" level="WARNING" enabled="true" /> + <inspection_tool class="ErrorRethrown" level="WARNING" enabled="true" /> + <inspection_tool class="ThreadDeathRethrown" level="WARNING" enabled="true" /> + <inspection_tool class="NestedTryStatement" level="WARNING" enabled="true" /> + <inspection_tool class="NonFinalFieldOfException" level="WARNING" enabled="true" /> + <inspection_tool class="TooBroadCatch" level="WARNING" enabled="true" /> + <inspection_tool class="ThrowCaughtLocally" level="WARNING" enabled="true" /> + <inspection_tool class="ExceptionFromCatchWhichDoesntWrap" level="WARNING" enabled="true" /> + <inspection_tool class="Finalize" level="WARNING" enabled="true" /> + <inspection_tool class="FinalizeNotProtected" level="WARNING" enabled="true" /> + <inspection_tool class="OnDemandImport" level="WARNING" enabled="true" /> + <inspection_tool class="SamePackageImport" level="WARNING" enabled="true" /> + <inspection_tool class="JavaLangImport" level="WARNING" enabled="true" /> + <inspection_tool class="RedundantImport" level="WARNING" enabled="true" /> + <inspection_tool class="UnusedImport" level="WARNING" enabled="true" /> + <inspection_tool class="AbstractClassNeverImplemented" level="WARNING" enabled="true" /> + <inspection_tool class="AbstractClassWithoutAbstractMethods" level="WARNING" enabled="true" /> + <inspection_tool class="AbstractMethodOverridesAbstractMethod" level="WARNING" enabled="true" /> + <inspection_tool class="AbstractMethodOverridesConcreteMethod" level="WARNING" enabled="true" /> + <inspection_tool class="AbstractMethodWithMissingImplementations" level="WARNING" enabled="true" /> + <inspection_tool class="ExtendsConcreteCollection" level="WARNING" enabled="true" /> + <inspection_tool class="NonProtectedConstructorInAbstractClass" level="WARNING" enabled="true"> + <option name="m_ignoreNonPublicClasses" value="false" /> + </inspection_tool> + <inspection_tool class="RedundantMethodOverride" level="WARNING" enabled="true" /> + <inspection_tool class="StaticInheritance" level="WARNING" enabled="true" /> + <inspection_tool class="AbstractMethodCallInConstructor" level="WARNING" enabled="true" /> + <inspection_tool class="InstanceVariableUninitializedUse" level="WARNING" enabled="true"> + <option name="m_ignorePrimitives" value="false" /> + </inspection_tool> + <inspection_tool class="NonFinalStaticVariableUsedInClassInitialization" level="WARNING" enabled="true" /> + <inspection_tool class="OverriddenMethodCallInConstructor" level="WARNING" enabled="true" /> + <inspection_tool class="StaticVariableInitialization" level="WARNING" enabled="true"> + <option name="m_ignorePrimitives" value="false" /> + </inspection_tool> + <inspection_tool class="StaticVariableUninitializedUse" level="WARNING" enabled="true"> + <option name="m_ignorePrimitives" value="false" /> + </inspection_tool> + <inspection_tool class="ThisEscapedInConstructor" level="WARNING" enabled="true" /> + <inspection_tool class="NonThreadSafeLazyInitialization" level="WARNING" enabled="true" /> + <inspection_tool class="DateToString" level="WARNING" enabled="true" /> + <inspection_tool class="NumericToString" level="WARNING" enabled="true" /> + <inspection_tool class="StringEqualsIgnoreCase" level="WARNING" enabled="true" /> + <inspection_tool class="StringToUpperWithoutLocale" level="WARNING" enabled="true" /> + <inspection_tool class="TimeToString" level="WARNING" enabled="true" /> + <inspection_tool class="CharacterComparison" level="WARNING" enabled="true" /> + <inspection_tool class="SimpleDateFormatWithoutLocale" level="WARNING" enabled="true" /> + <inspection_tool class="StringTokenizer" level="WARNING" enabled="true" /> + <inspection_tool class="AbstractClassWithOnlyOneDirectInheritor" level="WARNING" enabled="true" /> + <inspection_tool class="AnonymousInnerClassMayBeStatic" level="WARNING" enabled="true" /> + <inspection_tool class="ConnectionResource" level="WARNING" enabled="true" /> + <inspection_tool class="InterfaceWithOnlyOneDirectInheritor" level="WARNING" enabled="true" /> + <inspection_tool class="CheckForOutOfMemoryOnLargeArrayAllocation" level="WARNING" enabled="true"> + <option name="m_limit" value="64" /> + </inspection_tool> + <inspection_tool class="OverlyLargePrimitiveArrayInitializer" level="WARNING" enabled="true"> + <option name="m_limit" value="64" /> + </inspection_tool> + <inspection_tool class="RecordStoreResource" level="WARNING" enabled="true" /> + <inspection_tool class="IndexOfReplaceableByContains" level="WARNING" enabled="true" /> + <inspection_tool class="RawUseOfParameterizedType" level="WARNING" enabled="true"> + <option name="ignoreObjectConstruction" value="true" /> + </inspection_tool> + <inspection_tool class="FieldHasSetterButNoGetter" level="WARNING" enabled="true" /> + <inspection_tool class="ClassWithMultipleLoggers" level="WARNING" enabled="true"> + <option name="loggerClassName" value="java.util.logging.Logger" /> + </inspection_tool> + <inspection_tool class="NonStaticFinalLogger" level="WARNING" enabled="true"> + <option name="loggerClassName" value="java.util.logging.Logger" /> + </inspection_tool> + <inspection_tool class="SystemGC" level="WARNING" enabled="true" /> + <inspection_tool class="StaticCollection" level="WARNING" enabled="true"> + <option name="m_ignoreWeakCollections" value="false" /> + </inspection_tool> + <inspection_tool class="StringBufferField" level="WARNING" enabled="true" /> + <inspection_tool class="ZeroLengthArrayInitialization" level="WARNING" enabled="true" /> + <inspection_tool class="ThreeNegationsPerMethod" level="WARNING" enabled="true"> + <option name="m_ignoreInEquals" value="true" /> + </inspection_tool> + <inspection_tool class="ParametersPerMethod" level="WARNING" enabled="true"> + <option name="m_limit" value="5" /> + </inspection_tool> + <inspection_tool class="CyclomaticComplexity" level="WARNING" enabled="true"> + <option name="m_limit" value="10" /> + </inspection_tool> + <inspection_tool class="MethodCoupling" level="WARNING" enabled="true"> + <option name="m_includeJavaClasses" value="false" /> + <option name="m_includeLibraryClasses" value="false" /> + <option name="m_limit" value="10" /> + </inspection_tool> + <inspection_tool class="NonCommentSourceStatements" level="WARNING" enabled="true"> + <option name="m_limit" value="30" /> + </inspection_tool> + <inspection_tool class="NestingDepth" level="WARNING" enabled="true"> + <option name="m_limit" value="5" /> + </inspection_tool> + <inspection_tool class="BooleanMethodNameMustStartWithQuestion" level="WARNING" enabled="true"> + <option name="nameCheckString" value="is,can,has,should,could,will,shall,check,contains,equals,add,put,remove,startsWith,endsWith" /> + </inspection_tool> + <inspection_tool class="ClassNamingConvention" level="WARNING" enabled="true"> + <option name="m_regex" value="[A-Z][0-9A-Za-z]*" /> + <option name="m_minLength" value="4" /> + <option name="m_maxLength" value="64" /> + </inspection_tool> + <inspection_tool class="ConstantNamingConvention" level="WARNING" enabled="true"> + <option name="m_regex" value="[A-Z][A-Z0-9_]*" /> + <option name="m_minLength" value="5" /> + <option name="m_maxLength" value="32" /> + </inspection_tool> + <inspection_tool class="EnumeratedClassNamingConvention" level="WARNING" enabled="true"> + <option name="m_regex" value="[A-Z][A-Za-z]*" /> + <option name="m_minLength" value="8" /> + <option name="m_maxLength" value="64" /> + </inspection_tool> + <inspection_tool class="EnumeratedConstantNamingConvention" level="WARNING" enabled="true"> + <option name="m_regex" value="[A-Z][A-Za-z]*" /> + <option name="m_minLength" value="5" /> + <option name="m_maxLength" value="32" /> + </inspection_tool> + <inspection_tool class="InstanceMethodNamingConvention" level="WARNING" enabled="true"> + <option name="m_regex" value="[a-z][A-Za-z]*" /> + <option name="m_minLength" value="4" /> + <option name="m_maxLength" value="32" /> + </inspection_tool> + <inspection_tool class="InstanceVariableNamingConvention" level="WARNING" enabled="true"> + <option name="m_regex" value="[a-z][A-Za-z0-9]*" /> + <option name="m_minLength" value="3" /> + <option name="m_maxLength" value="32" /> + </inspection_tool> + <inspection_tool class="InterfaceNamingConvention" level="WARNING" enabled="true"> + <option name="m_regex" value="[A-Z][0-9A-Za-z]*" /> + <option name="m_minLength" value="5" /> + <option name="m_maxLength" value="64" /> + </inspection_tool> + <inspection_tool class="LocalVariableNamingConvention" level="WARNING" enabled="true"> + <option name="m_ignoreForLoopParameters" value="false" /> + <option name="m_ignoreCatchParameters" value="false" /> + <option name="m_regex" value="[a-z][A-Za-z0-9]*" /> + <option name="m_minLength" value="1" /> + <option name="m_maxLength" value="20" /> + </inspection_tool> + <inspection_tool class="ParameterNamingConvention" level="WARNING" enabled="true"> + <option name="m_regex" value="[a-z][A-Za-z]*" /> + <option name="m_minLength" value="1" /> + <option name="m_maxLength" value="20" /> + </inspection_tool> + <inspection_tool class="NonBooleanMethodNameMayNotStartWithQuestion" level="WARNING" enabled="true"> + <option name="nameCheckString" value="is,can,has,should,could,will,shall,check,contains,equals,add,put,remove,startsWith,endsWith" /> + </inspection_tool> + <inspection_tool class="StaticMethodNamingConvention" level="WARNING" enabled="true"> + <option name="m_regex" value="[a-z][0-9A-Za-z]*" /> + <option name="m_minLength" value="4" /> + <option name="m_maxLength" value="32" /> + </inspection_tool> + <inspection_tool class="StaticVariableNamingConvention" level="WARNING" enabled="true"> + <option name="m_regex" value="s_[a-z][A-Za-z]*" /> + <option name="m_minLength" value="5" /> + <option name="m_maxLength" value="32" /> + </inspection_tool> + <inspection_tool class="TypeParameterNamingConvention" level="WARNING" enabled="true"> + <option name="m_regex" value="[A-Z]" /> + <option name="m_minLength" value="1" /> + <option name="m_maxLength" value="1" /> + </inspection_tool> + <inspection_tool class="AnnotationNamingConvention" level="WARNING" enabled="true"> + <option name="m_regex" value="[A-Z][A-Za-z]*" /> + <option name="m_minLength" value="8" /> + <option name="m_maxLength" value="64" /> + </inspection_tool> + <inspection_tool class="ClassNameSameAsAncestorName" level="WARNING" enabled="true" /> + <inspection_tool class="ConfusingMainMethod" level="WARNING" enabled="true" /> + <inspection_tool class="ExceptionNameDoesntEndWithException" level="WARNING" enabled="true" /> + <inspection_tool class="MethodNameSameAsClassName" level="WARNING" enabled="true" /> + <inspection_tool class="MethodNameSameAsParentName" level="WARNING" enabled="true" /> + <inspection_tool class="MethodNamesDifferOnlyByCase" level="WARNING" enabled="true" /> + <inspection_tool class="UpperCaseFieldNameNotConstant" level="WARNING" enabled="true" /> + <inspection_tool class="NonExceptionNameEndsWithException" level="WARNING" enabled="true" /> + <inspection_tool class="ParameterNameDiffersFromOverriddenParameter" level="WARNING" enabled="true"> + <option name="m_ignoreSingleCharacterNames" value="true" /> + </inspection_tool> + <inspection_tool class="QuestionableName" level="WARNING" enabled="true"> + <option name="nameCheckString" value="foo,bar,baz" /> + </inspection_tool> + <inspection_tool class="StandardVariableNames" level="WARNING" enabled="true" /> + <inspection_tool class="DollarSignInName" level="WARNING" enabled="true" /> + <inspection_tool class="ImplicitNumericConversion" level="WARNING" enabled="true"> + <option name="m_ignoreWideningConversions" value="true" /> + </inspection_tool> + <inspection_tool class="ComparisonOfShortAndChar" level="WARNING" enabled="true" /> + <inspection_tool class="ComparisonToNaN" level="WARNING" enabled="true" /> + <inspection_tool class="ConfusingFloatingPointLiteral" level="WARNING" enabled="true" /> + <inspection_tool class="ConstantMathCall" level="WARNING" enabled="true" /> + <inspection_tool class="DivideByZero" level="WARNING" enabled="true" /> + <inspection_tool class="BigDecimalEquals" level="WARNING" enabled="true" /> + <inspection_tool class="FloatingPointEquality" level="WARNING" enabled="true" /> + <inspection_tool class="IntegerDivisionInFloatingPointContext" level="WARNING" enabled="true" /> + <inspection_tool class="LongLiteralsEndingWithLowercaseL" level="WARNING" enabled="true" /> + <inspection_tool class="NonReproducibleMathCall" level="WARNING" enabled="true" /> + <inspection_tool class="CachedNumberConstructorCall" level="WARNING" enabled="true" /> + <inspection_tool class="OverlyComplexArithmeticExpression" level="WARNING" enabled="true"> + <option name="m_limit" value="6" /> + </inspection_tool> + <inspection_tool class="CallToSimpleGetterInClass" level="WARNING" enabled="true" /> + <inspection_tool class="CallToSimpleSetterInClass" level="WARNING" enabled="true" /> + <inspection_tool class="TrivialStringConcatenation" level="WARNING" enabled="true" /> + <inspection_tool class="StringBufferReplaceableByString" level="WARNING" enabled="true" /> + <inspection_tool class="FieldMayBeStatic" level="WARNING" enabled="true" /> + <inspection_tool class="InnerClassMayBeStatic" level="WARNING" enabled="true" /> + <inspection_tool class="MapReplaceableByEnumMap" level="WARNING" enabled="true" /> + <inspection_tool class="MethodMayBeStatic" level="WARNING" enabled="true"> + <option name="m_onlyPrivateOrFinal" value="false" /> + <option name="m_ignoreEmptyMethods" value="true" /> + </inspection_tool> + <inspection_tool class="MultiplyOrDivideByPowerOfTwo" level="WARNING" enabled="true" /> + <inspection_tool class="StringReplaceableByStringBuffer" level="WARNING" enabled="true" /> + <inspection_tool class="SubstringZero" level="WARNING" enabled="true" /> + <inspection_tool class="SetReplaceableByEnumSet" level="WARNING" enabled="true" /> + <inspection_tool class="LengthOneStringsInConcatenation" level="WARNING" enabled="true" /> + <inspection_tool class="StringConcatenationInLoops" level="WARNING" enabled="true"> + <option name="m_ignoreUnlessAssigned" value="false" /> + </inspection_tool> + <inspection_tool class="StringEqualsEmptyString" level="WARNING" enabled="true" /> + <inspection_tool class="StringBufferReplaceableByStringBuilder" level="WARNING" enabled="true" /> + <inspection_tool class="StringBufferToStringInConcatenation" level="WARNING" enabled="true" /> + <inspection_tool class="TailRecursion" level="WARNING" enabled="true" /> + <inspection_tool class="JavaLangReflect" level="WARNING" enabled="true" /> + <inspection_tool class="RandomDoubleForRandomInteger" level="WARNING" enabled="true" /> + <inspection_tool class="RuntimeExec" level="WARNING" enabled="true" /> + <inspection_tool class="SystemExit" level="WARNING" enabled="true" /> + <inspection_tool class="SystemGetenv" level="WARNING" enabled="true" /> + <inspection_tool class="NativeMethods" level="WARNING" enabled="true" /> + <inspection_tool class="UseOfAWTPeerClass" level="WARNING" enabled="true" /> + <inspection_tool class="UseOfJDBCDriverClass" level="WARNING" enabled="true" /> + <inspection_tool class="UseOfProcessBuilder" level="WARNING" enabled="true" /> + <inspection_tool class="UseOfSunClasses" level="WARNING" enabled="true" /> + <inspection_tool class="AssignmentToStaticFieldFromInstanceMethod" level="WARNING" enabled="true" /> + <inspection_tool class="AssignmentUsedAsCondition" level="WARNING" enabled="true" /> + <inspection_tool class="ObjectToString" level="WARNING" enabled="true" /> + <inspection_tool class="CastConflictsWithInstanceof" level="WARNING" enabled="true" /> + <inspection_tool class="CastToIncompatibleInterface" level="WARNING" enabled="true" /> + <inspection_tool class="CollectionAddedToSelf" level="WARNING" enabled="true" /> + <inspection_tool class="MisspelledCompareTo" level="WARNING" enabled="true" /> + <inspection_tool class="CovariantCompareTo" level="WARNING" enabled="true" /> + <inspection_tool class="CovariantEquals" level="WARNING" enabled="true" /> + <inspection_tool class="EmptyInitializer" level="WARNING" enabled="true" /> + <inspection_tool class="MisspelledEquals" level="WARNING" enabled="true" /> + <inspection_tool class="EqualsBetweenInconvertibleTypes" level="WARNING" enabled="true" /> + <inspection_tool class="ArrayEquals" level="WARNING" enabled="true" /> + <inspection_tool class="EqualsWhichDoesntCheckParameterClass" level="WARNING" enabled="true" /> + <inspection_tool class="ForLoopThatDoesntUseLoopVariable" level="WARNING" enabled="true" /> + <inspection_tool class="MisspelledHashcode" level="WARNING" enabled="true" /> + <inspection_tool class="InstanceofIncompatibleInterface" level="WARNING" enabled="true" /> + <inspection_tool class="InstantiationOfUtilityClass" level="WARNING" enabled="true" /> + <inspection_tool class="IteratorHasNextCallsIteratorNext" level="WARNING" enabled="true" /> + <inspection_tool class="IteratorNextDoesNotThrowNoSuchElementException" level="WARNING" enabled="true" /> + <inspection_tool class="CompareToUsesNonFinalVariable" level="WARNING" enabled="true" /> + <inspection_tool class="EqualsUsesNonFinalVariable" level="WARNING" enabled="true" /> + <inspection_tool class="HashCodeUsesNonFinalVariable" level="WARNING" enabled="true" /> + <inspection_tool class="NonShortCircuitBoolean" level="WARNING" enabled="true" /> + <inspection_tool class="ObjectEquality" level="WARNING" enabled="true"> + <option name="m_ignoreEnums" value="true" /> + <option name="m_ignoreClassObjects" value="false" /> + <option name="m_ignorePrivateConstructors" value="false" /> + </inspection_tool> + <inspection_tool class="OctalAndDecimalIntegersMixed" level="WARNING" enabled="true" /> + <inspection_tool class="ResultOfObjectAllocationIgnored" level="WARNING" enabled="true" /> + <inspection_tool class="ReturnNull" level="WARNING" enabled="true"> + <option name="m_reportObjectMethods" value="true" /> + <option name="m_reportArrayMethods" value="true" /> + <option name="m_reportCollectionMethods" value="true" /> + </inspection_tool> + <inspection_tool class="StaticFieldReferenceOnSubclass" level="WARNING" enabled="true" /> + <inspection_tool class="StaticCallOnSubclass" level="WARNING" enabled="true" /> + <inspection_tool class="SubtractionInCompareTo" level="WARNING" enabled="true" /> + <inspection_tool class="SuspiciousToArrayCall" level="WARNING" enabled="true" /> + <inspection_tool class="SuspiciousSystemArraycopy" level="WARNING" enabled="true" /> + <inspection_tool class="TextLabelInSwitchStatement" level="WARNING" enabled="true" /> + <inspection_tool class="MisspelledToString" level="WARNING" enabled="true" /> + <inspection_tool class="ArchaicSystemPropertyAccess" level="WARNING" enabled="true" /> + <inspection_tool class="ResultSetIndexZero" level="WARNING" enabled="true" /> + <inspection_tool class="UseOfPropertiesAsHashtable" level="WARNING" enabled="true" /> + <inspection_tool class="UnusedProperty" level="WARNING" enabled="true" /> + <inspection_tool class="ChannelResource" level="WARNING" enabled="true" /> + <inspection_tool class="HibernateResource" level="WARNING" enabled="true" /> + <inspection_tool class="IOResource" level="WARNING" enabled="true" /> + <inspection_tool class="JDBCResource" level="WARNING" enabled="true" /> + <inspection_tool class="JNDIResource" level="WARNING" enabled="true" /> + <inspection_tool class="SocketResource" level="WARNING" enabled="true" /> + <inspection_tool class="DriverManagerGetConnection" level="WARNING" enabled="true" /> + <inspection_tool class="JDBCPrepareStatementWithNonConstantString" level="WARNING" enabled="true" /> + <inspection_tool class="RuntimeExecWithNonConstantString" level="WARNING" enabled="true" /> + <inspection_tool class="JDBCExecuteWithNonConstantString" level="WARNING" enabled="true" /> + <inspection_tool class="LoadLibraryWithNonConstantString" level="WARNING" enabled="true" /> + <inspection_tool class="SystemSetSecurityManager" level="WARNING" enabled="true" /> + <inspection_tool class="ClassLoader2Instantiation" level="WARNING" enabled="true" /> + <inspection_tool class="CustomClassloader" level="WARNING" enabled="true" /> + <inspection_tool class="CustomSecurityManager" level="WARNING" enabled="true" /> + <inspection_tool class="PublicStaticArrayField" level="WARNING" enabled="true" /> + <inspection_tool class="PublicStaticCollectionField" level="WARNING" enabled="true" /> + <inspection_tool class="UnsecureRandomNumberGeneration" level="WARNING" enabled="true" /> + <inspection_tool class="ExternalizableWithSerializationMethods" level="WARNING" enabled="true" /> + <inspection_tool class="ReadObjectInitialization" level="WARNING" enabled="true" /> + <inspection_tool class="NonSerializableWithSerializationMethods" level="WARNING" enabled="true" /> + <inspection_tool class="NonSerializableWithSerialVersionUIDField" level="WARNING" enabled="true" /> + <inspection_tool class="ReadObjectAndWriteObjectPrivate" level="WARNING" enabled="true" /> + <inspection_tool class="ReadResolveAndWriteReplaceProtected" level="WARNING" enabled="true" /> + <inspection_tool class="SerializableWithUnconstructableAncestor" level="WARNING" enabled="true" /> + <inspection_tool class="SerializableHasSerializationMethods" level="WARNING" enabled="true"> + <option name="m_ignoreSerializableDueToInheritance" value="true" /> + </inspection_tool> + <inspection_tool class="SerializableHasSerialVersionUIDField" level="WARNING" enabled="true"> + <option name="m_ignoreSerializableDueToInheritance" value="true" /> + </inspection_tool> + <inspection_tool class="SerializableInnerClassHasSerialVersionUIDField" level="WARNING" enabled="true"> + <option name="m_ignoreSerializableDueToInheritance" value="true" /> + </inspection_tool> + <inspection_tool class="SerializableInnerClassWithNonSerializableOuterClass" level="WARNING" enabled="true"> + <option name="m_ignoreSerializableDueToInheritance" value="true" /> + </inspection_tool> + <inspection_tool class="SerialPersistentFieldsWithWrongSignature" level="WARNING" enabled="true" /> + <inspection_tool class="SerialVersionUIDNotStaticFinal" level="WARNING" enabled="true" /> + <inspection_tool class="TransientFieldInNonSerializableClass" level="WARNING" enabled="true" /> + <inspection_tool class="ArithmeticOnVolatileField" level="WARNING" enabled="true" /> + <inspection_tool class="AwaitNotInLoop" level="WARNING" enabled="true" /> + <inspection_tool class="BusyWait" level="WARNING" enabled="true" /> + <inspection_tool class="ObjectNotify" level="WARNING" enabled="true" /> + <inspection_tool class="ConditionSignal" level="WARNING" enabled="true" /> + <inspection_tool class="SystemRunFinalizersOnExit" level="WARNING" enabled="true" /> + <inspection_tool class="ThreadRun" level="WARNING" enabled="true" /> + <inspection_tool class="ThreadPriority" level="WARNING" enabled="true" /> + <inspection_tool class="ThreadStartInConstruction" level="WARNING" enabled="true" /> + <inspection_tool class="ThreadStopSuspendResume" level="WARNING" enabled="true" /> + <inspection_tool class="ThreadYield" level="WARNING" enabled="true" /> + <inspection_tool class="CallToNativeMethodWhileLocked" level="WARNING" enabled="true" /> + <inspection_tool class="SleepWhileHoldingLock" level="WARNING" enabled="true" /> + <inspection_tool class="ExtendsThread" level="WARNING" enabled="true" /> + <inspection_tool class="DoubleCheckedLocking" level="WARNING" enabled="true" /> + <inspection_tool class="EmptySynchronizedStatement" level="WARNING" enabled="true" /> + <inspection_tool class="FieldAccessedSynchronizedAndUnsynchronized" level="WARNING" enabled="true"> + <option name="countGettersAndSetters" value="false" /> + </inspection_tool> + <inspection_tool class="ThreadWithDefaultRunMethod" level="WARNING" enabled="true" /> + <inspection_tool class="SafeLock" level="WARNING" enabled="true" /> + <inspection_tool class="NestedSynchronizedStatement" level="WARNING" enabled="true" /> + <inspection_tool class="PublicFieldAccessedInSynchronizedContext" level="WARNING" enabled="true" /> + <inspection_tool class="NonSynchronizedMethodOverridesSynchronizedMethod" level="WARNING" enabled="true" /> + <inspection_tool class="NotifyCalledOnCondition" level="WARNING" enabled="true" /> + <inspection_tool class="NotifyNotInSynchronizedContext" level="WARNING" enabled="true" /> + <inspection_tool class="NakedNotify" level="WARNING" enabled="true" /> + <inspection_tool class="SynchronizeOnThis" level="WARNING" enabled="true" /> + <inspection_tool class="SynchronizeOnLock" level="WARNING" enabled="true" /> + <inspection_tool class="SynchronizedMethod" level="WARNING" enabled="true"> + <option name="m_includeNativeMethods" value="true" /> + </inspection_tool> + <inspection_tool class="UnconditionalWait" level="WARNING" enabled="true" /> + <inspection_tool class="VolatileArrayField" level="WARNING" enabled="true" /> + <inspection_tool class="VolatileLongOrDoubleField" level="WARNING" enabled="true" /> + <inspection_tool class="WaitCalledOnCondition" level="WARNING" enabled="true" /> + <inspection_tool class="WaitNotInLoop" level="WARNING" enabled="true" /> + <inspection_tool class="WaitWhileHoldingTwoLocks" level="WARNING" enabled="true" /> + <inspection_tool class="WaitNotInSynchronizedContext" level="WARNING" enabled="true" /> + <inspection_tool class="WhileLoopSpinsOnField" level="WARNING" enabled="true" /> + <inspection_tool class="LocalVariableHidingMemberVariable" level="WARNING" enabled="true"> + <option name="m_ignoreInvisibleFields" value="true" /> + <option name="m_ignoreStaticMethods" value="true" /> + </inspection_tool> + <inspection_tool class="ClassEscapesItsScope" level="WARNING" enabled="true" /> + <inspection_tool class="FieldHidesSuperclassField" level="WARNING" enabled="true"> + <option name="m_ignoreInvisibleFields" value="true" /> + </inspection_tool> + <inspection_tool class="InnerClassVariableHidesOuterClassVariable" level="WARNING" enabled="true"> + <option name="m_ignoreInvisibleFields" value="true" /> + </inspection_tool> + <inspection_tool class="MethodOverloadsParentMethod" level="WARNING" enabled="true" /> + <inspection_tool class="MethodOverridesPackageLocalMethod" level="WARNING" enabled="true" /> + <inspection_tool class="MethodOverridesPrivateMethod" level="WARNING" enabled="true" /> + <inspection_tool class="MethodOverridesStaticMethod" level="WARNING" enabled="true" /> + <inspection_tool class="ParameterHidingMemberVariable" level="WARNING" enabled="true"> + <option name="m_ignoreInvisibleFields" value="true" /> + <option name="m_ignoreStaticMethodParametersHidingInstanceFields" value="true" /> + <option name="m_ignoreForConstructors" value="true" /> + <option name="m_ignoreForPropertySetters" value="true" /> + <option name="m_ignoreForAbstractMethods" value="true" /> + </inspection_tool> + <inspection_tool class="TypeParameterHidesVisibleType" level="WARNING" enabled="true" /> + <inspection_tool class="ConstantOnLHSOfComparison" level="WARNING" enabled="true" /> + <inspection_tool class="FinalStaticMethod" level="WARNING" enabled="false" /> + <inspection_tool class="UnresolvedPropertyKey" level="WARNING" enabled="true" /> + <inspection_tool class="JUnitTestClassNamingConvention" level="WARNING" enabled="true"> + <option name="m_regex" value="[A-Z][0-9A-Za-z]*Test" /> + <option name="m_minLength" value="8" /> + <option name="m_maxLength" value="64" /> + </inspection_tool> + <inspection_tool class="JUnitAbstractTestClassNamingConvention" level="WARNING" enabled="true"> + <option name="m_regex" value="[A-Z][A-Za-z]*TestCase" /> + <option name="m_minLength" value="12" /> + <option name="m_maxLength" value="64" /> + </inspection_tool> + <inspection_tool class="TestCaseWithNoTestMethods" level="WARNING" enabled="true" /> + <inspection_tool class="TestMethodWithoutAssertion" level="WARNING" enabled="true" /> + <inspection_tool class="TestCaseInProductCode" level="WARNING" enabled="true" /> + <inspection_tool class="TestCaseWithConstructor" level="WARNING" enabled="true" /> + <inspection_tool class="AssertsWithoutMessages" level="WARNING" enabled="true" /> + <inspection_tool class="MisorderedAssertEqualsParameters" level="WARNING" enabled="true" /> + <inspection_tool class="SetupCallsSuperSetup" level="WARNING" enabled="true" /> + <inspection_tool class="MisspelledSetUp" level="WARNING" enabled="true" /> + <inspection_tool class="SetupIsPublicVoidNoArg" level="WARNING" enabled="true" /> + <inspection_tool class="SimplifiableJUnitAssertion" level="WARNING" enabled="true" /> + <inspection_tool class="StaticSuite" level="WARNING" enabled="true" /> + <inspection_tool class="TeardownCallsSuperTeardown" level="WARNING" enabled="true" /> + <inspection_tool class="MisspelledTearDown" level="WARNING" enabled="true" /> + <inspection_tool class="TeardownIsPublicVoidNoArg" level="WARNING" enabled="true" /> + <inspection_tool class="TestMethodIsPublicVoidNoArg" level="WARNING" enabled="true" /> + <inspection_tool class="UnconstructableTestCase" level="WARNING" enabled="true" /> + <expanded_node name="Inheritance issues" /> + <expanded_node name="Numeric issues" /> + <expanded_node name="Security issues" /> + <expanded_node name="JavaBeans issues" /> + <expanded_node name="Finalization issues" /> + <expanded_node name="Threading issues" /> + <expanded_node name="Verbose or redundant code constructs" /> + <expanded_node name="Probable bugs" /> + <expanded_node name="Data flow issues" /> + <expanded_node name="Imports" /> + <expanded_node name="Encapsulation issues" /> + <expanded_node name="Performance issues" /> + <expanded_node name="Html Inspections" /> + <expanded_node name="Memory issues" /> + <expanded_node name="J2ME issues" /> + <expanded_node name="Plugin DevKit" /> + <expanded_node name="Logging issues" /> + <expanded_node name="Root" /> + <expanded_node name="Properties Files" /> + <expanded_node name="Declaration Redundancy" /> + <expanded_node name="Naming conventions" /> + <expanded_node name="Portability issues" /> + <expanded_node name="Documentation issues" /> + <expanded_node name="Java language level issues" /> + <expanded_node name="Visibility issues" /> + <expanded_node name="General" /> + <expanded_node name="J2SDK5.0 specific issues and migration aids" /> + <expanded_node name="Method metrics" /> + <expanded_node name="Internationalization issues" /> + <expanded_node name="JUnit issues" /> + <expanded_node name="toString() issues" /> + <expanded_node name="Serialization issues" /> + <expanded_node name="Initialization issues" /> + <expanded_node name="Resource management issues" /> + <expanded_node name="Error handling" /> + <selected_node name="JUnit issues" /> + <ADDITIONAL_JAVADOC_TAGS value="todo, fixme, xxx, note, devs, used,retval,optional,warning,pre" /> + <ADDITIONAL_HTML_TAGS value="embed,nobr" /> + <ADDITIONAL_HTML_ATTRIBUTES value="type,wmode,src,width,height" /> + <UNUSED_SYMBOL_SETTINGS> + <option name="LOCAL_VARIABLE" value="true" /> + <option name="FIELD" value="true" /> + <option name="METHOD" value="true" /> + <option name="CLASS" value="true" /> + <option name="PARAMETER" value="true" /> + </UNUSED_SYMBOL_SETTINGS> +</inspections> + Property changes on: trunk/src/JAPI_iridia_inspection.xml ___________________________________________________________________ Name: svn:mime-type + text/xml Name: svn:eol-style + LF Added: trunk/src/checkstyle.xml =================================================================== --- trunk/src/checkstyle.xml (rev 0) +++ trunk/src/checkstyle.xml 2006-04-11 21:03:21 UTC (rev 41) @@ -0,0 +1,171 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE module PUBLIC + "-//Puppy Crawl//DTD Check Configuration 1.2//EN" + "configuration_1_2.dtd" +> +<!-- + - Checkstyle configuration that checks the sun coding conventions from: + - + - * the Java Language Specification at + - http://java.sun.com/docs/books/jls/second_edition/html/index.html + - + - * the Sun Code Conventions at http://java.sun.com/docs/codeconv/ + - + - * the Javadoc guidelines at + - http://java.sun.com/j2se/javadoc/writingdoccomments/index.html + - + - * the JDK Api documentation http://java.sun.com/j2se/docs/api/index.html + - + - * some best practices + - + - Checkstyle is very configurable. Be sure to read the documentation at + - http://checkstyle.sf.net (or in your downloaded distribution). + - + - Most Checks are configurable, be sure to consult the documentation. + - + - To completely disable a check, just comment it out or delete it from the file. + - + - Finally, it is worth reading the documentation. + --> + +<module name="Checker"> + + <!-- Checks that a package.html file exists for each package. --> + <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml --> + <module name="PackageHtml"/> + + <!-- Checks whether files end with a new line. --> + <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile --> + <module name="NewlineAtEndOfFile"/> + + <!-- Checks that property files contain the same keys. --> + <!-- See http://checkstyle.sf.net/config_misc.html#Translation --> + <module name="Translation"/> + + + <module name="TreeWalker"> + + <!-- Checks for Javadoc comments. --> + <!-- See http://checkstyle.sf.net/config_javadoc.html --> + <module name="JavadocMethod"/> + <module name="JavadocType"/> + <module name="JavadocVariable"/> + <module name="JavadocStyle"/> + + + <!-- Checks for Naming Conventions. --> + <!-- See http://checkstyle.sf.net/config_naming.html --> + <module name="ConstantName"/> + <module name="LocalFinalVariableName"/> + <module name="LocalVariableName"/> + <module name="MemberName"/> + <module name="MethodName"/> + <module name="PackageName"/> + <module name="ParameterName"/> + <module name="StaticVariableName"/> + <module name="TypeName"/> + + + <!-- Checks for Headers --> + <!-- See http://checkstyle.sf.net/config_header.html --> + <!-- <module name="Header"> --> + <!-- The follow property value demonstrates the ability --> + <!-- to have access to ANT properties. In this case it uses --> + <!-- the ${basedir} property to allow Checkstyle to be run --> + <!-- from any directory within a project. See property --> + <!-- expansion, --> + <!-- http://checkstyle.sf.net/config.html#properties --> + <!-- <property --> + <!-- name="headerFile" --> + <!-- value="${basedir}/java.header"/> --> + <!-- </module> --> + + <!-- Following interprets the header file as regular expressions. --> + <!-- <module name="RegexpHeader"/> --> + + + <!-- Checks for imports --> + <!-- See http://checkstyle.sf.net/config_import.html --> + <module name="AvoidStarImport"/> + <module name="IllegalImport"/> <!-- defaults to sun.* packages --> + <module name="RedundantImport"/> + <module name="UnusedImports"/> + + + <!-- Checks for Size Violations. --> + <!-- See http://checkstyle.sf.net/config_sizes.html --> + <module name="FileLength"/> + <module name="LineLength"> + <property name="max" value="150" /> + </module> + <!--module name="MethodLength"/ FIXME enable me! --> + <module name="ParameterNumber"/> + + + <!-- Checks for whitespace --> + <!-- See http://checkstyle.sf.net/config_whitespace.html --> + <module name="EmptyForIteratorPad"/> + <module name="MethodParamPad"/> + <module name="NoWhitespaceAfter"/> + <module name="NoWhitespaceBefore"/> + <module name="OperatorWrap"/> + <module name="ParenPad"/> + <module name="TypecastParenPad"/> + <module name="TabCharacter"/> + <module name="WhitespaceAfter"/> + <module name="WhitespaceAround"/> + + + <!-- Modifier Checks --> + <!-- See http://checkstyle.sf.net/config_modifiers.html --> + <module name="ModifierOrder"/> + <module name="RedundantModifier"/> + + + <!-- Checks for blocks. You know, those {}'s --> + <!-- See http://checkstyle.sf.net/config_blocks.html --> + <module name="AvoidNestedBlocks"/> + <module name="EmptyBlock"/> + <module name="LeftCurly"/> + <module name="NeedBraces"/> + <module name="RightCurly"/> + + + <!-- Checks for common coding problems --> + <!-- See http://checkstyle.sf.net/config_coding.html --> + <!--module name="AvoidInlineConditionals"/--> + <module name="DoubleCheckedLocking"/> <!-- MY FAVOURITE --> + <module name="EmptyStatement"/> + <module name="EqualsHashCode"/> + <!--module name="HiddenField"/ Hiding fields is intentional in setters and constructors. --> + <module name="IllegalInstantiation"/> + <module name="InnerAssignment"/> + <!--module name="MagicNumber"/ FIXME enable me! --> + <module name="MissingSwitchDefault"/> + <!--module name="RedundantThrows"/ NOTE: don't enable me, redundant throws are a form of documentation. --> + <module name="SimplifyBooleanExpression"/> + <module name="SimplifyBooleanReturn"/> + + <!-- Checks for class design --> + <!-- See http://checkstyle.sf.net/config_design.html --> + <!--module name="DesignForExtension"/ NOTE: don't enable me, I'm stupid and don't recognize this project isn't a framework. --> + <module name="FinalClass"/> + <module name="HideUtilityClassConstructor"/> + <module name="InterfaceIsType"/> + <module name="VisibilityModifier"/> + + + <!-- Miscellaneous other checks. --> + <!-- See http://checkstyle.sf.net/config_misc.html --> + <module name="ArrayTypeStyle"/> + <!--module name="FinalParameters"/ FIXME enable me! --> + <module name="GenericIllegalRegexp"> + <property name="format" value="\s+$"/> + <property name="message" value="Line has trailing spaces."/> + </module> + <!--module name="TodoComment"/ FIXME enable me! --> + <module name="UpperEll"/> + + </module> + +</module> Property changes on: trunk/src/checkstyle.xml ___________________________________________________________________ Name: svn:mime-type + text/xml Name: svn:eol-style + LF Added: trunk/src/configuration_1_2.dtd =================================================================== --- trunk/src/configuration_1_2.dtd (rev 0) +++ trunk/src/configuration_1_2.dtd 2006-04-11 21:03:21 UTC (rev 41) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- Add the following to any file that is to be validated against this DTD: + +<!DOCTYPE module PUBLIC + "-//Puppy Crawl//DTD Check Configuration 1.2//EN" + "http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> +--> + +<!ELEMENT module (module|property|metadata)*> +<!ATTLIST module name NMTOKEN #REQUIRED> + +<!ELEMENT property EMPTY> +<!ATTLIST property + name NMTOKEN #REQUIRED + value CDATA #REQUIRED + default CDATA #IMPLIED +> + +<!-- + + Used to store metadata in the Checkstyle configuration file. This + information is ignored by Checkstyle. This may be useful if you want to + store plug-in specific information. + + To avoid name clashes between different tools/plug-ins you are *strongly* + encouraged to prefix all names with your domain name. For example, use the + name "com.mycompany.parameter" instead of "parameter". + + The prefix "com.puppycrawl." is reserved for Checkstyle. + +--> + +<!ELEMENT metadata EMPTY> +<!ATTLIST metadata + name NMTOKEN #REQUIRED + value CDATA #REQUIRED +> Property changes on: trunk/src/configuration_1_2.dtd ___________________________________________________________________ Name: svn:mime-type + text/xml-external-parsed-entity Name: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-10 22:56:09
|
Revision: 40 Author: christianhujer Date: 2006-04-10 15:55:59 -0700 (Mon, 10 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=40&view=rev Log Message: ----------- Set lock on project properties. Property Changed: ---------------- trunk/project.properties Property changes on: trunk/project.properties ___________________________________________________________________ Name: svn:needs-lock + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-10 22:52:09
|
Revision: 39 Author: christianhujer Date: 2006-04-10 15:51:57 -0700 (Mon, 10 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=39&view=rev Log Message: ----------- Adding news about z0ra's financial package. Modified Paths: -------------- trunk/src/doc/start.xhtml Modified: trunk/src/doc/start.xhtml =================================================================== --- trunk/src/doc/start.xhtml 2006-04-10 22:47:20 UTC (rev 38) +++ trunk/src/doc/start.xhtml 2006-04-10 22:51:57 UTC (rev 39) @@ -26,6 +26,11 @@ Additionally it contains some useful classes about I/O and XML. Note: JAPI requires <em>J2SE 5.0</em> or later. </p> + <h2>News</h2> + <p> + JAPI gets additions for financial calculations. + New project member z0ra is adding some classes including unit tests to perform financial calculations with JAPI. + </p> <h2>Download JAPI</h2> <p> To <em>download JAPI</em>, go to the <a href="http://sourceforge.net/project/showfiles.php?group_id=149894">Files section of the JAPI Project Page</a>, choose the desired package, release and file type and download it from a mirror of your choice. @@ -46,7 +51,7 @@ You may visit the <a href="http://sourceforge.net/projects/japi">JAPI Project Page at SourceForge</a> or send mail to <a href="mailto:ch...@it...">ch...@it...</a>. </li> <li> - You may as well join <a href="irc://irc.freenode.net:6667/%23daimonin">IRC Channel <code>#daimonin</code> at <code>irc.freenode.net</code></a> and look for Cher(istheus) and Zergus. + You may as well join <a href="irc://irc.freenode.net:6667/%23daimonin">IRC Channel <code>#daimonin</code> at <code>irc.freenode.net</code></a> and look for Cher(istheus), z0ra or Zergus. Currently, the map editor of the MMORPG <a href="http://www.daimonin.net/">Daimonin</a> is JAPI's main application. </li> </ul> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-10 22:47:40
|
Revision: 38 Author: christianhujer Date: 2006-04-10 15:47:20 -0700 (Mon, 10 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=38&view=rev Log Message: ----------- Finance is not a util package, but a package of its own. Added Paths: ----------- trunk/src/app/net/sf/japi/finance/ trunk/src/app/net/sf/japi/finance/InterestCalculator.java trunk/src/test/net/sf/japi/finance/ trunk/src/test/net/sf/japi/finance/InterestCalculatorTest.java Removed Paths: ------------- trunk/src/app/net/sf/japi/util/finance/ trunk/src/test/net/sf/japi/util/finance/ Copied: trunk/src/app/net/sf/japi/finance/InterestCalculator.java (from rev 36, trunk/src/app/net/sf/japi/util/finance/InterestCalculator.java) =================================================================== --- trunk/src/app/net/sf/japi/finance/InterestCalculator.java (rev 0) +++ trunk/src/app/net/sf/japi/finance/InterestCalculator.java 2006-04-10 22:47:20 UTC (rev 38) @@ -0,0 +1,95 @@ +/* JAPI - (Yet another (hopefully) useful) Java API + * + * Copyright (C) 2006 Anja Heim + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +package net.sf.japi.finance; + +/** Class contains some functionality for calculating capital after some periods of time. + * @author <a href="mailto:miz...@we...">A. Heim</a> + */ +public class InterestCalculator { + + private final float initialCapital; + private float interestRate; + private float currentCapital; + + public InterestCalculator(final float initialCapital, final float interestRate) { + this.initialCapital = initialCapital; + this.interestRate = interestRate; + this.currentCapital = this.initialCapital; + } + + /** Calculates the overall capital after some periods beginnig with given initial capital and interest rate. + * <br />The formula is: <code>capital_after_n_periods = start_captial * ( 1 + p/100 )^n</code> + * (with p as interest rate) + * @param numberOfPeriods + * @return the overall capital after numberOfPeriods periods + */ + public float calculateCapital( int numberOfPeriods ) { + if ( numberOfPeriods < 0 ) throw new IllegalArgumentException("Number of periods has to be at least 1!"); + if ( numberOfPeriods == 0 ) + return initialCapital; + if( numberOfPeriods == 1 ) { + currentCapital = currentCapital *(1 + interestRate/100); + } else { + currentCapital = calculateCapital( numberOfPeriods - 1 ); + } + return currentCapital; + } + + /** Returns the current capital. + * + * @return current capital + */ + public float getCurrentCapital() { + return currentCapital; + } + + /** Sets new current capital. + * + * @param currentCapital + */ + public void setCurrentCapital(float currentCapital) { + this.currentCapital = currentCapital; + } + + /** Sets new interest rate. + * + * @param interestRate + */ + public void setInterestRate(float interestRate) { + this.interestRate = interestRate; + } + + /** Returns the current interest rate. + * + * @return the current interest rate + */ + public float getInterestRate() { + return interestRate; + } + + /** Resets the current capital to initial capital. + * + */ + public void resetCapital() { + this.currentCapital = this.initialCapital; + } + +} // class InterestCalculator Property changes on: trunk/src/app/net/sf/japi/finance/InterestCalculator.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Copied: trunk/src/test/net/sf/japi/finance/InterestCalculatorTest.java (from rev 37, trunk/src/test/net/sf/japi/util/finance/InterestCalculatorTest.java) =================================================================== --- trunk/src/test/net/sf/japi/finance/InterestCalculatorTest.java (rev 0) +++ trunk/src/test/net/sf/japi/finance/InterestCalculatorTest.java 2006-04-10 22:47:20 UTC (rev 38) @@ -0,0 +1,89 @@ +/* JAPI - (Yet another (hopefully) useful) Java API + * + * Copyright (C) 2006 Anja Heim + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +package test.net.sf.japi.finance; + +import junit.framework.TestCase; +import net.sf.japi.finance.InterestCalculator; + +/** Tests the capital finance class. + * Date: 09.04.2006 + * + */ +public class InterestCalculatorTest extends TestCase { + + InterestCalculator ic = new InterestCalculator(100, 15); + + public void testInterestCalculator() throws Exception { + //ic = new InterestCalculator(100, 15); + } + + /** Tests capital after 0, 1, 2 , 3 years. + * @throws Exception + */ + public void testCalculateCapital() throws Exception { + //ic = new InterestCalculator(100, 15); + + + /* first try it with invalid argument */ + try { + ic.calculateCapital(-1); + fail("Expected IllegalArgumentException."); + } catch (final IllegalArgumentException ignore) { + /* ignore */ + } + /* then use some different periods */ + assertEquals("Capital after a time period of 0 must be the starting capital.", (float)100.0 , ic.calculateCapital( 0 ) ); + assertEquals( (float)115.0 , ic.calculateCapital( 1 ) ); + assertEquals( (float)132.25 , ic.calculateCapital( 2 ) ); + assertEquals( (float)152.0875, ic.calculateCapital( 3 ) ); + } + + public void testGetCurrentCapital() throws Exception { + assertEquals( (float)100.00, ic.getCurrentCapital() ); + ic.calculateCapital(1); + assertEquals( (float)115.00, ic.getCurrentCapital() ); + } + + public void testSetCurrentCapital() throws Exception { + assertEquals( (float)100.00, ic.getCurrentCapital() ); + ic.calculateCapital(1); + assertEquals( (float)115.00, ic.getCurrentCapital() ); + ic.setCurrentCapital((float)100.00); + assertEquals( (float)100.00, ic.getCurrentCapital() ); + } + + public void testGetInterestRate() throws Exception { + assertEquals( (float)15, ic.getInterestRate() ); + } + + public void testSetInterestRate() throws Exception { + ic.setInterestRate(16); + assertEquals( (float)16, ic.getInterestRate() ); + } + + public void testResetCapital() throws Exception { + ic.calculateCapital(1); + assertEquals( (float)115, ic.getCurrentCapital() ); + ic.resetCapital(); + assertEquals( (float)100, ic.getCurrentCapital() ); + } + +} // class InterestCalculatorTest Property changes on: trunk/src/test/net/sf/japi/finance/InterestCalculatorTest.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-10 22:33:45
|
Revision: 37 Author: christianhujer Date: 2006-04-10 15:33:40 -0700 (Mon, 10 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=37&view=rev Log Message: ----------- Improved formatting. Modified Paths: -------------- trunk/src/test/net/sf/japi/util/finance/InterestCalculatorTest.java Modified: trunk/src/test/net/sf/japi/util/finance/InterestCalculatorTest.java =================================================================== --- trunk/src/test/net/sf/japi/util/finance/InterestCalculatorTest.java 2006-04-10 21:43:26 UTC (rev 36) +++ trunk/src/test/net/sf/japi/util/finance/InterestCalculatorTest.java 2006-04-10 22:33:40 UTC (rev 37) @@ -18,17 +18,17 @@ * 02111-1307, USA. */ +package test.net.sf.japi.util.finance; -package test.net.sf.japi.util.finance; +import junit.framework.TestCase; +import net.sf.japi.util.finance.InterestCalculator; + /** Tests the capital finance class. * Date: 09.04.2006 * */ +public class InterestCalculatorTest extends TestCase { -import junit.framework.TestCase; -import net.sf.japi.util.finance.InterestCalculator; - -public class InterestCalculatorTest extends TestCase { InterestCalculator ic = new InterestCalculator(100, 15); public void testInterestCalculator() throws Exception { @@ -36,7 +36,6 @@ } /** Tests capital after 0, 1, 2 , 3 years. - * * @throws Exception */ public void testCalculateCapital() throws Exception { @@ -86,4 +85,5 @@ ic.resetCapital(); assertEquals( (float)100, ic.getCurrentCapital() ); } -} \ No newline at end of file + +} // class InterestCalculatorTest This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-10 21:43:43
|
Revision: 36 Author: christianhujer Date: 2006-04-10 14:43:26 -0700 (Mon, 10 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=36&view=rev Log Message: ----------- Updated copyright. Modified Paths: -------------- trunk/src/app/net/sf/japi/util/finance/InterestCalculator.java Modified: trunk/src/app/net/sf/japi/util/finance/InterestCalculator.java =================================================================== --- trunk/src/app/net/sf/japi/util/finance/InterestCalculator.java 2006-04-10 21:41:48 UTC (rev 35) +++ trunk/src/app/net/sf/japi/util/finance/InterestCalculator.java 2006-04-10 21:43:26 UTC (rev 36) @@ -1,3 +1,24 @@ +/* JAPI - (Yet another (hopefully) useful) Java API + * + * Copyright (C) 2006 Anja Heim + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + + package net.sf.japi.util.finance; /** Class contains some functionality for calculating capital after some periods of time. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-10 21:41:54
|
Revision: 35 Author: christianhujer Date: 2006-04-10 14:41:48 -0700 (Mon, 10 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=35&view=rev Log Message: ----------- Fixed broken copyright. Modified Paths: -------------- trunk/src/test/net/sf/japi/util/finance/InterestCalculatorTest.java Modified: trunk/src/test/net/sf/japi/util/finance/InterestCalculatorTest.java =================================================================== --- trunk/src/test/net/sf/japi/util/finance/InterestCalculatorTest.java 2006-04-10 21:40:17 UTC (rev 34) +++ trunk/src/test/net/sf/japi/util/finance/InterestCalculatorTest.java 2006-04-10 21:41:48 UTC (rev 35) @@ -1,6 +1,6 @@ /* JAPI - (Yet another (hopefully) useful) Java API * - * Copyright (C) 2004-2006 Christian Hujer + * Copyright (C) 2006 Anja Heim * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-10 21:40:25
|
Revision: 34 Author: christianhujer Date: 2006-04-10 14:40:17 -0700 (Mon, 10 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=34&view=rev Log Message: ----------- Added example message Modified Paths: -------------- trunk/src/test/net/sf/japi/util/finance/InterestCalculatorTest.java Modified: trunk/src/test/net/sf/japi/util/finance/InterestCalculatorTest.java =================================================================== --- trunk/src/test/net/sf/japi/util/finance/InterestCalculatorTest.java 2006-04-10 21:28:57 UTC (rev 33) +++ trunk/src/test/net/sf/japi/util/finance/InterestCalculatorTest.java 2006-04-10 21:40:17 UTC (rev 34) @@ -51,7 +51,7 @@ /* ignore */ } /* then use some different periods */ - assertEquals( (float)100.0 , ic.calculateCapital( 0 ) ); + assertEquals("Capital after a time period of 0 must be the starting capital.", (float)100.0 , ic.calculateCapital( 0 ) ); assertEquals( (float)115.0 , ic.calculateCapital( 1 ) ); assertEquals( (float)132.25 , ic.calculateCapital( 2 ) ); assertEquals( (float)152.0875, ic.calculateCapital( 3 ) ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |