/*
 * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 * WSO2 Inc. licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.wso2.carbon.transport.http.netty.util.server;

import java.util.concurrent.CountDownLatch;

/**
 * Thread that start the back-end server
 */
public class ServerThread extends Thread {
    CountDownLatch latch;
    HTTPServer httpServer;

    public ServerThread(CountDownLatch countDownLatch, HTTPServer httpServer) {
        this.latch = countDownLatch;
        this.httpServer = httpServer;
    }

    @Override
    public void run() {
        httpServer.start();
        latch.countDown();
    }
}

@@ -1,13 +1,14 @@
 /*%0A *
+ 
  Copyrig
@@ -21,9 +21,9 @@
  201
-5
+7
 , WS
@@ -78,16 +78,17 @@
 d.%0A *%0A *
+ 
  WSO2 In
@@ -144,16 +144,17 @@
 ense,%0A *
+ 
  Version
@@ -210,16 +210,17 @@
 xcept%0A *
+ 
  in comp
@@ -246,16 +246,17 @@
 ense.%0A *
+ 
  You may
@@ -293,16 +293,17 @@
 at%0A *%0A *
+ 
  http://
@@ -343,16 +343,17 @@
 .0%0A *%0A *
+ 
  Unless 
@@ -406,16 +406,17 @@
 ting,%0A *
+ 
  softwar
@@ -470,16 +470,17 @@
 on an%0A *
+ 
  %22AS IS%22
@@ -529,16 +529,17 @@
 F ANY%0A *
+ 
  KIND, e
@@ -591,16 +591,17 @@
 r the%0A *
+ 
  specifi
@@ -651,16 +651,17 @@
 tions%0A *
+ 
  under t
@@ -672,16 +672,19 @@
 icense.%0A
+ *%0A
  */%0A%0Apac

Change the wrong license headers