/*
// Licensed to Julian Hyde under one or more contributor license
// agreements. See the NOTICE file distributed with this work for
// additional information regarding copyright ownership.
//
// Julian Hyde licenses this file to you under the Modified BSD License
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at:
//
// http://opensource.org/licenses/BSD-3-Clause
*/
package sqlline;

import java.sql.*;

import sun.misc.*;


/**
 * A signal handler for SqlLine which interprets Ctrl+C as a request to cancel
 * the currently executing query. Adapted from <a
 * href="http://www.smotricz.com/kabutz/Issue043.html">TJSN</a>.
 */
class SunSignalHandler
    implements SqlLineSignalHandler,
        SignalHandler
{
    private DispatchCallback dispatchCallback;

    SunSignalHandler()
    {
        Signal.handle(new Signal("INT"), this);
    }

    @Override
    public void setCallback(DispatchCallback dispatchCallback)
    {
        this.dispatchCallback = dispatchCallback;
    }

    @Override
    public void handle(Signal sig)
    {
        try {
            synchronized (this) {
                if (dispatchCallback != null) {
                    dispatchCallback.forceKillSqlQuery();
                    dispatchCallback.setToCancel();
                }
            }
        } catch (SQLException ex) {
            throw new RuntimeException(ex);
        }
    }
}

@@ -914,38 +914,24 @@
 is);%0A    %7D%0A%0A
-    @Override%0A
     public v
@@ -1048,22 +1048,8 @@
  %7D%0A%0A
-    @Override%0A
     

Remove '@Override', to fix compile on JDK 1.5.