svn commit: r16125 - trunk/src/argouml-app/src/org/argouml/uml/diagram/DiagramUtils.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-11-21 22:19:18-0800
New Revision: 16125

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/diagram/DiagramUtils.java

Log:
Prevent instantiation

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/DiagramUtils.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/DiagramUtils.java?view=diff&rev=16125&p1=trunk/src/argouml-app/src/org/argouml/uml/diagram/DiagramUtils.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/DiagramUtils.java&r1=16124&r2=16125
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/DiagramUtils.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/DiagramUtils.java	2008-11-21 22:19:18-0800
@@ -42,6 +42,13 @@
     private static final Logger LOG = Logger.getLogger(DiagramUtils.class);
     
     /**
+     * Instantiation not allowed.  Static methods only.
+     */
+    private DiagramUtils() {
+        // not allowed
+    }
+    
+    /**
      * @return the diagram containing the mouse (or which most recently
      *         contained the mouse).
      */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.