mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-02 13:37:24 +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 {
|
public class AbstractPeerEventListener extends Object implements PeerEventListener {
|
||||||
@Override
|
|
||||||
public void onBlocksDownloaded(Peer peer, Block block, int blocksLeft) {
|
public void onBlocksDownloaded(Peer peer, Block block, int blocksLeft) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onChainDownloadStarted(Peer peer, int blocksLeft) {
|
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
|
* we will ask the executor to shutdown and ask each peer to disconnect. At that point
|
||||||
* no threads or network connections will be active.
|
* no threads or network connections will be active.
|
||||||
*/
|
*/
|
||||||
@Override
|
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
while (running) {
|
while (running) {
|
||||||
@@ -216,7 +215,6 @@ public class PeerGroup {
|
|||||||
final Peer peer = new Peer(params, address,
|
final Peer peer = new Peer(params, address,
|
||||||
blockStore.getChainHead().getHeight(), chain);
|
blockStore.getChainHead().getHeight(), chain);
|
||||||
Runnable command = new Runnable() {
|
Runnable command = new Runnable() {
|
||||||
@Override
|
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
log.info("connecting to " + peer);
|
log.info("connecting to " + peer);
|
||||||
@@ -328,7 +326,6 @@ public class PeerGroup {
|
|||||||
"-thread-";
|
"-thread-";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Thread newThread(Runnable r) {
|
public Thread newThread(Runnable r) {
|
||||||
Thread t = new Thread(group, r,
|
Thread t = new Thread(group, r,
|
||||||
namePrefix + threadNumber.getAndIncrement(),
|
namePrefix + threadNumber.getAndIncrement(),
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ public class FetchBlock {
|
|||||||
final Peer peer = new Peer(params, new PeerAddress(InetAddress.getLocalHost()), chain);
|
final Peer peer = new Peer(params, new PeerAddress(InetAddress.getLocalHost()), chain);
|
||||||
peer.connect();
|
peer.connect();
|
||||||
new Thread(new Runnable() {
|
new Thread(new Runnable() {
|
||||||
@Override
|
|
||||||
public void run() {
|
public void run() {
|
||||||
peer.run();
|
peer.run();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user