commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1749611 - /commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/VerifierFactoryListModel.java
Date Tue, 21 Jun 2016 21:53:40 GMT
Author: ggregory
Date: Tue Jun 21 21:53:40 2016
New Revision: 1749611

URL: http://svn.apache.org/viewvc?rev=1749611&view=rev
Log:
Fix funky formating.

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/VerifierFactoryListModel.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/VerifierFactoryListModel.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/VerifierFactoryListModel.java?rev=1749611&r1=1749610&r2=1749611&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/VerifierFactoryListModel.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/bcel/verifier/VerifierFactoryListModel.java
Tue Jun 21 21:53:40 2016
@@ -26,26 +26,22 @@ import javax.swing.event.ListDataEvent;
 import javax.swing.event.ListDataListener;
 
 /**
- * This class implements an adapter; it implements both a Swing ListModel and
- * a VerifierFactoryObserver.
+ * This class implements an adapter; it implements both a Swing ListModel and a VerifierFactoryObserver.
  *
  * @version $Id$
  */
-public class VerifierFactoryListModel implements VerifierFactoryObserver,
-        javax.swing.ListModel<String> {
+public class VerifierFactoryListModel implements VerifierFactoryObserver, javax.swing.ListModel<String>
{
 
     private final List<ListDataListener> listeners = new ArrayList<>();
     private final Set<String> cache = new TreeSet<>();
 
-
     public VerifierFactoryListModel() {
         VerifierFactory.attach(this);
         update(null); // fill cache.
     }
 
-
     @Override
-    public synchronized void update( final String s ) {
+    public synchronized void update(final String s) {
         final Verifier[] verifiers = VerifierFactory.getVerifiers();
         final int num_of_verifiers = verifiers.length;
         cache.clear();
@@ -58,27 +54,23 @@ public class VerifierFactoryListModel im
         }
     }
 
-
     @Override
-    public synchronized void addListDataListener( final ListDataListener l ) {
+    public synchronized void addListDataListener(final ListDataListener l) {
         listeners.add(l);
     }
 
-
     @Override
-    public synchronized void removeListDataListener( final javax.swing.event.ListDataListener
l ) {
+    public synchronized void removeListDataListener(final javax.swing.event.ListDataListener
l) {
         listeners.remove(l);
     }
 
-
     @Override
     public synchronized int getSize() {
         return cache.size();
     }
 
-
     @Override
-    public synchronized String getElementAt( final int index ) {
+    public synchronized String getElementAt(final int index) {
         return cache.toArray(new String[cache.size()])[index];
     }
 



Mime
View raw message