private static ConnectionCallback<SPF> asBase(final ConnectionListener listener) {
		return new ConnectionCallback<SPF>() {

			@Override
			public void onServiceReady(SPF serviceInterface) {
				listener.onConnected(serviceInterface);
			}

			@Override
			public void onError(SPFError err) {
				listener.onError(err);
			}

			@Override
			public void onDisconnect() {
				listener.onDisconnected();
			}
		};
	}
private static ConnectionCallback<SPF> asBase(final ConnectionListener listener) {
		return new ConnectionCallback<SPF>() {

			@Override
			public void onServiceReady(SPF serviceInterface) {
				listener.onConnected(serviceInterface);
			}

			@Override
			public void onError(SPFError err) {
				listener.onError(err);
			}

			@Override
			public void onDisconnect() {
				listener.onDisconnected();
			}
		};
	}
private static ConnectionCallback < SPF > asBase ( final ConnectionListener listener ) { return new ConnectionCallback < SPF > ( ) { @ Override public void onServiceReady ( SPF serviceInterface ) { listener . onConnected ( serviceInterface ) ; } @ Override public void onError ( SPFError err ) { listener . onError ( err ) ; } @ Override public void onDisconnect ( ) { listener . onDisconnected ( ) ; } } ; }
FIXME ConnectionListener should extends ConnectionCallback<SPF>, but method names are different
FIXME ConnectionListener should extends ConnectionCallback<SPF > but method names are different