IReportAbout.java

Index Score
it.businesslogic.ireport.gui
iReport

View: Reasons, Metrics, Source Code

These are the metrics that contribute to the Enerjy Score for this file, ranked by impact. So the metrics listed at the top influence the score to a greater extent that the metrics listed at the bottom.

MetricDescription
SIZESize of the file in bytes
JAVA0144JAVA0144 Line exceeds maximum M characters
EXITSProcedure exits
JAVA0076JAVA0076 Use of magic number
JAVA0034JAVA0034 Missing braces in if statement
JAVA0173JAVA0173 Unused method parameter
JAVA0108JAVA0108 Incorrect javadoc: no @param tag for 'parameter'
OPERANDSNumber of operands
UNIQUE_OPERANDSNumber of unique operands
PROGRAM_VOLUMEHalstead program volume
CYCLOMATICCyclomatic complexity
PROGRAM_VOCABHalstead program vocabulary
JAVA0126JAVA0126 Method declares unchecked exception in throws
LINE_COMMENTNumber of line comments
JAVA0110JAVA0110 Incorrect javadoc: no @return tag
COMPARISONSNumber of comparison operators
JAVA0171JAVA0171 Unused local variable
BLOCKSNumber of blocks
RETURNSNumber of return points from functions
JAVA0117JAVA0117 Missing javadoc: method 'method'
INTERFACE_COMPLEXITYInterface complexity
JAVA0100JAVA0100 Class contains N non-final fields (maximum: M)
LOOPSNumber of loops
DOC_COMMENTNumber of javadoc comment lines
PROGRAM_LENGTHHalstead program length
FUNCTIONSNumber of function declarations
COMMENTSComment lines
PARAMSNumber of formal parameter declarations
JAVA0145JAVA0145 Tab character used in source file
/* * Copyright (C) 2005 - 2008 JasperSoft Corporation. All rights reserved. * http://www.jaspersoft.com. * * Unless you have purchased a commercial license agreement from JasperSoft, * the following license terms apply: * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation. * * This program is distributed WITHOUT ANY WARRANTY; and without 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, see http://www.gnu.org/licenses/gpl.txt * or write to: * * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, * Boston, MA USA 02111-1307 * * * * * IReportAbout.java * * Created on 6 maggio 2004, 0.20 * */ package it.businesslogic.ireport.gui; import java.util.*; import it.businesslogic.ireport.util.I18n; import it.businesslogic.ireport.util.Misc; /** * * @author Administrator */ public class IReportAbout extends javax.swing.JDialog { /** Creates new form IReportAbout */ public IReportAbout(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); //if (new java.util.Date().getTime() %2 == 0) //{ // jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/it/businesslogic/ireport/icons/logo13b.png"))); //} try { jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource( MainFrame.getBrandingProperties().getProperty("ireport.splashscreen") ))); } catch (Exception ex) {} this.setSize(380, 490); // Open in center... it.businesslogic.ireport.util.Misc.centerFrame(this); this.jEditorPaneAbout.setContentType("text/html"); this.jEditorPaneAbout.setText ("<HTML><body><font face=\"SansSerif\" size=\"3\"><center><b> " + MainFrame.getRebrandedTitle() + "</b>&nbsp;&nbsp;(c) 2002-2008 by JasperSoft Corp.<br><a href=\"mailto:giulio@jaspersoft.com\">giulio@jaspersoft.com</a><br><A HREF=\"http://ireport.sf.net\">http://ireport.sourceforge.net</A><br>License GPL<br>Special thanks to Giulio Toffoli, Teodor Danciu and to all people that supports this software. Thanks to Christopher Andre for the amazing picture used in the splash screen! </font></body></html>"); this.jEditorPane1.setContentType("text/html"); //this.jEditorPane1.setText (""); jEditorPane1.setText( Misc.getResourceContent( MainFrame.getBrandingProperties().getProperty("ireport.license.html"))); String credits = Misc.getResourceContent( MainFrame.getBrandingProperties().getProperty("ireport.credits.html")); java.text.MessageFormat mf = new java.text.MessageFormat(credits, I18n.getCurrentLocale()); credits = mf.format(new Object[]{ I18n.getString("iReportAbout.editorPane2.credits","iReport Credits"), I18n.getString("iReportAbout.editorPane2.icons","Icons created by") }); jEditorPane2.setText(credits); applyI18n(); jEditorPane1.setCaretPosition(0); jEditorPane2.setCaretPosition(0); Properties system_props = System.getProperties(); Enumeration system_props_enum = system_props.keys(); while (system_props_enum.hasMoreElements()) { String key=(String)system_props_enum.nextElement(); if (key.trim().length() == 0) continue; ((javax.swing.table.DefaultTableModel)jTableProperties.getModel()).addRow(new Object[]{key, system_props.getProperty(key,"")}); } jTableProperties.updateUI(); javax.swing.KeyStroke escape = javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0, false); javax.swing.Action escapeAction = new javax.swing.AbstractAction() { public void actionPerformed(java.awt.event.ActionEvent e) { setVisible(false); } }; getRootPane().getInputMap(javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW).put(escape, "ESCAPE"); getRootPane().getActionMap().put("ESCAPE", escapeAction); //to make the default button ... this.getRootPane().setDefaultButton(this.jButton2); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; jPanel4 = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); jButton2 = new javax.swing.JButton(); jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel2 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jEditorPaneAbout = new javax.swing.JEditorPane(); jPanel3 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jEditorPane1 = new javax.swing.JEditorPane(); jScrollPane2 = new javax.swing.JScrollPane(); jEditorPane2 = new javax.swing.JEditorPane(); jScrollPane3 = new javax.swing.JScrollPane(); jTableProperties = new javax.swing.JTable(); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { closeDialog(evt); } }); jPanel4.setLayout(new java.awt.BorderLayout()); jPanel1.setMinimumSize(new java.awt.Dimension(10, 40)); jPanel1.setPreferredSize(new java.awt.Dimension(10, 40)); jButton2.setText("Close about"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jPanel1.add(jButton2); jPanel4.add(jPanel1, java.awt.BorderLayout.SOUTH); jPanel2.setLayout(new java.awt.GridBagLayout()); jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/it/businesslogic/ireport/icons/logo132.png"))); jButton1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jButton1.setMargin(new java.awt.Insets(2, 0, 2, 0)); jButton1.setOpaque(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); jPanel2.add(jButton1, gridBagConstraints); jEditorPaneAbout.setBackground(new java.awt.Color(204, 204, 204)); jEditorPaneAbout.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jEditorPaneAbout.setEditable(false); jEditorPaneAbout.setMinimumSize(new java.awt.Dimension(104, 90)); jEditorPaneAbout.setOpaque(false); jEditorPaneAbout.setPreferredSize(new java.awt.Dimension(104, 90)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 4, 4, 4); jPanel2.add(jEditorPaneAbout, gridBagConstraints); jTabbedPane1.addTab("About", jPanel2); jPanel3.setLayout(new java.awt.BorderLayout()); jScrollPane1.setPreferredSize(new java.awt.Dimension(13, 1200)); jEditorPane1.setEditable(false); jEditorPane1.setContentType("text/html"); jScrollPane1.setViewportView(jEditorPane1); jPanel3.add(jScrollPane1, java.awt.BorderLayout.CENTER); jTabbedPane1.addTab("License", jPanel3); jEditorPane2.setEditable(false); jEditorPane2.setContentType("text/html"); jScrollPane2.setViewportView(jEditorPane2); jTabbedPane1.addTab("Credits", jScrollPane2); jTableProperties.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Property", "Value" } ) { boolean[] canEdit = new boolean [] { false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jTableProperties.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_NEXT_COLUMN); jScrollPane3.setViewportView(jTableProperties); jTabbedPane1.addTab("System properties", jScrollPane3); jPanel4.add(jTabbedPane1, java.awt.BorderLayout.CENTER); getContentPane().add(jPanel4, java.awt.BorderLayout.CENTER); pack(); }// </editor-fold>//GEN-END:initComponents private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed setVisible(false); dispose(); }//GEN-LAST:event_jButton2ActionPerformed /** Closes the dialog */ private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog setVisible(false); dispose(); }//GEN-LAST:event_closeDialog /** * @param args the command line arguments */ public static void main(String args[]) { new IReportAbout(new javax.swing.JFrame(), true).setVisible(true); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JEditorPane jEditorPane1; private javax.swing.JEditorPane jEditorPane2; private javax.swing.JEditorPane jEditorPaneAbout; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel2; private javax.swing.JPanel jPanel3; private javax.swing.JPanel jPanel4; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JScrollPane jScrollPane2; private javax.swing.JScrollPane jScrollPane3; private javax.swing.JTabbedPane jTabbedPane1; private javax.swing.JTable jTableProperties; // End of variables declaration//GEN-END:variables public void applyI18n(){ String specialThanks = ""; //if (MainFrame.constTitle.equals("iReport 1.3.2 ")) //{ // specialThanks = "Thanks to 4 year old Kira for contributing artwork to the iReport project."; //} // Start autogenerated code ---------------------- jButton2.setText(I18n.getString("iReportAbout.button2","Close about")); // End autogenerated code ---------------------- jTableProperties.getColumnModel().getColumn(0).setHeaderValue( I18n.getString("iReportAbout.tablecolumn.property","Property") ); jTableProperties.getColumnModel().getColumn(1).setHeaderValue( I18n.getString("iReportAbout.tablecolumn.value","Value") ); jTabbedPane1.setTitleAt(0, it.businesslogic.ireport.util.I18n.getString("iReportAbout.tab.About","About")); jTabbedPane1.setTitleAt(1, it.businesslogic.ireport.util.I18n.getString("iReportAbout.tab.License","License")); jTabbedPane1.setTitleAt(2, it.businesslogic.ireport.util.I18n.getString("iReportAbout.tab.Credits","Credits")); jTabbedPane1.setTitleAt(3, it.businesslogic.ireport.util.I18n.getString("iReportAbout.tab.SystemProperties","System properties")); String aboutString = Misc.getResourceContent( MainFrame.getBrandingProperties().getProperty("ireport.about.html")); java.text.MessageFormat mf = new java.text.MessageFormat(aboutString, I18n.getCurrentLocale()); aboutString = mf.format(new Object[]{ MainFrame.getRebrandedTitle(), I18n.getString("iReportAbout.editorPaneAbout1","License GPL<br>Special thanks to Giulio Toffoli, Teodor Danciu and to all people who support this software. Thanks.")}); //jEditorPane1.setText(I18n.getString("iReportAbout.editorPane1","\t<font face=\"Arial\" size=\"5\"><b>The GNU General Public License</b></font><br>\n\t\t<p><font face=\"Arial\" size=\"3\">Version 2, June 1991<br>\n\t\tCopyright &copy; 1989, 1991 Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.</font></p>\n\t\t<font face=\"Arial\" size=\"3\"><b>Preamble</b></font>\n\t\t<p><font face=\"Arial\" size=\"3\">The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">The precise terms and conditions for copying, distribution and modification follow.</font></p>\n\t\t<font face=\"Arial\" size=\"3\"><b>Terms and Conditions for Copying, Distribution, and Modification</b></h3>\n\t\t<ol>\n\t\t\t<li>This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The &quot;Program&quot;, below, refers to any such program or work, and a &quot;work based on the Program&quot; means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term &quot;modification&quot;.) Each licensee is addressed as &quot;you&quot;.\n\t\t\t<p><font face=\"Arial\" size=\"3\">Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.</font></p>\n\t\t\t<p><font face=\"Arial\" size=\"3\">&nbsp;</font></p>\n\t\t\t<li>You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.\n\t\t\t<p><font face=\"Arial\" size=\"3\">You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.</font></p>\n\t\t\t<p><font face=\"Arial\" size=\"3\">&nbsp;</font></p>\n\t\t\t<li>You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:\n\t\t\t<ol>\n\t\t\t\t&nbsp;\n\t\t\t\t<li type=\"1\">You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.\n\t\t\t\t<p><font face=\"Arial\" size=\"3\">&nbsp;</font></p>\n\t\t\t\t<li>You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.\n\t\t\t\t<p><font face=\"Arial\" size=\"3\">&nbsp;</font></p>\n\t\t\t\t<li>If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)\n\t\t\t</ol>\n\t\t\t<p><font face=\"Arial\" size=\"3\">These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.</font></p>\n\t\t\t<p><font face=\"Arial\" size=\"3\">Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.</font></p>\n\t\t\t<p><font face=\"Arial\" size=\"3\">In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.</font></p>\n\t\t\t<p><font face=\"Arial\" size=\"3\">&nbsp;</font></p>\n\t\t\t<li>You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:\n\t\t\t<ol>\n\t\t\t\t<li type=\"1\">Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,\n\t\t\t\t<p><font face=\"Arial\" size=\"3\">&nbsp;</font></p>\n\t\t\t\t<li>Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,\n\t\t\t\t<p><font face=\"Arial\" size=\"3\">&nbsp;</font></p>\n\t\t\t\t<li>Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)\n\t\t\t</ol>\n\t\t\t<p><font face=\"Arial\" size=\"3\">The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.</font></p>\n\t\t\t<p><font face=\"Arial\" size=\"3\">If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.</font></p>\n\t\t\t<p><font face=\"Arial\" size=\"3\">&nbsp;</font></p>\n\t\t\t<li>You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.\n\t\t\t<p><font face=\"Arial\" size=\"3\">&nbsp;</font></p>\n\t\t\t<li>You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.\n\t\t\t<p><font face=\"Arial\" size=\"3\">&nbsp;</font></p>\n\t\t\t<li>Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.\n\t\t\t<p><font face=\"Arial\" size=\"3\">&nbsp;</font></p>\n\t\t\t<li>If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.\n\t\t\t<p><font face=\"Arial\" size=\"3\">If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.</font></p>\n\t\t\t<p><font face=\"Arial\" size=\"3\">It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.</font></p>\n\t\t\t<p><font face=\"Arial\" size=\"3\">This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.</font></p>\n\t\t\t<p><font face=\"Arial\" size=\"3\">&nbsp;</font></p>\n\t\t\t<li>If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.\n\t\t\t<p><font face=\"Arial\" size=\"3\">&nbsp;</font></p>\n\t\t\t<li>The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\n\t\t\t<p><font face=\"Arial\" size=\"3\">Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and &quot;any later version&quot;, you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.</font></p>\n\t\t\t<p><font face=\"Arial\" size=\"3\">&nbsp;</font></p>\n\t\t\t<li>If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.\n\t\t</ol>\n\t\t<font face=\"Arial\" size=\"3\"><b>NO WARRANTY</b></h3>\n\t\t<p><font face=\"Arial\" size=\"3\">BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">END OF TERMS AND CONDITIONS</font></p>\n\t\t<hr>\n\t\t\n\t\t<font face=\"Arial\" size=\"3\"><b>Appendix: How to Apply These Terms to Your New Programs</b></h3>\n\t\t<p><font face=\"Arial\" size=\"3\">If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the &quot;copyright&quot; line and a pointer to where the full notice is found.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">(one line to give the program's name and a brief idea of what it does.) Copyright (C) 19yy (name of author)</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">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.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">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.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">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., 675 Mass Ave, Cambridge, MA 02139, USA.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">Also add information on how to contact you by electronic and paper mail.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">If the program is interactive, make it output a short notice like this when it starts in an interactive mode:</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">You should also get your employer (if you work as a programmer) or your school, if any, to sign a &quot;copyright disclaimer&quot; for the program, if necessary. Here is a sample; alter the names:</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">(signature of Ty Coon), 1 April 1989<br>\n\t\tTy Coon, President of Vice</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License.</font></p>\n\t\t<p><font face=\"Arial\" size=\"3\">\n\t\t<hr>\n<center>\n<font face=\"Arial\" size=\"5\">")); jEditorPaneAbout.setText(aboutString); } }

The table below shows all metrics for IReportAbout.java.

MetricValueDescription
BLOCKS13.00Number of blocks
BLOCK_COMMENT31.00Number of block comment lines
COMMENTS62.00Comment lines
COMMENT_DENSITY 0.37Comment density
COMPARISONS 3.00Number of comparison operators
CYCLOMATIC13.00Cyclomatic complexity
DECL_COMMENTS 9.00Comments in declarations
DOC_COMMENT14.00Number of javadoc comment lines
ELOC166.00Effective lines of code
EXEC_COMMENTS 7.00Comments in executable code
EXITS65.00Procedure exits
FUNCTIONS10.00Number of function declarations
HALSTEAD_DIFFICULTY55.86Halstead difficulty
HALSTEAD_EFFORT 0.00Halstead effort
INTERFACE_COMPLEXITY20.00Interface complexity
JAVA0001 0.00JAVA0001 Package name does not contain only lower case letters
JAVA0002 0.00JAVA0002 Package name does not begin with a top level domain name or country code
JAVA0003 0.00JAVA0003 Minimize use of on-demand (.*) imports
JAVA0004 0.00JAVA0004 Unnecessary import from java.lang
JAVA0005 0.00JAVA0005 Imports not in specified order
JAVA0006 0.00JAVA0006 Empty finally block
JAVA0007 0.00JAVA0007 Should not declare public field
JAVA0008 1.00JAVA0008 Empty catch block
JAVA0009 0.00JAVA0009 Protected member in final class
JAVA0010 0.00JAVA0010 Non-instantiable class does not contain a non-private static member
JAVA0011 0.00JAVA0011 Abstract class does not contain an abstract method
JAVA0012 0.00JAVA0012 Non-constructor method with same name as declaring class
JAVA0013 0.00JAVA0013 Non-blank final field is not static
JAVA0014 0.00JAVA0014 Class with only static members has non-private constructor
JAVA0015 0.00JAVA0015 Package class contains public nested type
JAVA0016 0.00JAVA0016 Abstract class contains public constructor
JAVA0017 0.00JAVA0017 Class name does not have required form
JAVA0018 0.00JAVA0018 Method name does not have required form
JAVA0019 0.00JAVA0019 Interface name does not have required form
JAVA0020 0.00JAVA0020 Field name does not have required form
JAVA0021 0.00JAVA0021 Interface method name does not have required form
JAVA0022 0.00JAVA0022 Static final field name does not have required form
JAVA0023 0.00JAVA0023 Empty finalize method
JAVA0024 0.00JAVA0024 Empty class
JAVA0025 0.00JAVA0025 Method override is empty
JAVA0026 0.00JAVA0026 Finalize method with parameters
JAVA0029 0.00JAVA0029 Private method not used
JAVA0030 0.00JAVA0030 Private field not used
JAVA0031 0.00JAVA0031 Case statement not properly closed
JAVA0032 0.00JAVA0032 Switch statement missing default
JAVA0033 0.00JAVA0033 default: not last case in switch statement
JAVA0034 1.00JAVA0034 Missing braces in if statement
JAVA0035 0.00JAVA0035 Missing braces in for statement
JAVA0036 0.00JAVA0036 Missing braces in while statement
JAVA0038 0.00JAVA0038 Non-case label in switch statement
JAVA0039 0.00JAVA0039 Break statement with label
JAVA0040 0.00JAVA0040 Switch statement contains N cases (maximum: M)
JAVA0041 0.00JAVA0041 Nested synchronized block
JAVA0042 0.00JAVA0042 Empty synchronized statement
JAVA0043 0.00JAVA0043 Inner class does not use outer class
JAVA0044 0.00JAVA0044 Serializable class with no instance variables
JAVA0045 0.00JAVA0045 Serializable class with only transient fields
JAVA0046 0.00JAVA0046 Name of class not derived from Exception ends with 'Exception'
JAVA0047 0.00JAVA0047 Serializable class derives from invalid base class
JAVA0048 0.00JAVA0048 Name of class derived from Exception does not end with 'Exception'
JAVA0049 0.00JAVA0049 Nested block at depth N (maximum: M)
JAVA0050 0.00JAVA0050 Class derives from java.lang.Error
JAVA0051 0.00JAVA0051 Class derives from java.lang.RuntimeException
JAVA0052 0.00JAVA0052 Class derives from java.lang.Throwable
JAVA0053 0.00JAVA0053 Unused label
JAVA0054 0.00JAVA0054 Inheritance depth N exceeds maximum M
JAVA0055 0.00JAVA0055 Class should be interface
JAVA0056 0.00JAVA0056 Unnecessary abstract modifier for interface or annotation
JAVA0057 0.00JAVA0057 Unnecessary default constructor
JAVA0058 0.00JAVA0058 Constructor calls super()
JAVA0059 0.00JAVA0059 Method override only calls super()
JAVA0061 1.00JAVA0061 Inaccessible member in anonymous class
JAVA0062 0.00JAVA0062 Public class missing public member or protected constructor
JAVA0063 0.00JAVA0063 Identifier name should not contain '$'
JAVA0064 0.00JAVA0064 N variations of identifier name (maximum: M)
JAVA0065 0.00JAVA0065 Unnecessary final modifier for method in final class
JAVA0066 0.00JAVA0066 Unnecessary modifier for interface nested type
JAVA0067 0.00JAVA0067 Array descriptor on identifier name
JAVA0068 0.00JAVA0068 Modifiers not declared in recommended order
JAVA0071 0.00JAVA0071 Strings compared with ==
JAVA0073 0.00JAVA0073 Integer division in floating-point context
JAVA0074 0.00JAVA0074 Use of Object.notify()
JAVA0075 0.00JAVA0075 Method parameter hides field
JAVA007611.00JAVA0076 Use of magic number
JAVA0077 0.00JAVA0077 Private field not used in declaring class
JAVA0078 0.00JAVA0078 Floating point values compared with ==
JAVA0079 0.00JAVA0079 Use of instance to reference static member
JAVA0080 0.00JAVA0080 Import declaration not used
JAVA0081 0.00JAVA0081 Boolean literal in comparison
JAVA0082 0.00JAVA0082 Unnecessary widening cast
JAVA0083 0.00JAVA0083 Unnecessary instanceof test
JAVA0084 0.00JAVA0084 Should use compound assignment operator
JAVA0085 0.00JAVA0085 Use of sun.* class
JAVA0087 0.00JAVA0087 Use of Thread.sleep()
JAVA0089 0.00JAVA0089 Use of restricted package
JAVA0092 0.00JAVA0092 Use of restricted type
JAVA0093 0.00JAVA0093 Redundant assignment
JAVA0094 0.00JAVA0094 Field hides a superclass field
JAVA0095 0.00JAVA0095 Uninitialized private field
JAVA0096 0.00JAVA0096 Field in nested class hides outer field
JAVA0098 0.00JAVA0098 Minimize use of implicit field initializers
JAVA0100 1.00JAVA0100 Class contains N non-final fields (maximum: M)
JAVA0101 0.00JAVA0101 Unnecessary modifier for field in interface
JAVA0102 0.00JAVA0102 Last statement in finalize() not super.finalize()
JAVA0103 0.00JAVA0103 Explicit call to finalize()
JAVA0104 0.00JAVA0104 finalize() only calls super.finalize()
JAVA0105 0.00JAVA0105 Duplicate import declaration
JAVA0106 0.00JAVA0106 Unnecessary import from current package
JAVA0108 3.00JAVA0108 Incorrect javadoc: no @param tag for 'parameter'
JAVA0109 0.00JAVA0109 Incorrect javadoc: no parameter 'parameter'
JAVA0110 0.00JAVA0110 Incorrect javadoc: no @return tag
JAVA0111 0.00JAVA0111 Incorrect javadoc: @return tag for void method
JAVA0112 0.00JAVA0112 Incorrect javadoc: no exception 'exception' in throws
JAVA0113 0.00JAVA0113 Incorrect javadoc: no @author tag
JAVA0114 1.00JAVA0114 Incorrect javadoc: no @version tag
JAVA0115 0.00JAVA0115 Incorrect javadoc: no @throws or @exception tag for 'exception'
JAVA0116 0.00JAVA0116 Missing javadoc: field 'field'
JAVA0117 1.00JAVA0117 Missing javadoc: method 'method'
JAVA0118 0.00JAVA0118 Missing javadoc: type 'type'
JAVA0119 0.00JAVA0119 Control variable changed within body of for loop
JAVA0123 0.00JAVA0123 Use all three components of for loop
JAVA0125 0.00JAVA0125 Continue statement with label
JAVA0126 0.00JAVA0126 Method declares unchecked exception in throws
JAVA0128 0.00JAVA0128 Public constructor in non-public class
JAVA0130 0.00JAVA0130 Non-static method does not use instance fields
JAVA0131 0.00JAVA0131 Compatible method does not override base
JAVA0132 0.00JAVA0132 Method overload with compatible signature
JAVA0133 0.00JAVA0133 Non-synchronized method overrides synchronized method
JAVA0135 0.00JAVA0135 Only one of Object.equals and Object.hashCode defined: missing 'method'
JAVA0136 0.00JAVA0136 N methods defined in class (maximum: M)
JAVA0137 0.00JAVA0137 Non-abstract class missing constructor
JAVA0138 0.00JAVA0138 N parameters defined for method (maximum: M)
JAVA0139 0.00JAVA0139 Definition of main other than public static void main(java.lang.String[])
JAVA0141 0.00JAVA0141 Unnecessary modifier for method in interface
JAVA0143 0.00JAVA0143 Synchronized method
JAVA0144 8.00JAVA0144 Line exceeds maximum M characters
JAVA0145 0.00JAVA0145 Tab character used in source file
JAVA0150 0.00JAVA0150 java.lang.Error (or subclass) thrown
JAVA0153 0.00JAVA0153 Inefficient conversion of integer to string
JAVA0159 0.00JAVA0159 Inefficient conversion of string to integer
JAVA0160 0.00JAVA0160 Method does not throw specified exception
JAVA0161 0.00JAVA0161 Conditional wait() not in loop
JAVA0163 0.00JAVA0163 Empty statement
JAVA0165 0.00JAVA0165 Conflicting return statement in finally block
JAVA0166 1.00JAVA0166 Generic exception caught
JAVA0167 0.00JAVA0167 ThreadDeath not rethrown
JAVA0169 0.00JAVA0169 Unnecessary catch block: exception 'exception'
JAVA0170 0.00JAVA0170 Caught exception not derived from java.lang.Exception
JAVA0171 1.00JAVA0171 Unused local variable
JAVA0173 2.00JAVA0173 Unused method parameter
JAVA0174 0.00JAVA0174 Assigned local variable never used
JAVA0175 0.00JAVA0175 Successive assignment to variable
JAVA0176 0.00JAVA0176 Local variable name does not have required form
JAVA0177 1.00JAVA0177 Variable declaration missing initializer
JAVA0179 0.00JAVA0179 Local variable hides visible field
JAVA0233 0.00JAVA0233 Definition of serialVersionUID other than 'private static final long serialVersionUID'
JAVA0234 1.00JAVA0234 Class is Serializable but does not define serialVersionUID
JAVA0235 0.00JAVA0235 Class defines serialVersionUID but does not implement Serializable
JAVA0236 0.00JAVA0236 Attempt to clone an object which does not implement Cloneable
JAVA0237 0.00JAVA0237 Class implements Cloneable but does not have public clone method
JAVA0238 0.00JAVA0238 Clone method does not call super.clone()
JAVA0239 0.00JAVA0239 Class declares 'readObject' or 'writeObject' but does not implement Serializable
JAVA0240 0.00JAVA0240 Serializable class which declares readObject or writeObject but not both
JAVA0241 0.00JAVA0241 'readObject' or 'writeObject' should be declared private in Serializable class
JAVA0242 0.00JAVA0242 Transient field in non-Serializable class
JAVA0243 0.00JAVA0243 'readResolve' or 'writeReplace' should be declared private or protected
JAVA0244 0.00JAVA0244 Field or method name in subclass differs only by case from inherited field or method
JAVA0245 0.00JAVA0245 JUnit TestCase with non-trivial constructor
JAVA0246 0.00JAVA0246 JUnit assertXXX statement missing message parameter
JAVA0247 0.00JAVA0247 JUnit 'setUp()' and 'tearDown()' should call super method
JAVA0248 0.00JAVA0248 JUnit method 'setUp' or 'tearDown' with incorrect signature
JAVA0249 0.00JAVA0249 JUnit TestCase 'suite()' should be declared static
JAVA0250 0.00JAVA0250 JUnit TestCase declares testXXX method with incorrect signature
JAVA0251 0.00JAVA0251 Use '%n' for line breaks in printf/format for platform independence
JAVA0252 0.00JAVA0252 'enum' is a Java 1.5 reserved word
JAVA0253 0.00JAVA0253 Not all enum constants consumed in switch statement
JAVA0254 0.00JAVA0254 Use enhanced for loop construct instead of Iterator
JAVA0255 0.00JAVA0255 Result of method invocation not used
JAVA0256 0.00JAVA0256 Assignment of external collection/array to field
JAVA0257 0.00JAVA0257 Use of 'Constant Interface' anti-pattern
JAVA0258 0.00JAVA0258 Implement Iterable for foreach compatibility
JAVA0259 0.00JAVA0259 Return of collection/array field
JAVA0260 0.00JAVA0260 Use 'enum' instead of Enumerated Type pattern
JAVA0261 0.00JAVA0261 Use specialized Enum collection types
JAVA0262 0.00JAVA0262 Use of char in integer context
JAVA0263 0.00JAVA0263 Long literal ends with 'l' instead of 'L'
JAVA0264 0.00JAVA0264 Integer math in long context - check for overflow
JAVA0265 0.00JAVA0265 Use of Throwable.printStackTrace()
JAVA0266 0.00JAVA0266 Use of System.out
JAVA0267 0.00JAVA0267 Use of System.err
JAVA0269 0.00JAVA0269 Contents of StringBuffer never used
JAVA0270 0.00JAVA0270 Use Java 5.0 enhanced for loop construct to iterate over all elements in an array
JAVA0271 0.00JAVA0271 Minimize use of on-demand (.*) static imports
JAVA0272 0.00JAVA0272 Thread.run() called
JAVA0273 0.00JAVA0273 Non-final derivative of Thread calls start() in constructor
JAVA0274 0.00JAVA0274 Serializable class has a synchronized readObject()
JAVA0275 0.00JAVA0275 Serializable class has a synchronized writeObject() and no other synchronized methods
JAVA0276 0.00JAVA0276 Unnecessary use of String constructor
JAVA0277 0.00JAVA0277 Iterator.next() implementation does not throw NoSuchElementException
JAVA0278 0.00JAVA0278 Unnecessary use of Boolean constructor
JAVA0279 0.00JAVA0279 Serialization method readObject or readObjectNoData calls an overridable method
JAVA0280 0.00JAVA0280 IllegalMonitorStateException caught
JAVA0281 0.00JAVA0281 Iterator.next() not called in loop
JAVA0282 0.00JAVA0282 Call to Iterator.next() in loop which does not test Iterator.hasNext()
JAVA0283 0.00JAVA0283 Control variable not updated in loop body
JAVA0284 0.00JAVA0284 Explicit garbage collection
JAVA0285 0.00JAVA0285 Dereference of potentially null variable
JAVA0286 0.00JAVA0286 Dereference of null variable
JAVA0287 0.00JAVA0287 Unnecessary null check
JAVA0288 0.00JAVA0288 Inconsistent null check
LINES292.00Number of lines in the source file
LINE_COMMENT17.00Number of line comments
LOC177.00Lines of code
LOGICAL_LINES133.00Number of statements
LOOPS 1.00Number of loops
NEST_DEPTH 2.00Maximum nesting depth
OPERANDS713.00Number of operands
OPERATORS1111.00Number of operators
PARAMS10.00Number of formal parameter declarations
PROGRAM_LENGTH1824.00Halstead program length
PROGRAM_VOCAB251.00Halstead program vocabulary
PROGRAM_VOLUME 0.00Halstead program volume
RETURNS10.00Number of return points from functions
SIZE33965.00Size of the file in bytes
UNIQUE_OPERANDS217.00Number of unique operands
UNIQUE_OPERATORS34.00Number of unique operators
WHITESPACE53.00Number of whitespace lines