]> source.dussan.org Git - vaadin-framework.git/commitdiff
Remove dead code
authorJohannes Dahlström <johannesd@vaadin.com>
Thu, 16 Jan 2014 15:44:39 +0000 (17:44 +0200)
committerVaadin Code Review <review@vaadin.com>
Fri, 17 Jan 2014 11:33:54 +0000 (11:33 +0000)
Change-Id: I1ac813afa47e38fb508e676d25d103a29bfada6a

28 files changed:
buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java
client/src/com/vaadin/client/ApplicationConnection.java
client/src/com/vaadin/client/Profiler.java
client/src/com/vaadin/client/ui/VAccordion.java
client/src/com/vaadin/client/ui/VCalendarPanel.java
client/src/com/vaadin/client/ui/VLabel.java
client/src/com/vaadin/client/ui/VPanel.java
client/src/com/vaadin/client/ui/VScrollTable.java
client/src/com/vaadin/client/ui/VTabsheet.java
client/src/com/vaadin/client/ui/calendar/schedule/DateCellDayEvent.java
client/src/com/vaadin/client/ui/calendar/schedule/DayToolbar.java
client/src/com/vaadin/client/ui/calendar/schedule/MonthGrid.java
client/src/com/vaadin/client/ui/calendar/schedule/SimpleDayCell.java
client/src/com/vaadin/client/ui/dd/VIsOverId.java
client/src/com/vaadin/client/ui/dd/VItemIdIs.java
client/src/com/vaadin/client/ui/label/LabelConnector.java
client/src/com/vaadin/client/ui/ui/UIConnector.java
server/src/com/vaadin/data/fieldgroup/FieldGroup.java
server/src/com/vaadin/server/LegacyCommunicationManager.java
server/src/com/vaadin/server/VaadinPortlet.java
server/src/com/vaadin/ui/AbstractComponent.java
server/src/com/vaadin/ui/ComboBox.java
server/src/com/vaadin/ui/Label.java
server/src/com/vaadin/ui/Table.java
server/tests/src/com/vaadin/data/util/TestIndexedContainer.java
server/tests/src/com/vaadin/data/util/sqlcontainer/SQLContainerTest.java
server/tests/src/com/vaadin/data/util/sqlcontainer/TicketTests.java
uitest/src/com/vaadin/launcher/DevelopmentServerLauncher.java

