mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +00:00
Java 5 compatibility - remove some @Override pragmas
This commit is contained in:
@@ -25,11 +25,9 @@ package com.google.bitcoin.core;
|
||||
*
|
||||
*/
|
||||
public class AbstractPeerEventListener extends Object implements PeerEventListener {
|
||||
@Override
|
||||
public void onBlocksDownloaded(Peer peer, Block block, int blocksLeft) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onChainDownloadStarted(Peer peer, int blocksLeft) {
|
||||
}
|
||||
}
|
||||
|
@@ -183,7 +183,6 @@ public class PeerGroup {
|
||||
* we will ask the executor to shutdown and ask each peer to disconnect. At that point
|
||||
* no threads or network connections will be active.
|
||||
*/
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
while (running) {
|
||||
@@ -216,7 +215,6 @@ public class PeerGroup {
|
||||
final Peer peer = new Peer(params, address,
|
||||
blockStore.getChainHead().getHeight(), chain);
|
||||
Runnable command = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
log.info("connecting to " + peer);
|
||||
@@ -328,7 +326,6 @@ public class PeerGroup {
|
||||
"-thread-";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Thread newThread(Runnable r) {
|
||||
Thread t = new Thread(group, r,
|
||||
namePrefix + threadNumber.getAndIncrement(),
|
||||
|
@@ -36,7 +36,6 @@ public class FetchBlock {
|
||||
final Peer peer = new Peer(params, new PeerAddress(InetAddress.getLocalHost()), chain);
|
||||
peer.connect();
|
||||
new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
peer.run();
|
||||
}
|
||||
|
Reference in New Issue
Block a user