mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-20 10:12:19 +01:00
Java 5 compatibility - remove some @Override pragmas
This commit is contained in:
parent
18d45f0590
commit
0d4daee3c4
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user