index 5c3810099a54cbc400d495b61b90fb3babf51df7..fb7b672b21501ce0ac9d31821723128b1c15a328 100644 (file)
@@ -37,7 +37,6 @@ public class FetchReleaseNotesTickets {
         URLConnection connection = url.openConnection();
         InputStream urlStream = connection.getInputStream();
 
-        @SuppressWarnings("unchecked")
         List<String> tickets = IOUtils.readLines(urlStream);
 
         for (String ticket : tickets) {
index da41543894ce2a63104a9a86f9e1d2c64867986d..8a3841b1734f0bb17ab811c98b006c4c8fe25fdb 100644 (file)
@@ -65,7 +65,6 @@ import com.google.gwt.user.client.Window.ClosingHandler;
 import com.google.gwt.user.client.ui.HasWidgets;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.client.ApplicationConfiguration.ErrorMessage;
-import com.vaadin.client.ApplicationConnection.ApplicationStoppedEvent;
 import com.vaadin.client.ResourceLoader.ResourceLoadEvent;
 import com.vaadin.client.ResourceLoader.ResourceLoadListener;
 import com.vaadin.client.communication.HasJavaScriptConnectorHelper;
@@ -363,7 +362,7 @@ public class ApplicationConnection {
      * 
      * To listen for the event add a {@link ApplicationStoppedHandler} by
      * invoking
-     * {@link ApplicationConnection#addHandler(ApplicationStoppedEvent.Type, ApplicationStoppedHandler)}
+     * {@link ApplicationConnection#addHandler(ApplicationConnection.ApplicationStoppedEvent.Type, ApplicationStoppedHandler)}
      * to the {@link ApplicationConnection}
      * 
      * @since 7.1.8
index 083f2559b15458edf1c0a700f3a011b682ce7258..cfce59b08bec69aff354d1902f75bfb528314ffe 100644 (file)
@@ -297,10 +297,6 @@ public class Profiler {
         if (isEnabled()) {
             double now = Duration.currentTimeMillis();
 
-            StringBuilder stringBuilder = new StringBuilder(
-                    "Time since window.performance.timing events");
-            SimpleTree tree = new SimpleTree(stringBuilder.toString());
-
             String[] keys = new String[] { "navigationStart",
                     "unloadEventStart", "unloadEventEnd", "redirectStart",
                     "redirectEnd", "fetchStart", "domainLookupStart",
index f87186fe37c54e470d09b2f1cf43ce4b90d78571..ddfe9dbc2c735c6062ab7585f2cad102e5bfc1a1 100644 (file)
@@ -463,7 +463,6 @@ public class VAccordion extends VTabsheetBase {
     }
 
     @Override
-    @SuppressWarnings("unchecked")
     public Iterator<Widget> getWidgetIterator() {
         return widgets.iterator();
     }
index 96678fd1330c26362176131ea7a2b8971e6ebb0e..b043cd0ab7efb5da6aceb01ab2c083034609b419 100644 (file)
@@ -170,8 +170,6 @@ public class VCalendarPanel extends FocusableFlexTable implements
 
     private Resolution resolution = Resolution.YEAR;
 
-    private int focusedRow;
-
     private Timer mouseTimer;
 
     private Date value;
@@ -256,7 +254,6 @@ public class VCalendarPanel extends FocusableFlexTable implements
                             if (curday.getDate().equals(date)) {
                                 curday.addStyleDependentName(CN_FOCUSED);
                                 focusedDay = curday;
-                                focusedRow = i;
                                 return;
                             }
                         }
@@ -741,7 +738,6 @@ public class VCalendarPanel extends FocusableFlexTable implements
                 }
                 if (curr.equals(focusedDate)) {
                     focusedDay = day;
-                    focusedRow = weekOfMonth;
                     if (hasFocus) {
                         day.addStyleDependentName(CN_FOCUSED);
                     }
@@ -1795,10 +1791,8 @@ public class VCalendarPanel extends FocusableFlexTable implements
          * Updates the valus to correspond to the values in value
          */
         public void updateTimes() {
-            boolean selected = true;
             if (value == null) {
                 value = new Date();
-                selected = false;
             }
             if (getDateTimeService().isTwelveHourClock()) {
                 int h = value.getHours();
@@ -1833,10 +1827,6 @@ public class VCalendarPanel extends FocusableFlexTable implements
 
         }
 
-        private int getMilliseconds() {
-            return DateTimeService.getMilliseconds(value);
-        }
-
         private DateTimeService getDateTimeService() {
             if (dateTimeService == null) {
                 dateTimeService = new DateTimeService();
@@ -2034,7 +2024,6 @@ public class VCalendarPanel extends FocusableFlexTable implements
     private static final String SUBPART_HOUR_SELECT = "h";
     private static final String SUBPART_MINUTE_SELECT = "m";
     private static final String SUBPART_SECS_SELECT = "s";
-    private static final String SUBPART_MSECS_SELECT = "ms";
     private static final String SUBPART_AMPM_SELECT = "ampm";
     private static final String SUBPART_DAY = "day";
     private static final String SUBPART_MONTH_YEAR_HEADER = "header";
index 8acd653778299e7ec85e34403a830a766c8fac1c..35f47d540a00f2e52da00349a8a9d477be01453c 100644 (file)
@@ -18,7 +18,6 @@ package com.vaadin.client.ui;
 
 import com.google.gwt.user.client.Event;
 import com.google.gwt.user.client.ui.HTML;
-import com.vaadin.client.ApplicationConnection;
 import com.vaadin.client.BrowserInfo;
 import com.vaadin.client.Util;
 import com.vaadin.client.VTooltip;
@@ -28,8 +27,6 @@ public class VLabel extends HTML {
     public static final String CLASSNAME = "v-label";
     private static final String CLASSNAME_UNDEFINED_WIDTH = "v-label-undef-w";
 
-    private ApplicationConnection connection;
-
     public VLabel() {
         super();
         setStyleName(CLASSNAME);
@@ -71,9 +68,4 @@ public class VLabel extends HTML {
             super.setText(text);
         }
     }
-
-    /** For internal use only. May be removed or replaced in the future. */
-    public void setConnection(ApplicationConnection client) {
-        connection = client;
-    }
 }
index 6b02f079d17a7cce5de163ad3bde2f8e7320f8d0..ffeacade4662d629551dbb52860132dfa80333f5 100644 (file)
@@ -170,7 +170,6 @@ public class VPanel extends SimplePanel implements ShortcutActionHandlerOwner,
     public void onBrowserEvent(Event event) {
         super.onBrowserEvent(event);
 
-        final Element target = DOM.eventGetTarget(event);
         final int type = DOM.eventGetType(event);
         if (type == Event.ONKEYDOWN && shortcutHandler != null) {
             shortcutHandler.handleKeyboardEvent(event);
index 8bd875690bb832b71423f10b413901b036e0c6d2..53a8ad644367032ba92f1e0542595b1e3c0f0ca8 100644 (file)
@@ -6037,7 +6037,6 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
             private Element getEventTargetTdOrTr(Event event) {
                 final Element eventTarget = event.getEventTarget().cast();
                 Widget widget = Util.findWidget(eventTarget, null);
-                final Element thisTrElement = getElement();
 
                 if (widget != this) {
                     /*
index 9ad518b85b8b70670274c2e78116d719d0957f93..33ac8e27ad46c20fa072c6e3d5b53586624eeb1a 100644 (file)
@@ -313,11 +313,9 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
         private boolean closable = false;
         private Element closeButton;
         private Tab tab;
-        private ApplicationConnection client;
 
         TabCaption(Tab tab, ApplicationConnection client) {
             super(client);
-            this.client = client;
             this.tab = tab;
 
             AriaHelper.ensureHasId(getElement());
index 39de122694282daaf1844a3dfd3e639366d8e778..344b5ce7390cbfccddf4bd064801df572bc308da 100644 (file)
@@ -42,7 +42,6 @@ import com.google.gwt.user.client.DOM;
 import com.google.gwt.user.client.Event;
 import com.google.gwt.user.client.ui.HorizontalPanel;
 import com.vaadin.client.Util;
-import com.vaadin.client.ui.VCalendar;
 import com.vaadin.shared.ui.calendar.DateConstants;
 
 /**
@@ -105,7 +104,6 @@ public class DateCellDayEvent extends FocusableHTML implements
         eventContent.addClassName("v-calendar-event-content");
         getElement().appendChild(eventContent);
 
-        VCalendar calendar = weekGrid.getCalendar();
         if (weekGrid.getCalendar().isEventResizeAllowed()) {
             topResizeBar = DOM.createDiv();
             bottomResizeBar = DOM.createDiv();
@@ -189,9 +187,11 @@ public class DateCellDayEvent extends FocusableHTML implements
         String escapedCaption = Util.escapeHTML(calendarEvent.getCaption());
         String timeAsText = calendarEvent.getTimeAsText();
         if (bigMode) {
-            innerHtml = "<span>" + timeAsText + "</span><br />" + escapedCaption;
+            innerHtml = "<span>" + timeAsText + "</span><br />"
+                    + escapedCaption;
         } else {
-            innerHtml = "<span>" + timeAsText + "<span>:</span></span> " + escapedCaption;
+            innerHtml = "<span>" + timeAsText + "<span>:</span></span> "
+                    + escapedCaption;
         }
         caption.setInnerHTML(innerHtml);
         eventContent.setInnerHTML("");
index 6233e8111e7ce58ed4ffe70f82ef47b22ea4762a..58b5fafa7f462612add0a1e3fa1d8b7b25379561 100644 (file)
@@ -72,8 +72,6 @@ public class DayToolbar extends HorizontalPanel implements ClickHandler {
             setCellWidth(nextLabel, MARGINRIGHT + "px");
             setCellHorizontalAlignment(nextLabel, ALIGN_RIGHT);
             int cellw = width / (count - 2);
-            int remain = width % (count - 2);
-            int cellw2 = cellw + 1;
             if (cellw > 0) {
                 int[] cellWidths = VCalendar
                         .distributeSize(width, count - 2, 0);
index df9bc42d2a60a0aded903adb1e45001178288eca..3b1c774793dbedae42c576ca231a0f88a248946c 100644 (file)
@@ -35,7 +35,6 @@ public class MonthGrid extends FocusableGrid implements KeyDownHandler {
     private SimpleDayCell selectionEnd;
     private final VCalendar calendar;
     private boolean rangeSelectDisabled;
-    private boolean disabled;
     private boolean enabled = true;
     private final HandlerRegistration keyDownHandler;
 
index cf8006ef66040157b4ab39e55771544940f85869..00fc1ef3ea8be5b29cecd977033e91807c80d374 100644 (file)
@@ -83,7 +83,6 @@ public class SimpleDayCell extends FocusableFlowPanel implements
     private Widget clickedWidget;
     private HandlerRegistration bottomSpacerMouseDownHandler;
     private boolean scrollable = false;
-    private boolean eventCanceled;
     private MonthGrid monthGrid;
     private HandlerRegistration keyDownHandler;
 
index f8083f8b60beb2227a58f7ade28e2ae0505038fe..7e2f596a2097938a5ab7faecfd0b6e0e4be1d924 100644 (file)
@@ -19,7 +19,6 @@
 package com.vaadin.client.ui.dd;
 
 import com.vaadin.client.ComponentConnector;
-import com.vaadin.client.ConnectorMap;
 import com.vaadin.client.UIDL;
 import com.vaadin.shared.ui.dd.AcceptCriterion;
 import com.vaadin.ui.AbstractSelect;
@@ -36,8 +35,6 @@ final public class VIsOverId extends VAcceptCriterion {
                     .getCurrentDropHandler();
             ComponentConnector dropHandlerConnector = currentDropHandler
                     .getConnector();
-            ConnectorMap paintableMap = ConnectorMap.get(currentDropHandler
-                    .getApplicationConnection());
 
             String pid2 = dropHandlerConnector.getConnectorId();
             if (pid2.equals(pid)) {
index 7d60eda4f9cf011c5ece40af935501b08ff274d8..b022f434f4bb6149e92df54932e327807a47be79 100644 (file)
@@ -32,8 +32,6 @@ final public class VItemIdIs extends VAcceptCriterion {
             String pid = configuration.getStringAttribute("s");
             ComponentConnector dragSource = drag.getTransferable()
                     .getDragSource();
-            VDropHandler currentDropHandler = VDragAndDropManager.get()
-                    .getCurrentDropHandler();
             String pid2 = dragSource.getConnectorId();
             if (pid2.equals(pid)) {
                 Object searchedId = drag.getTransferable().getData("itemId");
index 9639987e8dad9d25eeb0ef41ed9e38da9bcba61b..6a04c915626d2f62ecba8e20ce1796c79c62cbd9 100644 (file)
@@ -35,12 +35,6 @@ public class LabelConnector extends AbstractComponentConnector {
         return (LabelState) super.getState();
     }
 
-    @Override
-    protected void init() {
-        super.init();
-        getWidget().setConnection(getConnection());
-    }
-
     @Override
     public void onStateChanged(StateChangeEvent stateChangeEvent) {
         super.onStateChanged(stateChangeEvent);
index d0f3c8603f8c0f20fbfd12cc30511b943a0a0c56..17a23baad518db6cee811be425ae55abf427cd29 100644 (file)
@@ -49,7 +49,6 @@ import com.vaadin.client.ApplicationConnection.ApplicationStoppedEvent;
 import com.vaadin.client.BrowserInfo;
 import com.vaadin.client.ComponentConnector;
 import com.vaadin.client.ConnectorHierarchyChangeEvent;
-import com.vaadin.client.ConnectorMap;
 import com.vaadin.client.Focusable;
 import com.vaadin.client.Paintable;
 import com.vaadin.client.ServerConnector;
@@ -192,7 +191,6 @@ public class UIConnector extends AbstractSingleComponentContainerConnector
 
     @Override
     public void updateFromUIDL(final UIDL uidl, ApplicationConnection client) {
-        ConnectorMap paintableMap = ConnectorMap.get(getConnection());
         getWidget().id = getConnectorId();
         boolean firstPaint = getWidget().connection == null;
         getWidget().connection = client;
index 23f2da53ceaf26f383301e083977654c718c6aa2..7edcc9719cc158b73b45a3c9a2dfa17f27d68d50 100644 (file)
@@ -23,7 +23,6 @@ import java.util.Collections;
 import java.util.HashMap;
 import java.util.LinkedHashMap;
 import java.util.List;
-import java.util.logging.Logger;
 
 import com.vaadin.data.Item;
 import com.vaadin.data.Property;
@@ -55,9 +54,6 @@ import com.vaadin.util.ReflectTools;
  */
 public class FieldGroup implements Serializable {
 
-    private static final Logger logger = Logger.getLogger(FieldGroup.class
-            .getName());
-
     private Item itemDataSource;
     private boolean buffered = true;
 
@@ -1013,9 +1009,7 @@ public class FieldGroup implements Serializable {
      */
     public Field<?> buildAndBind(String caption, Object propertyId)
             throws BindException {
-        Class<?> type = getPropertyType(propertyId);
         return buildAndBind(caption, propertyId, Field.class);
-
     }
 
     /**
index ad662cf6df5ea185dc7148305340d418bf16b464..8d61968b4785b8a8c801935ba254d6de9ed451de 100644 (file)
@@ -316,8 +316,6 @@ public class LegacyCommunicationManager implements Serializable {
     private final HashMap<Class<? extends ClientConnector>, Integer> typeToKey = new HashMap<Class<? extends ClientConnector>, Integer>();
     private int nextTypeKey = 0;
 
-    private BootstrapHandler bootstrapHandler;
-
     /**
      * @deprecated As of 7.1. Will be removed in the future.
      */
index a41f30121921f6a8e56080e1015d495ffa5f9a74..6cf30e85e9fe7d05b0987060a4eb2084f87c8b45 100644 (file)
@@ -365,7 +365,6 @@ public class VaadinPortlet extends GenericPortlet implements Constants,
         if (request instanceof RenderRequest) {
             return RequestType.RENDER;
         } else if (request instanceof ResourceRequest) {
-            ResourceRequest resourceRequest = (ResourceRequest) request;
             if (ServletPortletHelper.isUIDLRequest(vaadinRequest)) {
                 return RequestType.UIDL;
             } else if (PortletUIInitHandler.isUIInitRequest(vaadinRequest)) {
index 85671922a569c77b48c9c8de7f19c5370945445e..33aa689a889e9880a1497e818fd81d6533e7b716 100644 (file)
@@ -31,7 +31,6 @@ import com.vaadin.event.ConnectorActionManager;
 import com.vaadin.event.ShortcutListener;
 import com.vaadin.server.AbstractClientConnector;
 import com.vaadin.server.ComponentSizeValidator;
-import com.vaadin.server.ErrorHandler;
 import com.vaadin.server.ErrorMessage;
 import com.vaadin.server.Resource;
 import com.vaadin.server.VaadinSession;
@@ -86,8 +85,6 @@ public abstract class AbstractComponent extends AbstractClientConnector
     private static final Pattern sizePattern = Pattern
             .compile("^(-?\\d+(\\.\\d+)?)(%|px|em|rem|ex|in|cm|mm|pt|pc)?$");
 
-    private ErrorHandler errorHandler = null;
-
     /**
      * Keeps track of the Actions added to this component; the actual
      * handling/notifying is delegated, usually to the containing window.
index 88e895df8207f704ff17cc1fea4e8414f0624d7d..5fb2f810111702b6d637e566197112ba83a30afe 100644 (file)
@@ -56,8 +56,6 @@ public class ComboBox extends AbstractSelect implements
      */
     protected int pageLength = 10;
 
-    private int columns = 0;
-
     // Current page when the user is 'paging' trough options
     private int currentPage = -1;
 
index d7cee2a80d59ab13c4a960fc2421f17136733af9..3aa83de42078402cb65e3355a8a8f93f64d0e6d4 100644 (file)
@@ -18,7 +18,6 @@ package com.vaadin.ui;
 
 import java.lang.reflect.Method;
 import java.util.Locale;
-import java.util.logging.Logger;
 
 import com.vaadin.data.Property;
 import com.vaadin.data.util.AbstractProperty;
@@ -56,9 +55,6 @@ public class Label extends AbstractComponent implements Property<String>,
         Property.Viewer, Property.ValueChangeListener,
         Property.ValueChangeNotifier, Comparable<Label> {
 
-    private static final Logger logger = Logger
-            .getLogger(Label.class.getName());
-
     /**
      * @deprecated As of 7.0, use {@link ContentMode#TEXT} instead
      */
index 32ed738697be45846b906722f9d94e53070d05aa..06e82dedcb0050b4d77c4554eadcbf9f332e593b 100644 (file)
@@ -2165,7 +2165,6 @@ public class Table extends AbstractSelect implements Action.Container,
             // more efficient implementation for containers supporting access by
             // index
 
-            Container.Indexed indexed = ((Container.Indexed) items);
             List<?> itemIds = getItemIds(firstIndex, rows);
             for (int i = 0; i < rows && i < itemIds.size(); i++) {
                 Object id = itemIds.get(i);
index 5c7896509240f09534e2233b81f3d124b8df56ad..5da0bdc8a2e793eb22ac57634bb0261c8d82ae1e 100644 (file)
@@ -306,7 +306,7 @@ public class TestIndexedContainer extends AbstractInMemoryContainerTest {
         Capture<ItemAddEvent> capturedEvent = captureAddEvent(addListener);
         EasyMock.replay(addListener);
 
-        Object itemId = container.addItemAt(1);
+        container.addItemAt(1);
 
         assertEquals(1, capturedEvent.getValue().getFirstIndex());
     }
index 844ef705b1d7386e233419b894f59ea13bffbd2d..4c132eba30cb99f7b046c48405bfc3a0c9c6c1ff 100644 (file)
@@ -1917,7 +1917,6 @@ public class SQLContainerTest {
         EasyMock.expect(delegate.getCountStatement())
                 .andAnswer(new IAnswer<StatementHelper>() {
                     @Override
-                    @SuppressWarnings("deprecation")
                     public StatementHelper answer() throws Throwable {
                         StatementHelper sh = new StatementHelper();
                         StringBuffer query = new StringBuffer(
@@ -1990,7 +1989,6 @@ public class SQLContainerTest {
         EasyMock.expect(delegate.getCountStatement())
                 .andAnswer(new IAnswer<StatementHelper>() {
                     @Override
-                    @SuppressWarnings("deprecation")
                     public StatementHelper answer() throws Throwable {
                         StatementHelper sh = new StatementHelper();
                         StringBuffer query = new StringBuffer(
@@ -2134,7 +2132,6 @@ public class SQLContainerTest {
         EasyMock.expect(delegate.getCountStatement())
                 .andAnswer(new IAnswer<StatementHelper>() {
                     @Override
-                    @SuppressWarnings("deprecation")
                     public StatementHelper answer() throws Throwable {
                         StatementHelper sh = new StatementHelper();
                         StringBuffer query = new StringBuffer(
@@ -2213,7 +2210,6 @@ public class SQLContainerTest {
         EasyMock.expect(delegate.getCountStatement())
                 .andAnswer(new IAnswer<StatementHelper>() {
                     @Override
-                    @SuppressWarnings("deprecation")
                     public StatementHelper answer() throws Throwable {
                         StatementHelper sh = new StatementHelper();
                         StringBuffer query = new StringBuffer(
@@ -2292,7 +2288,6 @@ public class SQLContainerTest {
         EasyMock.expect(delegate.getCountStatement())
                 .andAnswer(new IAnswer<StatementHelper>() {
                     @Override
-                    @SuppressWarnings("deprecation")
                     public StatementHelper answer() throws Throwable {
                         StatementHelper sh = new StatementHelper();
                         StringBuffer query = new StringBuffer(
index 8e8c83d234c5181e5b9fa9442bb1af6e211548b9..110225e206c429411ce7ac3670129d62de57a63c 100644 (file)
@@ -88,7 +88,6 @@ public class TicketTests {
         EasyMock.expect(delegate.getCountStatement())
                 .andAnswer(new IAnswer<StatementHelper>() {
                     @Override
-                    @SuppressWarnings("deprecation")
                     public StatementHelper answer() throws Throwable {
                         StatementHelper sh = new StatementHelper();
                         StringBuffer query = new StringBuffer(
index a8d639cbc82453dcfb455506a8d920d63a17d580..20e187c187ec26edd7e905b0ea82635bb8ac3ebc 100644 (file)
@@ -217,7 +217,6 @@ public class DevelopmentServerLauncher {
                             Socket accept = serverSocket.accept();
                             // First stop listening to the port
                             serverSocket.close();
-                            final Thread stopThread = Thread.currentThread();
 
                             // Start a thread that kills the JVM if
                             // server.stop() doesn't have any effect