TipOfTheDayMessages.java

Index Score
com.limegroup.gnutella.gui
FrostWire

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
JAVA0144JAVA0144 Line exceeds maximum M characters
SIZESize of the file in bytes
JAVA0110JAVA0110 Incorrect javadoc: no @return tag
JAVA0034JAVA0034 Missing braces in if statement
JAVA0117JAVA0117 Missing javadoc: method 'method'
PROGRAM_VOLUMEHalstead program volume
CYCLOMATICCyclomatic complexity
JAVA0126JAVA0126 Method declares unchecked exception in throws
LINE_COMMENTNumber of line comments
COMPARISONSNumber of comparison operators
BLOCKSNumber of blocks
RETURNSNumber of return points from functions
LOGICAL_LINESNumber of statements
INTERFACE_COMPLEXITYInterface complexity
EXEC_COMMENTSComments in executable code
EXITSProcedure exits
WHITESPACENumber of whitespace lines
LOOPSNumber of loops
JAVA0108JAVA0108 Incorrect javadoc: no @param tag for 'parameter'
LINESNumber of lines in the source file
COMMENTSComment lines
DOC_COMMENTNumber of javadoc comment lines
FUNCTIONSNumber of function declarations
PARAMSNumber of formal parameter declarations
JAVA0145JAVA0145 Tab character used in source file
package com.limegroup.gnutella.gui; import org.limewire.i18n.I18nMarker; public class TipOfTheDayMessages { private static final String FIRST_MESSAGE = I18nMarker.marktr("Tired of downloads stopping halfway through? It helps to pick search results with a higher number in the '#' column. The # is the amount of unique places on the network that are hosting the file. The more sources, the better the chance of getting your file! In case a junk result appears to have a lot of sources, use the <font color=\"185ea8\">Junk</font> button to train FrostWire's junk filter."); /** * Determines whether or not the current locale language is English. Note * that the user setting may be empty, defaulting to the running system * locale which may be other than English. Here we check the effective * locale seen in the MessagesBundle. */ static boolean hasLocalizedMessages() { return GUIMediator.isEnglishLocale() || !FIRST_MESSAGE.equals(I18n.tr(FIRST_MESSAGE)); } /** * Returns general tips that are shown on all operating systems. */ public static String[] getGeneralMessages() { return new String[] { I18n.tr(FIRST_MESSAGE), I18n.tr("When your downloads say <font color=\"185ea8\">Needs More Sources</font>, try choosing that download and then clicking <font color=\"185ea8\">Find More Sources</font>. FrostWire will search the network for more places to download the file and automatically resume downloading if it finds any matches."), I18n.tr("You can change the look and feel of FrostWire by going to View &gt; Apply Skins and choosing a new skin. Brand new skins are on FrostWire's website, available by choosing 'Get More Skins'. If you download skins by the 'Download into FrostWire' links, FrostWire will automatically ask if you want to use the new skin when the download completes."), I18n.tr("You can sort your search results by clicking on a column. The most useful column to sort by is the '#' column, which can put the results that have the highest chance of downloading at the top of the list."), I18n.tr("The more stars a search result has, the better the chances of the download completing successfully! Some search results may even appear with four blue stars and a speed of 'Ethernet'. These results have the greatest chance of completing successfully."), I18n.tr("You can find out how many times someone has uploaded a file by choosing the 'Library' tab and looking at the Uploads column. The information is listed as 'X / Y', where 'Y' is the number of people that have attempted to upload that file, and 'X' is the number of people that have successfully uploaded it."), I18n.tr("Curious how many people are searching for your files? The 'hits' column in the Library will count how many times FrostWire has returned a result from someone searching for that file."), I18n.tr("It helps the network if you keep your FrostWire running. Others will connect to the network easier and searches will perform better."), I18n.tr("When FrostWire says your download is 'Waiting In Line', that means that source you are downloading from is temporarily busy and has queued your download. In order to successfully complete your download, wait while your request advances in line and is eventually serviced."), I18n.tr("Need more help? Visit <a href=\"{0}\">our message boards</a> and see if others have already answered your question! You can also review the <a href=\"{1}\">FAQ</a> for answers to commonly asked questions or the <a href=\"{2}\">User Guide</a> for more information."), I18n.tr("Accidentally killed your download? Click the library tab, choose the Incomplete folder, and then highlight the filename of the file you'd like to resume downloading and click resume. FrostWire will automatically search for that file and begin downloading it again."), I18n.tr("Do you have a tip for effectively using FrostWire? Add it to <a href=\"{0}\">the wiki</a> and it may make it into future Tips of the Day!"), I18n.tr("You can restart downloads that say <font color=\"185ea8\">Awaiting Sources</font> by searching for that file again. FrostWire will automatically restart the download if it finds any matching results."), I18n.tr("Do you have a cool feature you'd like to see added to FrostWire? Suggest it on FrostWire's <a href=\"{0}\">forum</a> and it may be added to future versions!"), I18n.tr("You can make your own FrostWire skins! Visit <a href=\"{0}\">FrostWire's website</a> for detailed information about how skins are created."), I18n.tr("You can preview downloaded files to make sure they're what you expect. Just select the download and click 'Preview'!"), I18n.tr("Curious what hosts FrostWire is connecting or connected to? Enable the Connections tab from View &gt; Show/Hide, and take a look at FrostWire's connections."), I18n.tr("Passionate about digital rights? Visit the <a href=\"{0}\">Electronic Frontier Foundation</a> and see what you can do to help."), I18n.tr("FrostWire is translated into many different languages including Chinese, French, German, Japanese, Italian, Spanish and many more. Visit FrostWire's <a href=\"{0}\">internationalization page</a> for information on how you can help translation efforts!"), I18n.tr("Sport the FrostWire look! Visit our <a href=\"{0}\">FrostWire gear</a> page and purchase a t-shirt or stickers!"), I18n.tr("Try an audio genre search!<br>Click on the 'Audio' Metadata search window, choose a genre from the drop-down box, and then press 'Search'. Most if not all of the files returned will be from the selected genre."), I18n.tr("Don't know what to look for? Try a <font color=\"185ea8\">What's New</font> search and see what's recently been added to the network."), I18n.tr("Bombarded with nonsense search results? Select the search result, and then click the Junk button. As you mark search results as Junk or Not Junk, FrostWire learns what to block and what not to block. After a short training period, FrostWire automatically blocks most junk results. Try it!"), I18n.tr("Small variations in the search title will still work. For example, if your buddy is sharing 'Frosty' but you searched for 'My Frosty', your buddy's file will still be found."), I18n.tr("To download a file with BitTorrent, just click a link to a .torrent file on the Web, or drag a .torrent file to FrostWire's Downloads section."), I18n.tr("Want to share a file on your desktop with FrostWire? Simply drag the file or folder from your desktop to the FrostWire Library. Select Individually Shared Files to see your newly shared file in the Library."), I18n.tr("Search results in FrostWire come from other users like you. Search results marked with a blue frosty icon in the Quality column are official communications from FrostWire, LLC."), I18n.tr("After starting a search, you can customize the three boxes on the left with titles like Media, Artist, and Album. You can change what these boxes show. Click the circle in the upper left corner of a box, and choose a new option from the menu."), I18n.tr("Do you want to browse your friend's FrostWire Library? Go to Search &gt; Direct Connect, then enter the ip address and port number of your friend's computer in the following format: 'ip address:port'. The port can be found in FrostWire's Options in the Advanced &gt; Firewall Config section."), I18n.tr("If you try to download a file that you already have, FrostWire lets you know, even if the file has a different name."), I18n.tr("Curious what people are searching for? Go to the Monitor tab, and select Show Incoming Searches to see other people's search queries that are entering your FrostWire. Double-click an incoming query to perform a search for that keyword."), I18n.tr("Have a lot of files in your Saved or Shared folder? " + "Try a <font color=\"185ea8\">Search in Shared files</font>" + " search at the top of the <font color=\"185ea8\">Library" + "</font> tab to find a file."), I18n.tr("You can publish your original work on the Gnutella network with a Creative Commons license. Select the .ogg or .mp3 shared file in the Library and click the Publish button. Visit the <a href=\"{0}\">creative commons website</a> for more information."), I18n.tr("Have you downloaded a file with incomplete or totally wrong information about its contents? Select the file in the Library and click Describe. Edit the file's metadata to your heart's content. You can even edit many files at once by selecting more than one file before clicking Describe."), I18n.tr("Are you behind a firewall? At the bottom of FrostWire in the status bar, look for the globe. If there is a brick wall in front of it, your Internet connection is firewalled."), I18n.tr("Wondering how many files you are sharing? Look in FrostWire's status bar at the number in a green oval. A beige oval means FrostWire is still building your Library. A red oval means files are not being shared."), I18n.tr("The numbers next to the up and down arrows in the status bar at the bottom of FrostWire show how fast all of your files are downloading or uploading combined."), I18n.tr("You can increase the text size via <font " + "color=\"185ea8\">View</font> &gt; <font " + "color=\"185ea8\">Increase Font Size</font>."), I18n.tr("Instead of putting all your files in a single folder, FrostWire can automatically sort them by media type. In the Options &gt; Saving window, select a Media Type like Audio, and click the Browse button. You can group files by media type in the Library even if all saved files are in one folder."), I18n.tr("While FrostWire is running, your audio and video files are automatically shared with iTunes and other programs that support the DAAP protocol. You can disable this sharing in the Options window by going to iTunes &gt; Sharing."), I18n.tr("Your search queries travel through a network of interconnected computers, which is why it takes time to receive all of the search results. FrostWire often takes shortcuts to deliver results faster, but if you think search results are blocked because your computer has problems with UDP packets, you can disable OOB (out-of-band) searching in the Options for more reliable results."), I18n.tr("If you own the copyright to a file that is being shared on the network, and you don't want it to be shared, you can have it filtered out of the network search results. <a href=\"{0}\">More information</a> is available.", "http://www.frostwire.com/about/copyright.php"), I18n.tr("Unlike other peer-to-peer file-sharing programs, FrostWire can transfer files even if both parties are behind a firewall. You don't have to do anything extra because it happens automatically!"), I18n.tr("FrostWire uses a technology called DHT to help users better find rare files. In order to be eligible for inclusion in the DHT, make sure you are not behind a firewall, and leave FrostWire running for as long as possible."), I18n.tr("Want to share a large file? FrostWire supports file sizes up to 1 TB (terabyte)."), I18n.tr("Want to be an Ultrapeer? Leave FrostWire running as long as possible. If you have a fast connection without a firewall, you will be promoted to Ultrapeer status after a while. Make sure that you have not disabled Ultrapeer capabilties in the Options."), I18n.tr("Want to know more detailed information about the inner workings of FrostWire? You can view the same statistics that the developers use by choosing Tools &gt; Advanced &gt; Statistics, choosing 'Advanced', and opting to view Advanced Statistics."), I18n.tr("Wondering if someone browsed your shared library? Go to View &gt; Show/Hide &gt; Logging to see the recent activity."), I18n.tr("Ultrapeers help the network by distributing only pertinent network traffic to the leaf nodes."), I18n.tr("Magnet links allow users to download files through FrostWire from a web page. When you put a magnet link on your web page (in the 'href' attribute of anchor tags), and a user clicks the link, a download will start in FrostWire."), }; } /** * Returns general tips that are shown on operating systems that are <b>not</b> * Mac OS X. Useful for tips that reference the About Window or the * Preferences Window, or right-clicking */ public static String[] getNonMacOSXMessages() { return new String[] { I18n.tr("You can customize FrostWire to your heart's content by changing various preferences such as your Save Folder, Shared Folder, Upload Bandwidth, etc... These preferences (and more) are available at the Tools &gt; Options menu."), I18n.tr("You can find out which version of FrostWire you are using by choosing 'About FrostWire' from the Help menu."), I18n.tr("Be a good network participant, don't close FrostWire if someone is uploading from you. You can tell FrostWire to automatically close after all downloads and uploads are complete by going to Tools &gt; Options and looking at the 'Shutdown' options."), I18n.tr("FrostWire does not automatically share all types of files. If you have a specific file you'd like to share, make sure its extension is being shared. This can be done via Tools &gt; Options and altering the 'Sharing' options."), I18n.tr("You can turn autocomplete for searching on or off by choosing 'Options' from the 'Tools' menu, and changing the value of 'Autocomplete Text' under the 'View' option."), I18n.tr("Want to see dialogs for questions which you previously marked 'Do not display this message again' or 'Always Use This Answer'? Go to Tools &gt; Options, and check 'Revert To Default' under View &gt; Popups."), I18n.tr("You can ban certain words from appearing in your search results by choosing 'Options' from the 'Tools' menu and adding new words to those listed under Filters &gt; Keywords."), I18n.tr("You can change the columns that display search result information. Columns you can choose include, 'Title', 'Genre', 'Track', 'Length', and many more. Just right-click on the search result column headers, choose audio or video, and check the columns you want to see!"), I18n.tr("Hate tool tips? Love tool tips? You can turn them on or off in most tables by right-clicking on the column headers and choosing 'More Options'. You can toggle other options here too, like whether or not to sort tables automatically and if you prefer the rows to be striped."), I18n.tr("You can sort uploads, downloads, etc..., by clicking on a column. The table keeps resorting as the information changes. You can turn this automatic-sorting behavior off by right-clicking on a column header, choosing 'More Options' and un-checking 'Sort Automatically'."), I18n.tr("You can tell FrostWire which downloads to start next. Right-click on the column headers in the download area and check the 'Priority' column. Select the download you want to start next and click the up arrow until it's at the top!"), I18n.tr("FrostWire is written in Java, which means that having the latest version of Java will improve FrostWire's speed and stability. You can find the most recent Java release at <a href=\"{0}\">www.java.com</a>.", "http://www.java.com/"), I18n.tr("Do you reach your search limit and all the results are spam or not related to your search? Try using the keyword filter by going to Tools &gt; Options &gt; Filters &gt; Keywords. Any search result that contains a word from the keyword filter will not even reach your computer."), I18n.tr("Are you unhappy with the small number of search results you received? Right-click a search result, then choose Search More, then Get More Results."), I18n.tr("Can't connect to the Gnutella network? If you are using a firewall, make sure that a port is opened for FrostWire (both incoming and outgoing, UPD and TCP). Go to Tools &gt; Options &gt; Advanced &gt; Firewall Config to find the port number."), I18n.tr("You can save individual downloads to custom locations. Right-click a search result and choose Download As. You can even change the location of a download in progress by right-clicking the download and choosing Change File Location."), I18n.tr("Did you just download a file that you don't want to share? In the Library, right-click it and choose Stop Sharing File."), I18n.tr("Did you know you can save different types of files, such as audio, video, or images, in different folders on your computer automatically? Just go to Tools &gt; Options &gt; Saving to choose the location for each type of file."), I18n.tr("Make FrostWire's Junk filter block more results by making the filter stricter. Adjust that and more by going to Tools &gt; Options &gt; Filters &gt; Junk."), I18n.tr("Do you like trying out new product features as soon as they are released? Feedback on new features is always welcomed and appreciated! Go to Tools &gt; Options &gt; Updates to get notified of beta releases."), }; } /** * Returns general tips that are shown on Mac OS X. */ public static String[] getMacOSXMessages() { return new String[] { I18n.tr("FrostWire is written in Java, which means that having the latest version of Java will improve FrostWire's speed and stability. You can find the most recent Java release at <a href=\"{0}\">www.java.com</a>.","http://www.java.com"), I18n.tr("Tired of the OSX Aqua look? Try using a new theme, available from the View &gt; Apply Themes menu."), I18n.tr("You can customize FrostWire to your heart's content by changing various preferences such as your Save Folder, Shared Folder, Upload Bandwidth, etc... These preferences (and more) are available at the Tools &gt; Options menu."), I18n.tr("You can find out which version of FrostWire you are using by choosing 'About FrostWire' from the FrostWire menu."), I18n.tr("Be a good network participant, don't close FrostWire if someone is uploading from you. You can tell FrostWire to automatically close after all downloads and uploads are complete by going to Tools &gt; Options and looking at the 'Shutdown' options."), I18n.tr("FrostWire does not automatically share all types of files. If you have a specific file you'd like to share, make sure its extension is being shared. This can be done via FrostWire &gt; Preferences and altering the 'Sharing' options."), I18n.tr("Want to see where on your computer a shared file is? Go to the Library, highlight the file and click 'Explore'. FrostWire will open that folder in the Finder."), I18n.tr("Using OSX's built-in firewall? Make sure that FrostWire's port is opened by clicking on the Apple Menu &gt; System Preferences &gt; Sharing &gt; Firewall &gt; New &gt; and choosing to open 'Gnutella/FrostWire (6346)'."), I18n.tr("You can turn autocomplete for searching on or off by choosing 'Preferences' from the 'FrostWire' menu, and changing the value of 'Autocomplete Text' under the 'View' option."), I18n.tr("Want to see dialogs for questions which you previously marked 'Do not display this message again' or 'Always Use This Answer'? Go to FrostWire &gt; Preferences, and check 'Revert To Default' under View &gt; Popups."), I18n.tr("You can ban certain words from appearing in your search results by choosing 'Preferences' from the 'FrostWire' menu and adding new words to those listed under Filters &gt; Keywords."), I18n.tr("You can change the columns that display search result information. Columns you can choose from include, 'Title', 'Genre', 'Track', 'Length', and many more. Just control-click on the search result column headers, choose audio or video, and check the columns you want to see!"), I18n.tr("Hate tool tips? Love tool tips? You can turn them on or off in most tables by control-clicking on the column headers and choosing 'More Options'. You can toggle other options here too, like whether or not to sort tables automatically and if you prefer the rows to be striped."), I18n.tr("You can sort uploads, downloads, etc..., by clicking on a column. The table keeps resorting as the information changes. You can turn this automatic-sorting behavior off by control-clicking on a column header, choosing 'More Options' and un-checking 'Sort Automatically'."), I18n.tr("Don't want to see the Chat (or other) columns in downloads? Control-click on the column headers and uncheck that column. You can also drag the columns around to make them appear in the order you'd like."), I18n.tr("Do you reach your search limit and all the results are spam or not related to your search? Try using the keyword filter by going to FrostWire &gt; Preferences &gt; Filters &gt; Keywords. Any search result that contains a word from the keyword filter will not even reach your computer."), I18n.tr("Are you unhappy with the small number of search results you received? Control-click a search result, then choose Search More, then Get More Results."), I18n.tr("Be careful not to share sensitive information like tax documents, passwords, etc. If you attempt to share a folder that people generally use to store sensitive data (such as Users, System, Desktop, etc), FrostWire will warn you. To share a single file instead of the whole folder, just drag that file to FrostWire's Library."), I18n.tr("You can save individual downloads to custom locations. Control-click a search result and choose Download As. You can even change the location of a download in progress by control-clicking the download and choosing Change File Location."), I18n.tr("Did you just download a file that you don't want to share? In the Library, control-click it and choose 'Stop Sharing File'."), I18n.tr("FrostWire's Library is a file manager, not just an MP3 Playlist. That means that when you delete a file from the Library, you have the option to either permanently delete the file from your computer or move it to the Trash."), I18n.tr("Want to play music in your default media player instead of in FrostWire? Control-click the FrostWire status bar and deselect 'Show Media Player'."), I18n.tr("Did you know you can save different types of files, such as audio, video, or images, in different folders on your computer automatically? Just go to FrostWire &gt; Preferences &gt; Saving to choose the location for each type of file."), I18n.tr("Make FrostWire's Junk filter block more results by making the filter stricter. Adjust that and more by going to FrostWire &gt; Preferences &gt; Filters &gt; Junk."), }; // Not available in Frostwire 4.17 /* I18n.tr("Do you like trying out new product features as soon as they are released? Feedback on new features is always welcomed and appreciated! Go to FrostWire &gt; Preferences &gt; Updates to get notified of beta releases."), */ } /** * Returns general tips that are shown on Windows. */ public static String[] getWindowsMessages() { // This tip is not available, it's useless may cause panic in some users? /* I18n.tr("FrostWire automatically adds itself to the list " + "of exceptions for your Windows firewall. All " + "this is done in the background to make your " + "experience as smooth as possible."), */ return new String[] { I18n.tr("Want FrostWire to look like your other Windows programs? Choose the Windows theme, available from the View &gt; Apply Themes menu."), I18n.tr("Want to play music in your default media player instead of in FrostWire? Right-click the FrostWire status bar and deselect 'Show Media Player'."), I18n.tr("Want to see where on your computer a shared file is? Go to the Library, highlight the file and click 'Explore'. FrostWire will open that folder in the Explorer."), I18n.tr("Be careful not to share sensitive information like tax documents, passwords, etc. If you attempt to share a folder that people generally use to store sensitive data (such as My Documents, Desktop, Program Files, etc), FrostWire will warn you. To share a single file instead of the whole folder, just drag that file to FrostWire's Library."), I18n.tr("The icons that you see next to your search results in the '?' column are symbols of the program used to open that particular type of file. To change the program associated with a file, go to the Folder Options in Windows Explorer (from the Tools menu). This is a Windows setting, not a FrostWire setting."), I18n.tr("FrostWire's Library is a file manager, not just an MP3 Playlist. That means that when you delete a file from the Library, you have the option to either permanently delete the file from your computer or move it to the Recycle Bin."), I18n.tr("Set FrostWire to be your default program for opening magnet links and .torrent files for the smoothest experience using FrostWire with the web. Go to Tools &gt; Options &gt; Advanced &gt; File Associations."), I18n.tr("When you close FrostWire, it minimizes to the system tray. To exit, right-click the system tray icon (next to the time), and select Exit. You can change this behavior by going to Tools &gt; Options &gt; System Tray."), }; } /** * Returns general tips that are shown on Linux. */ public static String[] getLinuxMessages() { return new String[] { I18n.tr("Be careful not to share sensitive information like tax documents, passwords, etc. If you attempt to share a folder that people generally use to store sensitive data (such as bin, dev, home, etc), FrostWire will warn you. To share a single file instead of the whole folder, just drag that file to FrostWire's Library."), I18n.tr("Want to play music in your preferred media player instead of in FrostWire? Right-click the FrostWire status bar and deselect 'Show Media Player'. Then go to Tools &gt; Options &gt; Helper Apps to set the program of your choice."), }; } /** * Returns general tips that are shown operating systems other than Windows, Mac OS X or Linux. */ public static String[] getOtherMessages() { return new String[] { }; } /** * Returns general tips that are shown for Pro. */ public static String[] getProMessages() { return new String[] { I18n.tr("Thank you for using FrostWire"), I18n.tr("Visit us at www.frostwire.com"), }; } /** * Returns general tips that are shown for Basic. */ public static String[] getBasicMessages() { return new String[] { I18n.tr("Thank you for using FrostWire"), I18n.tr("Visit us at www.frostwire.com"), }; } }

The table below shows all metrics for TipOfTheDayMessages.java.

MetricValueDescription
BLOCKS 9.00Number of blocks
BLOCK_COMMENT 7.00Number of block comment lines
COMMENTS41.00Comment lines
COMMENT_DENSITY 0.29Comment density
COMPARISONS 2.00Number of comparison operators
CYCLOMATIC10.00Cyclomatic complexity
DECL_COMMENTS 9.00Comments in declarations
DOC_COMMENT32.00Number of javadoc comment lines
ELOC143.00Effective lines of code
EXEC_COMMENTS 4.00Comments in executable code
EXITS 5.00Procedure exits
FUNCTIONS 9.00Number of function declarations
HALSTEAD_DIFFICULTY31.50Halstead difficulty
HALSTEAD_EFFORT 0.00Halstead effort
INTERFACE_COMPLEXITY 9.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 0.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 1.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 0.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 0.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
JAVA0076 0.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 0.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 0.00JAVA0108 Incorrect javadoc: no @param tag for 'parameter'
JAVA0109 0.00JAVA0109 Incorrect javadoc: no parameter 'parameter'
JAVA0110 9.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 0.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 0.00JAVA0117 Missing javadoc: method 'method'
JAVA0118 1.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
JAVA0144101.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 0.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 0.00JAVA0171 Unused local variable
JAVA0173 0.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 0.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 0.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
LINES208.00Number of lines in the source file
LINE_COMMENT 2.00Number of line comments
LOC153.00Lines of code
LOGICAL_LINES12.00Number of statements
LOOPS 0.00Number of loops
NEST_DEPTH 1.00Maximum nesting depth
OPERANDS378.00Number of operands
OPERATORS601.00Number of operators
PARAMS 0.00Number of formal parameter declarations
PROGRAM_LENGTH979.00Halstead program length
PROGRAM_VOCAB161.00Halstead program vocabulary
PROGRAM_VOLUME 0.00Halstead program volume
RETURNS 9.00Number of return points from functions
SIZE28316.00Size of the file in bytes
UNIQUE_OPERANDS138.00Number of unique operands
UNIQUE_OPERATORS23.00Number of unique operators
WHITESPACE14.00Number of whitespace lines