From c1938fec7576a91283d58b2fa08176238bf96f23 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Sat, 26 Mar 2016 19:34:10 +0100 Subject: [PATCH] Harmonize license headers. --- .../java/org/bitcoin/NativeSecp256k1.java | 2 +- .../main/java/org/bitcoinj/core/Address.java | 2 +- .../main/java/org/bitcoinj/core/Base58.java | 2 +- .../org/bitcoinj/core/BitcoinSerializer.java | 2 +- .../java/org/bitcoinj/core/BlockChain.java | 2 +- .../org/bitcoinj/core/CheckpointManager.java | 2 +- .../java/org/bitcoinj/core/ChildMessage.java | 1 + .../src/main/java/org/bitcoinj/core/Coin.java | 2 +- .../main/java/org/bitcoinj/core/Context.java | 14 +++++++++++ .../org/bitcoinj/core/DumpedPrivateKey.java | 2 +- .../java/org/bitcoinj/core/FilteredBlock.java | 2 +- .../java/org/bitcoinj/core/InventoryItem.java | 2 +- .../main/java/org/bitcoinj/core/Monetary.java | 2 +- .../org/bitcoinj/core/PartialMerkleTree.java | 2 +- .../src/main/java/org/bitcoinj/core/Peer.java | 2 +- .../java/org/bitcoinj/core/PeerException.java | 2 +- .../java/org/bitcoinj/core/PeerGroup.java | 2 +- .../src/main/java/org/bitcoinj/core/Ping.java | 2 +- .../src/main/java/org/bitcoinj/core/Pong.java | 2 +- .../org/bitcoinj/core/ProtocolException.java | 2 +- .../org/bitcoinj/core/ScriptException.java | 2 +- .../java/org/bitcoinj/core/Sha256Hash.java | 2 +- .../java/org/bitcoinj/core/Transaction.java | 1 - .../org/bitcoinj/core/TransactionBag.java | 2 +- .../bitcoinj/core/TransactionBroadcast.java | 2 +- .../core/TransactionOutputChanges.java | 2 +- .../src/main/java/org/bitcoinj/core/UTXO.java | 10 ++++---- .../java/org/bitcoinj/core/UTXOProvider.java | 3 ++- .../bitcoinj/core/UTXOProviderException.java | 3 ++- .../core/UnsafeByteArrayOutputStream.java | 3 ++- .../main/java/org/bitcoinj/core/Utils.java | 2 +- .../main/java/org/bitcoinj/core/VarInt.java | 2 +- .../bitcoinj/core/VerificationException.java | 2 +- .../java/org/bitcoinj/core/VersionAck.java | 2 +- .../core/VersionedChecksummedBytes.java | 2 +- .../listeners/AbstractBlockChainListener.java | 14 +++++++++++ .../AbstractPeerConnectionEventListener.java | 2 +- .../AbstractPeerDataEventListener.java | 2 +- .../listeners/AbstractPeerEventListener.java | 2 +- .../AbstractWalletEventListener.java | 2 +- .../core/listeners/BlockChainListener.java | 14 +++++++++++ .../BlocksDownloadedEventListener.java | 2 +- .../ChainDownloadStartedEventListener.java | 2 +- .../listeners/DownloadProgressTracker.java | 2 +- .../core/listeners/GetDataEventListener.java | 2 +- .../core/listeners/NewBestBlockListener.java | 1 + .../OnTransactionBroadcastListener.java | 14 +++++++++++ .../listeners/PeerConnectedEventListener.java | 2 +- .../PeerConnectionEventListener.java | 2 +- .../core/listeners/PeerDataEventListener.java | 2 +- .../PeerDisconnectedEventListener.java | 2 +- .../PeerDiscoveredEventListener.java | 2 +- .../PreMessageReceivedEventListener.java | 2 +- .../core/listeners/ReorganizeListener.java | 1 + .../listeners/ScriptsChangeEventListener.java | 2 +- .../TransactionConfidenceEventListener.java | 2 +- .../TransactionReceivedInBlockListener.java | 2 +- .../listeners/WalletChangeEventListener.java | 2 +- .../WalletCoinsReceivedEventListener.java | 2 +- .../WalletCoinsSentEventListener.java | 2 +- .../core/listeners/WalletEventListener.java | 2 +- .../WalletReorganizeEventListener.java | 3 +-- .../java/org/bitcoinj/core/package-info.java | 14 +++++++++++ .../java/org/bitcoinj/crypto/ChildNumber.java | 2 +- .../org/bitcoinj/crypto/DRMWorkaround.java | 14 +++++++++++ .../org/bitcoinj/crypto/EncryptableItem.java | 2 +- .../org/bitcoinj/crypto/EncryptedData.java | 3 ++- .../crypto/HDDerivationException.java | 2 +- .../org/bitcoinj/crypto/HDKeyDerivation.java | 2 +- .../java/org/bitcoinj/crypto/HDUtils.java | 2 +- .../java/org/bitcoinj/crypto/KeyCrypter.java | 3 ++- .../bitcoinj/crypto/KeyCrypterException.java | 14 +++++++++++ .../java/org/bitcoinj/crypto/LazyECPoint.java | 14 +++++++++++ .../org/bitcoinj/crypto/TrustStoreLoader.java | 2 +- .../java/org/bitcoinj/crypto/X509Utils.java | 2 +- .../org/bitcoinj/crypto/package-info.java | 14 +++++++++++ .../jni/NativeBlockChainListener.java | 2 +- .../bitcoinj/jni/NativeFutureCallback.java | 2 +- .../jni/NativeKeyChainEventListener.java | 2 +- .../NativePaymentChannelHandlerFactory.java | 14 +++++++++++ ...ntChannelServerConnectionEventHandler.java | 14 +++++++++++ .../bitcoinj/jni/NativePeerEventListener.java | 2 +- .../jni/NativeScriptsChangeEventListener.java | 2 +- ...iveTransactionConfidenceEventListener.java | 2 +- .../NativeTransactionConfidenceListener.java | 2 +- .../jni/NativeWalletChangeEventListener.java | 2 +- ...ativeWalletCoinsReceivedEventListener.java | 2 +- .../NativeWalletCoinsSentEventListener.java | 2 +- .../jni/NativeWalletEventListener.java | 2 +- .../NativeWalletReorganizeEventListener.java | 2 +- .../java/org/bitcoinj/kits/package-info.java | 14 +++++++++++ .../java/org/bitcoinj/net/FilterMerger.java | 14 +++++++++++ .../net/discovery/PeerDiscoveryException.java | 2 +- .../org/bitcoinj/net/discovery/SeedPeers.java | 3 ++- .../bitcoinj/net/discovery/package-info.java | 14 +++++++++++ .../java/org/bitcoinj/net/package-info.java | 14 +++++++++++ .../org/bitcoinj/params/package-info.java | 14 +++++++++++ .../channels/PaymentChannelClientState.java | 1 - .../channels/PaymentChannelServerState.java | 2 -- .../channels/PaymentChannelV1ServerState.java | 1 - .../channels/PaymentChannelV2ClientState.java | 3 --- .../channels/PaymentChannelV2ServerState.java | 4 ---- .../channels/PaymentIncrementAck.java | 14 +++++++++++ .../StoredPaymentChannelClientStates.java | 2 -- .../protocols/channels/package-info.java | 14 +++++++++++ .../org/bitcoinj/protocols/package-info.java | 14 +++++++++++ .../protocols/payments/PaymentProtocol.java | 2 +- .../payments/PaymentProtocolException.java | 2 +- .../protocols/payments/PaymentSession.java | 2 +- .../protocols/payments/package-info.java | 14 +++++++++++ .../main/java/org/bitcoinj/script/Script.java | 2 +- .../org/bitcoinj/script/package-info.java | 14 +++++++++++ .../signers/CustomTransactionSigner.java | 3 ++- .../signers/LocalTransactionSigner.java | 3 ++- .../signers/MissingSigResolutionSigner.java | 3 ++- .../signers/StatelessTransactionSigner.java | 3 ++- .../bitcoinj/signers/TransactionSigner.java | 3 ++- .../org/bitcoinj/signers/package-info.java | 14 +++++++++++ .../java/org/bitcoinj/store/BlockStore.java | 2 +- .../bitcoinj/store/BlockStoreException.java | 2 +- .../store/ChainFileLockedException.java | 14 +++++++++++ .../store/DatabaseFullPrunedBlockStore.java | 1 + .../org/bitcoinj/store/LevelDBBlockStore.java | 14 +++++++++++ .../org/bitcoinj/store/MemoryBlockStore.java | 2 +- .../store/MySQLFullPrunedBlockStore.java | 1 + .../store/PostgresFullPrunedBlockStore.java | 1 + .../org/bitcoinj/store/SPVBlockStore.java | 2 +- .../store/UnreadableWalletException.java | 14 +++++++++++ .../store/WalletProtobufSerializer.java | 2 +- .../org/bitcoinj/store/WindowsMMapHack.java | 14 +++++++++++ .../java/org/bitcoinj/store/package-info.java | 14 +++++++++++ .../uri/OptionalFieldValidationException.java | 14 +++++++++++ .../uri/RequiredFieldValidationException.java | 14 +++++++++++ .../java/org/bitcoinj/uri/package-info.java | 14 +++++++++++ .../bitcoinj/utils/BaseTaggableObject.java | 14 +++++++++++ .../ContextPropagatingThreadFactory.java | 14 +++++++++++ .../bitcoinj/utils/DaemonThreadFactory.java | 14 +++++++++++ .../bitcoinj/utils/ExponentialBackoff.java | 2 +- .../main/java/org/bitcoinj/utils/Fiat.java | 2 +- .../bitcoinj/utils/ListenerRegistration.java | 2 +- .../org/bitcoinj/utils/TaggableObject.java | 14 +++++++++++ .../java/org/bitcoinj/utils/Threading.java | 2 +- .../java/org/bitcoinj/utils/package-info.java | 14 +++++++++++ .../wallet/AbstractKeyChainEventListener.java | 14 +++++++++++ .../wallet/AllRandomKeysRotating.java | 14 +++++++++++ .../wallet/AllowUnconfirmedCoinSelector.java | 14 +++++++++++ .../org/bitcoinj/wallet/BasicKeyChain.java | 2 +- .../org/bitcoinj/wallet/CoinSelection.java | 14 +++++++++++ .../org/bitcoinj/wallet/CoinSelector.java | 14 +++++++++++ .../org/bitcoinj/wallet/DecryptingKeyBag.java | 2 +- .../bitcoinj/wallet/DefaultCoinSelector.java | 15 +++++++++++- .../wallet/DefaultKeyChainFactory.java | 2 +- .../wallet/DeterministicKeyChain.java | 2 +- .../bitcoinj/wallet/DeterministicSeed.java | 2 +- ...DeterministicUpgradeRequiredException.java | 14 +++++++++++ .../DeterministicUpgradeRequiresPassword.java | 14 +++++++++++ .../bitcoinj/wallet/EncryptableKeyChain.java | 2 +- .../wallet/FilteringCoinSelector.java | 3 +-- .../main/java/org/bitcoinj/wallet/KeyBag.java | 2 +- .../java/org/bitcoinj/wallet/KeyChain.java | 2 +- .../wallet/KeyChainEventListener.java | 3 ++- .../org/bitcoinj/wallet/KeyChainFactory.java | 2 +- .../org/bitcoinj/wallet/KeyChainGroup.java | 3 +-- .../bitcoinj/wallet/KeyTimeCoinSelector.java | 2 +- .../org/bitcoinj/wallet/MarriedKeyChain.java | 3 +-- .../java/org/bitcoinj/wallet/RedeemData.java | 3 ++- .../java/org/bitcoinj/wallet/WalletFiles.java | 2 +- .../bitcoinj/wallet/WalletTransaction.java | 2 +- .../org/bitcoinj/wallet/package-info.java | 14 +++++++++++ .../java/org/bitcoinj/core/AddressTest.java | 2 +- .../bitcoinj/core/BitcoinSerializerTest.java | 2 +- .../org/bitcoinj/core/BlockChainTest.java | 4 +--- .../test/java/org/bitcoinj/core/CoinTest.java | 2 +- .../java/org/bitcoinj/core/ECKeyTest.java | 2 +- ...ilteredBlockAndPartialMerkleTreeTests.java | 2 +- .../bitcoinj/core/FullBlockTestGenerator.java | 14 +++++++++++ .../core/H2FullPrunedBlockChainTest.java | 14 +++++++++++ .../core/LevelDBFullPrunedBlockChainTest.java | 1 + .../core/MemoryFullPrunedBlockChainTest.java | 14 +++++++++++ .../core/MySQLFullPrunedBlockChainTest.java | 1 + .../org/bitcoinj/core/ParseByteCacheTest.java | 2 +- .../PostgresFullPrunedBlockChainTest.java | 14 +++++++++++ .../core/TransactionBroadcastTest.java | 2 +- .../bitcoinj/core/TransactionOutputTest.java | 14 +++++++++++ .../java/org/bitcoinj/core/UtilsTest.java | 2 +- .../java/org/bitcoinj/core/VarIntTest.java | 2 +- .../core/VersionedChecksummedBytesTest.java | 4 ++-- .../bitcoinj/core/WalletExtensionsTest.java | 14 +++++++++++ .../java/org/bitcoinj/core/WalletTest.java | 2 +- .../crypto/ChildKeyDerivationTest.java | 2 +- .../bitcoinj/crypto/KeyCrypterScryptTest.java | 3 ++- .../org/bitcoinj/crypto/X509UtilsTest.java | 2 +- .../bitcoinj/net/discovery/SeedPeersTest.java | 1 + .../channels/ChannelConnectionTest.java | 1 - .../protocols/channels/ChannelTestUtils.java | 14 +++++++++++ .../channels/PaymentChannelClientTest.java | 14 +++++++++++ .../channels/PaymentChannelServerTest.java | 14 +++++++++++ .../payments/PaymentProtocolTest.java | 2 +- .../payments/PaymentSessionTest.java | 2 +- .../org/bitcoinj/script/ScriptChunkTest.java | 2 +- .../bitcoinj/store/LevelDBBlockStoreTest.java | 14 +++++++++++ .../org/bitcoinj/store/SPVBlockStoreTest.java | 2 +- .../store/WalletProtobufSerializerTest.java | 2 +- .../org/bitcoinj/testing/FakeTxBuilder.java | 2 +- .../bitcoinj/testing/FooWalletExtension.java | 14 +++++++++++ .../testing/InboundMessageQueuer.java | 14 +++++++++++ .../testing/KeyChainTransactionSigner.java | 3 ++- .../testing/MockTransactionBroadcaster.java | 2 +- .../testing/NopTransactionSigner.java | 3 ++- .../java/org/bitcoinj/uri/BitcoinURITest.java | 1 - .../utils/BaseTaggableObjectTest.java | 14 +++++++++++ .../utils/ExponentialBackoffTest.java | 4 +--- .../java/org/bitcoinj/utils/FiatTest.java | 2 +- .../bitcoinj/wallet/BasicKeyChainTest.java | 2 +- .../wallet/DefaultCoinSelectorTest.java | 2 +- .../wallet/DeterministicKeyChainTest.java | 2 +- .../bitcoinj/wallet/KeyChainGroupTest.java | 2 +- .../examples/ExamplePaymentChannelServer.java | 2 -- .../bitcoinj/examples/GenerateLowSTests.java | 1 + .../java/org/bitcoinj/examples/LevelDB.java | 1 + .../org/bitcoinj/examples/LevelDbSizes.java | 1 + .../java/org/bitcoinj/tools/TestFeeLevel.java | 1 - .../src/main/java/wallettemplate/Main.java | 14 +++++++++++ .../java/wallettemplate/MainController.java | 14 +++++++++++ .../wallettemplate/SendMoneyController.java | 14 +++++++++++ .../WalletPasswordController.java | 14 +++++++++++ .../WalletSetPasswordController.java | 14 +++++++++++ .../WalletSettingsController.java | 14 +++++++++++ .../controls/BitcoinAddressValidator.java | 14 +++++++++++ .../controls/ClickableBitcoinAddress.java | 14 +++++++++++ .../controls/NotificationBarPane.java | 15 +++++++++++- .../utils/AlertWindowController.java | 14 +++++++++++ .../wallettemplate/utils/BitcoinUIModel.java | 15 +++++++++++- .../java/wallettemplate/utils/GuiUtils.java | 14 +++++++++++ .../utils/KeyDerivationTasks.java | 14 +++++++++++ .../utils/TextFieldValidator.java | 14 +++++++++++ .../utils/ThrottledRunLater.java | 2 +- .../java/wallettemplate/utils/WTUtils.java | 14 +++++++++++ .../utils/easing/EasingMode.java | 24 +++++++++++++++++++ 239 files changed, 1208 insertions(+), 178 deletions(-) diff --git a/core/src/main/java/org/bitcoin/NativeSecp256k1.java b/core/src/main/java/org/bitcoin/NativeSecp256k1.java index 65c93412..d7d2303f 100644 --- a/core/src/main/java/org/bitcoin/NativeSecp256k1.java +++ b/core/src/main/java/org/bitcoin/NativeSecp256k1.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/Address.java b/core/src/main/java/org/bitcoinj/core/Address.java index 6c2c3ffc..2b9d6a12 100644 --- a/core/src/main/java/org/bitcoinj/core/Address.java +++ b/core/src/main/java/org/bitcoinj/core/Address.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * Copyright 2014 Giannis Dzegoutanis * Copyright 2015 Andreas Schildbach diff --git a/core/src/main/java/org/bitcoinj/core/Base58.java b/core/src/main/java/org/bitcoinj/core/Base58.java index 03b8cddd..dc07b023 100644 --- a/core/src/main/java/org/bitcoinj/core/Base58.java +++ b/core/src/main/java/org/bitcoinj/core/Base58.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/BitcoinSerializer.java b/core/src/main/java/org/bitcoinj/core/BitcoinSerializer.java index 5f3ea070..6f68e00c 100644 --- a/core/src/main/java/org/bitcoinj/core/BitcoinSerializer.java +++ b/core/src/main/java/org/bitcoinj/core/BitcoinSerializer.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/main/java/org/bitcoinj/core/BlockChain.java b/core/src/main/java/org/bitcoinj/core/BlockChain.java index dfd7c45c..d80f7cab 100644 --- a/core/src/main/java/org/bitcoinj/core/BlockChain.java +++ b/core/src/main/java/org/bitcoinj/core/BlockChain.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/main/java/org/bitcoinj/core/CheckpointManager.java b/core/src/main/java/org/bitcoinj/core/CheckpointManager.java index fd22a851..c9d3628c 100644 --- a/core/src/main/java/org/bitcoinj/core/CheckpointManager.java +++ b/core/src/main/java/org/bitcoinj/core/CheckpointManager.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/ChildMessage.java b/core/src/main/java/org/bitcoinj/core/ChildMessage.java index 06ba88cd..87576d31 100644 --- a/core/src/main/java/org/bitcoinj/core/ChildMessage.java +++ b/core/src/main/java/org/bitcoinj/core/ChildMessage.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.core; import javax.annotation.Nullable; diff --git a/core/src/main/java/org/bitcoinj/core/Coin.java b/core/src/main/java/org/bitcoinj/core/Coin.java index dd7884a7..a1a22b4a 100644 --- a/core/src/main/java/org/bitcoinj/core/Coin.java +++ b/core/src/main/java/org/bitcoinj/core/Coin.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Andreas Schildbach * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/Context.java b/core/src/main/java/org/bitcoinj/core/Context.java index 3e32d76e..b9bf4254 100644 --- a/core/src/main/java/org/bitcoinj/core/Context.java +++ b/core/src/main/java/org/bitcoinj/core/Context.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.core; import org.bitcoinj.core.Wallet.SendRequest; diff --git a/core/src/main/java/org/bitcoinj/core/DumpedPrivateKey.java b/core/src/main/java/org/bitcoinj/core/DumpedPrivateKey.java index 89d2d6e3..7c9895c2 100644 --- a/core/src/main/java/org/bitcoinj/core/DumpedPrivateKey.java +++ b/core/src/main/java/org/bitcoinj/core/DumpedPrivateKey.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * Copyright 2015 Andreas Schildbach * diff --git a/core/src/main/java/org/bitcoinj/core/FilteredBlock.java b/core/src/main/java/org/bitcoinj/core/FilteredBlock.java index b477c245..84def7e4 100644 --- a/core/src/main/java/org/bitcoinj/core/FilteredBlock.java +++ b/core/src/main/java/org/bitcoinj/core/FilteredBlock.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2012 Matt Corallo * Copyright 2015 Andreas Schildbach * diff --git a/core/src/main/java/org/bitcoinj/core/InventoryItem.java b/core/src/main/java/org/bitcoinj/core/InventoryItem.java index 1524d0ec..a505bc5c 100644 --- a/core/src/main/java/org/bitcoinj/core/InventoryItem.java +++ b/core/src/main/java/org/bitcoinj/core/InventoryItem.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/Monetary.java b/core/src/main/java/org/bitcoinj/core/Monetary.java index 26bf479e..9f94ec21 100644 --- a/core/src/main/java/org/bitcoinj/core/Monetary.java +++ b/core/src/main/java/org/bitcoinj/core/Monetary.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Andreas Schildbach * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/PartialMerkleTree.java b/core/src/main/java/org/bitcoinj/core/PartialMerkleTree.java index eeacc44a..832e1b75 100644 --- a/core/src/main/java/org/bitcoinj/core/PartialMerkleTree.java +++ b/core/src/main/java/org/bitcoinj/core/PartialMerkleTree.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2012 The Bitcoin Developers * Copyright 2012 Matt Corallo * Copyright 2015 Andreas Schildbach diff --git a/core/src/main/java/org/bitcoinj/core/Peer.java b/core/src/main/java/org/bitcoinj/core/Peer.java index a512d853..473952d5 100644 --- a/core/src/main/java/org/bitcoinj/core/Peer.java +++ b/core/src/main/java/org/bitcoinj/core/Peer.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/PeerException.java b/core/src/main/java/org/bitcoinj/core/PeerException.java index ac4ab5e3..715448bc 100644 --- a/core/src/main/java/org/bitcoinj/core/PeerException.java +++ b/core/src/main/java/org/bitcoinj/core/PeerException.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/PeerGroup.java b/core/src/main/java/org/bitcoinj/core/PeerGroup.java index 8a0c4c3d..94e59097 100644 --- a/core/src/main/java/org/bitcoinj/core/PeerGroup.java +++ b/core/src/main/java/org/bitcoinj/core/PeerGroup.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/main/java/org/bitcoinj/core/Ping.java b/core/src/main/java/org/bitcoinj/core/Ping.java index e2fe6568..fa4faa1f 100644 --- a/core/src/main/java/org/bitcoinj/core/Ping.java +++ b/core/src/main/java/org/bitcoinj/core/Ping.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Noa Resare * Copyright 2015 Andreas Schildbach * diff --git a/core/src/main/java/org/bitcoinj/core/Pong.java b/core/src/main/java/org/bitcoinj/core/Pong.java index dea5d805..eaffa3a8 100644 --- a/core/src/main/java/org/bitcoinj/core/Pong.java +++ b/core/src/main/java/org/bitcoinj/core/Pong.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2012 Matt Corallo * Copyright 2015 Andreas Schildbach * diff --git a/core/src/main/java/org/bitcoinj/core/ProtocolException.java b/core/src/main/java/org/bitcoinj/core/ProtocolException.java index 898c1bc8..b4951343 100644 --- a/core/src/main/java/org/bitcoinj/core/ProtocolException.java +++ b/core/src/main/java/org/bitcoinj/core/ProtocolException.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/ScriptException.java b/core/src/main/java/org/bitcoinj/core/ScriptException.java index b578f0ed..d72bd430 100644 --- a/core/src/main/java/org/bitcoinj/core/ScriptException.java +++ b/core/src/main/java/org/bitcoinj/core/ScriptException.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/Sha256Hash.java b/core/src/main/java/org/bitcoinj/core/Sha256Hash.java index 700850bc..1e741492 100644 --- a/core/src/main/java/org/bitcoinj/core/Sha256Hash.java +++ b/core/src/main/java/org/bitcoinj/core/Sha256Hash.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/main/java/org/bitcoinj/core/Transaction.java b/core/src/main/java/org/bitcoinj/core/Transaction.java index 966b6809..6ab47110 100644 --- a/core/src/main/java/org/bitcoinj/core/Transaction.java +++ b/core/src/main/java/org/bitcoinj/core/Transaction.java @@ -25,7 +25,6 @@ import org.bitcoinj.script.ScriptOpCodes; import org.bitcoinj.utils.ExchangeRate; import org.bitcoinj.wallet.WalletTransaction.Pool; -import com.google.common.base.Joiner; import com.google.common.collect.ImmutableMap; import com.google.common.primitives.Ints; import com.google.common.primitives.Longs; diff --git a/core/src/main/java/org/bitcoinj/core/TransactionBag.java b/core/src/main/java/org/bitcoinj/core/TransactionBag.java index 305850d7..6748ade7 100644 --- a/core/src/main/java/org/bitcoinj/core/TransactionBag.java +++ b/core/src/main/java/org/bitcoinj/core/TransactionBag.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Giannis Dzegoutanis * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/TransactionBroadcast.java b/core/src/main/java/org/bitcoinj/core/TransactionBroadcast.java index 51c50120..5c2cf754 100644 --- a/core/src/main/java/org/bitcoinj/core/TransactionBroadcast.java +++ b/core/src/main/java/org/bitcoinj/core/TransactionBroadcast.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/TransactionOutputChanges.java b/core/src/main/java/org/bitcoinj/core/TransactionOutputChanges.java index 74d63c35..d006795e 100644 --- a/core/src/main/java/org/bitcoinj/core/TransactionOutputChanges.java +++ b/core/src/main/java/org/bitcoinj/core/TransactionOutputChanges.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2012 Matt Corallo. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/UTXO.java b/core/src/main/java/org/bitcoinj/core/UTXO.java index 427a6bfc..5012bd00 100644 --- a/core/src/main/java/org/bitcoinj/core/UTXO.java +++ b/core/src/main/java/org/bitcoinj/core/UTXO.java @@ -1,12 +1,12 @@ -/** +/* * Copyright 2012 Matt Corallo. - *

+ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - *

- * http://www.apache.org/licenses/LICENSE-2.0 - *

+ * + * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/core/src/main/java/org/bitcoinj/core/UTXOProvider.java b/core/src/main/java/org/bitcoinj/core/UTXOProvider.java index 38225127..aa7fdbaa 100644 --- a/core/src/main/java/org/bitcoinj/core/UTXOProvider.java +++ b/core/src/main/java/org/bitcoinj/core/UTXOProvider.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Kalpesh Parmar. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.core; import java.util.List; diff --git a/core/src/main/java/org/bitcoinj/core/UTXOProviderException.java b/core/src/main/java/org/bitcoinj/core/UTXOProviderException.java index 71f97fbb..64d9c81f 100644 --- a/core/src/main/java/org/bitcoinj/core/UTXOProviderException.java +++ b/core/src/main/java/org/bitcoinj/core/UTXOProviderException.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Kalpesh Parmar. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.core; public class UTXOProviderException extends Exception { diff --git a/core/src/main/java/org/bitcoinj/core/UnsafeByteArrayOutputStream.java b/core/src/main/java/org/bitcoinj/core/UnsafeByteArrayOutputStream.java index 1ab8c51b..e6dd0214 100644 --- a/core/src/main/java/org/bitcoinj/core/UnsafeByteArrayOutputStream.java +++ b/core/src/main/java/org/bitcoinj/core/UnsafeByteArrayOutputStream.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Steve Coughlan. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.core; import java.io.ByteArrayOutputStream; diff --git a/core/src/main/java/org/bitcoinj/core/Utils.java b/core/src/main/java/org/bitcoinj/core/Utils.java index 74c29f61..80c2c735 100644 --- a/core/src/main/java/org/bitcoinj/core/Utils.java +++ b/core/src/main/java/org/bitcoinj/core/Utils.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/main/java/org/bitcoinj/core/VarInt.java b/core/src/main/java/org/bitcoinj/core/VarInt.java index 8a2d629a..7969ffa2 100644 --- a/core/src/main/java/org/bitcoinj/core/VarInt.java +++ b/core/src/main/java/org/bitcoinj/core/VarInt.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/VerificationException.java b/core/src/main/java/org/bitcoinj/core/VerificationException.java index 18c02fc3..14daabc3 100644 --- a/core/src/main/java/org/bitcoinj/core/VerificationException.java +++ b/core/src/main/java/org/bitcoinj/core/VerificationException.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/VersionAck.java b/core/src/main/java/org/bitcoinj/core/VersionAck.java index 8413d9a3..0dcfb05a 100644 --- a/core/src/main/java/org/bitcoinj/core/VersionAck.java +++ b/core/src/main/java/org/bitcoinj/core/VersionAck.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Noa Resare. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/VersionedChecksummedBytes.java b/core/src/main/java/org/bitcoinj/core/VersionedChecksummedBytes.java index fec6481e..38141490 100644 --- a/core/src/main/java/org/bitcoinj/core/VersionedChecksummedBytes.java +++ b/core/src/main/java/org/bitcoinj/core/VersionedChecksummedBytes.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/AbstractBlockChainListener.java b/core/src/main/java/org/bitcoinj/core/listeners/AbstractBlockChainListener.java index 799c62d7..391edba3 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/AbstractBlockChainListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/AbstractBlockChainListener.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.core.listeners; import org.bitcoinj.core.*; diff --git a/core/src/main/java/org/bitcoinj/core/listeners/AbstractPeerConnectionEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/AbstractPeerConnectionEventListener.java index aa35be32..6e5aa5ba 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/AbstractPeerConnectionEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/AbstractPeerConnectionEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/AbstractPeerDataEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/AbstractPeerDataEventListener.java index 787534d7..81595672 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/AbstractPeerDataEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/AbstractPeerDataEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/AbstractPeerEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/AbstractPeerEventListener.java index c5ab7099..a8d9ee54 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/AbstractPeerEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/AbstractPeerEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/AbstractWalletEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/AbstractWalletEventListener.java index 41974cf2..b167b416 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/AbstractWalletEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/AbstractWalletEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/BlockChainListener.java b/core/src/main/java/org/bitcoinj/core/listeners/BlockChainListener.java index 85b9fc32..a19a42b7 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/BlockChainListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/BlockChainListener.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.core.listeners; /** diff --git a/core/src/main/java/org/bitcoinj/core/listeners/BlocksDownloadedEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/BlocksDownloadedEventListener.java index c4e7f379..6edb2282 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/BlocksDownloadedEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/BlocksDownloadedEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/ChainDownloadStartedEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/ChainDownloadStartedEventListener.java index 56f6ba85..434b0843 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/ChainDownloadStartedEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/ChainDownloadStartedEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/DownloadProgressTracker.java b/core/src/main/java/org/bitcoinj/core/listeners/DownloadProgressTracker.java index 24c1eb27..dfd8b1fd 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/DownloadProgressTracker.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/DownloadProgressTracker.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/main/java/org/bitcoinj/core/listeners/GetDataEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/GetDataEventListener.java index 4a8041ae..2fbc1e0c 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/GetDataEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/GetDataEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/NewBestBlockListener.java b/core/src/main/java/org/bitcoinj/core/listeners/NewBestBlockListener.java index 6c40554d..178b3470 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/NewBestBlockListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/NewBestBlockListener.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.core.listeners; import org.bitcoinj.core.StoredBlock; diff --git a/core/src/main/java/org/bitcoinj/core/listeners/OnTransactionBroadcastListener.java b/core/src/main/java/org/bitcoinj/core/listeners/OnTransactionBroadcastListener.java index df0b1146..9ae94af2 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/OnTransactionBroadcastListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/OnTransactionBroadcastListener.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.core.listeners; import org.bitcoinj.core.*; diff --git a/core/src/main/java/org/bitcoinj/core/listeners/PeerConnectedEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/PeerConnectedEventListener.java index 9fb3f4b3..c4172203 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/PeerConnectedEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/PeerConnectedEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/PeerConnectionEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/PeerConnectionEventListener.java index b05df14b..ed5e9d90 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/PeerConnectionEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/PeerConnectionEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/PeerDataEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/PeerDataEventListener.java index 9063c221..5d42cc46 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/PeerDataEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/PeerDataEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/PeerDisconnectedEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/PeerDisconnectedEventListener.java index e67a57ac..7565b2c8 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/PeerDisconnectedEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/PeerDisconnectedEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/PeerDiscoveredEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/PeerDiscoveredEventListener.java index 23994825..45d6f247 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/PeerDiscoveredEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/PeerDiscoveredEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/PreMessageReceivedEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/PreMessageReceivedEventListener.java index 732acb1c..ff125643 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/PreMessageReceivedEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/PreMessageReceivedEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/ReorganizeListener.java b/core/src/main/java/org/bitcoinj/core/listeners/ReorganizeListener.java index c977cbc6..67c59bd3 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/ReorganizeListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/ReorganizeListener.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.core.listeners; import java.util.List; diff --git a/core/src/main/java/org/bitcoinj/core/listeners/ScriptsChangeEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/ScriptsChangeEventListener.java index 1c02d579..83383284 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/ScriptsChangeEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/ScriptsChangeEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/TransactionConfidenceEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/TransactionConfidenceEventListener.java index 159e8a53..ea83a106 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/TransactionConfidenceEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/TransactionConfidenceEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/TransactionReceivedInBlockListener.java b/core/src/main/java/org/bitcoinj/core/listeners/TransactionReceivedInBlockListener.java index c8acaf3e..c1b1865c 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/TransactionReceivedInBlockListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/TransactionReceivedInBlockListener.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.core.listeners; import org.bitcoinj.core.BlockChain; -import org.bitcoinj.core.ScriptException; import org.bitcoinj.core.Sha256Hash; import org.bitcoinj.core.StoredBlock; import org.bitcoinj.core.Transaction; diff --git a/core/src/main/java/org/bitcoinj/core/listeners/WalletChangeEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/WalletChangeEventListener.java index 16d56384..ae363123 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/WalletChangeEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/WalletChangeEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/WalletCoinsReceivedEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/WalletCoinsReceivedEventListener.java index 721d7eec..a7fe8325 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/WalletCoinsReceivedEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/WalletCoinsReceivedEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/WalletCoinsSentEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/WalletCoinsSentEventListener.java index 15187d9a..85625e40 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/WalletCoinsSentEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/WalletCoinsSentEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/WalletEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/WalletEventListener.java index 7ae0255c..a51b5815 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/WalletEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/WalletEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/core/listeners/WalletReorganizeEventListener.java b/core/src/main/java/org/bitcoinj/core/listeners/WalletReorganizeEventListener.java index 6019bc8f..3436782c 100644 --- a/core/src/main/java/org/bitcoinj/core/listeners/WalletReorganizeEventListener.java +++ b/core/src/main/java/org/bitcoinj/core/listeners/WalletReorganizeEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,7 +18,6 @@ package org.bitcoinj.core.listeners; import org.bitcoinj.core.Wallet; - /** *

Implementors are called when the wallet is reorganized.

*/ diff --git a/core/src/main/java/org/bitcoinj/core/package-info.java b/core/src/main/java/org/bitcoinj/core/package-info.java index 2cc8abf8..d3d58224 100644 --- a/core/src/main/java/org/bitcoinj/core/package-info.java +++ b/core/src/main/java/org/bitcoinj/core/package-info.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * The core package contains classes for network messages like {@link org.bitcoinj.core.Block} and * {@link org.bitcoinj.core.Transaction}, peer connectivity via {@link org.bitcoinj.core.PeerGroup}, diff --git a/core/src/main/java/org/bitcoinj/crypto/ChildNumber.java b/core/src/main/java/org/bitcoinj/crypto/ChildNumber.java index 8a42e1c1..1952036b 100644 --- a/core/src/main/java/org/bitcoinj/crypto/ChildNumber.java +++ b/core/src/main/java/org/bitcoinj/crypto/ChildNumber.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Matija Mazi. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/crypto/DRMWorkaround.java b/core/src/main/java/org/bitcoinj/crypto/DRMWorkaround.java index e250436c..7f8320e4 100644 --- a/core/src/main/java/org/bitcoinj/crypto/DRMWorkaround.java +++ b/core/src/main/java/org/bitcoinj/crypto/DRMWorkaround.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.crypto; import org.bitcoinj.core.Utils; diff --git a/core/src/main/java/org/bitcoinj/crypto/EncryptableItem.java b/core/src/main/java/org/bitcoinj/crypto/EncryptableItem.java index 798bb944..22c1fec3 100644 --- a/core/src/main/java/org/bitcoinj/crypto/EncryptableItem.java +++ b/core/src/main/java/org/bitcoinj/crypto/EncryptableItem.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/crypto/EncryptedData.java b/core/src/main/java/org/bitcoinj/crypto/EncryptedData.java index 54cdd3ff..9214e3a4 100644 --- a/core/src/main/java/org/bitcoinj/crypto/EncryptedData.java +++ b/core/src/main/java/org/bitcoinj/crypto/EncryptedData.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Jim Burton. * * Licensed under the MIT license (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.crypto; import com.google.common.base.Objects; diff --git a/core/src/main/java/org/bitcoinj/crypto/HDDerivationException.java b/core/src/main/java/org/bitcoinj/crypto/HDDerivationException.java index 0bde8208..7fd930c1 100644 --- a/core/src/main/java/org/bitcoinj/crypto/HDDerivationException.java +++ b/core/src/main/java/org/bitcoinj/crypto/HDDerivationException.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Matija Mazi. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/crypto/HDKeyDerivation.java b/core/src/main/java/org/bitcoinj/crypto/HDKeyDerivation.java index 78018708..8640617c 100644 --- a/core/src/main/java/org/bitcoinj/crypto/HDKeyDerivation.java +++ b/core/src/main/java/org/bitcoinj/crypto/HDKeyDerivation.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Matija Mazi. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/crypto/HDUtils.java b/core/src/main/java/org/bitcoinj/crypto/HDUtils.java index 20328033..fb9581c9 100644 --- a/core/src/main/java/org/bitcoinj/crypto/HDUtils.java +++ b/core/src/main/java/org/bitcoinj/crypto/HDUtils.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Matija Mazi. * Copyright 2014 Giannis Dzegoutanis. * diff --git a/core/src/main/java/org/bitcoinj/crypto/KeyCrypter.java b/core/src/main/java/org/bitcoinj/crypto/KeyCrypter.java index 3662c903..2089e675 100644 --- a/core/src/main/java/org/bitcoinj/crypto/KeyCrypter.java +++ b/core/src/main/java/org/bitcoinj/crypto/KeyCrypter.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Jim Burton. * * Licensed under the MIT license (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.crypto; import org.bitcoinj.wallet.Protos.Wallet.EncryptionType; diff --git a/core/src/main/java/org/bitcoinj/crypto/KeyCrypterException.java b/core/src/main/java/org/bitcoinj/crypto/KeyCrypterException.java index e14acc5e..e65a1ded 100644 --- a/core/src/main/java/org/bitcoinj/crypto/KeyCrypterException.java +++ b/core/src/main/java/org/bitcoinj/crypto/KeyCrypterException.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.crypto; /** diff --git a/core/src/main/java/org/bitcoinj/crypto/LazyECPoint.java b/core/src/main/java/org/bitcoinj/crypto/LazyECPoint.java index ae0a87f5..8d2e9cce 100644 --- a/core/src/main/java/org/bitcoinj/crypto/LazyECPoint.java +++ b/core/src/main/java/org/bitcoinj/crypto/LazyECPoint.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.crypto; import org.spongycastle.math.ec.ECCurve; diff --git a/core/src/main/java/org/bitcoinj/crypto/TrustStoreLoader.java b/core/src/main/java/org/bitcoinj/crypto/TrustStoreLoader.java index 39238f03..a3542e8b 100644 --- a/core/src/main/java/org/bitcoinj/crypto/TrustStoreLoader.java +++ b/core/src/main/java/org/bitcoinj/crypto/TrustStoreLoader.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Andreas Schildbach * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/crypto/X509Utils.java b/core/src/main/java/org/bitcoinj/crypto/X509Utils.java index ffc856f9..074468f7 100644 --- a/core/src/main/java/org/bitcoinj/crypto/X509Utils.java +++ b/core/src/main/java/org/bitcoinj/crypto/X509Utils.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 The bitcoinj authors. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/crypto/package-info.java b/core/src/main/java/org/bitcoinj/crypto/package-info.java index 9c5bc84e..f3b1447d 100644 --- a/core/src/main/java/org/bitcoinj/crypto/package-info.java +++ b/core/src/main/java/org/bitcoinj/crypto/package-info.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * The crypto package contains classes that work with key derivation algorithms like scrypt (passwords to AES keys), * BIP 32 hierarchies (chains of keys from a root seed), X.509 utilities for the payment protocol and other general diff --git a/core/src/main/java/org/bitcoinj/jni/NativeBlockChainListener.java b/core/src/main/java/org/bitcoinj/jni/NativeBlockChainListener.java index 87efe56f..4ce13e20 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativeBlockChainListener.java +++ b/core/src/main/java/org/bitcoinj/jni/NativeBlockChainListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/jni/NativeFutureCallback.java b/core/src/main/java/org/bitcoinj/jni/NativeFutureCallback.java index 67a47354..bcf9d4db 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativeFutureCallback.java +++ b/core/src/main/java/org/bitcoinj/jni/NativeFutureCallback.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/jni/NativeKeyChainEventListener.java b/core/src/main/java/org/bitcoinj/jni/NativeKeyChainEventListener.java index f2b9ec01..81377f06 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativeKeyChainEventListener.java +++ b/core/src/main/java/org/bitcoinj/jni/NativeKeyChainEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/jni/NativePaymentChannelHandlerFactory.java b/core/src/main/java/org/bitcoinj/jni/NativePaymentChannelHandlerFactory.java index 88e394ac..afee9c32 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativePaymentChannelHandlerFactory.java +++ b/core/src/main/java/org/bitcoinj/jni/NativePaymentChannelHandlerFactory.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.jni; import org.bitcoinj.protocols.channels.PaymentChannelServerListener; diff --git a/core/src/main/java/org/bitcoinj/jni/NativePaymentChannelServerConnectionEventHandler.java b/core/src/main/java/org/bitcoinj/jni/NativePaymentChannelServerConnectionEventHandler.java index f4c1ecc3..a706cc5a 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativePaymentChannelServerConnectionEventHandler.java +++ b/core/src/main/java/org/bitcoinj/jni/NativePaymentChannelServerConnectionEventHandler.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.jni; import org.bitcoinj.core.*; diff --git a/core/src/main/java/org/bitcoinj/jni/NativePeerEventListener.java b/core/src/main/java/org/bitcoinj/jni/NativePeerEventListener.java index 15c5a95e..f9b160b8 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativePeerEventListener.java +++ b/core/src/main/java/org/bitcoinj/jni/NativePeerEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/jni/NativeScriptsChangeEventListener.java b/core/src/main/java/org/bitcoinj/jni/NativeScriptsChangeEventListener.java index 5db2eb5b..89f48365 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativeScriptsChangeEventListener.java +++ b/core/src/main/java/org/bitcoinj/jni/NativeScriptsChangeEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/jni/NativeTransactionConfidenceEventListener.java b/core/src/main/java/org/bitcoinj/jni/NativeTransactionConfidenceEventListener.java index f67f5dd6..924f7fcb 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativeTransactionConfidenceEventListener.java +++ b/core/src/main/java/org/bitcoinj/jni/NativeTransactionConfidenceEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/jni/NativeTransactionConfidenceListener.java b/core/src/main/java/org/bitcoinj/jni/NativeTransactionConfidenceListener.java index d753d7b4..af656d4a 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativeTransactionConfidenceListener.java +++ b/core/src/main/java/org/bitcoinj/jni/NativeTransactionConfidenceListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/jni/NativeWalletChangeEventListener.java b/core/src/main/java/org/bitcoinj/jni/NativeWalletChangeEventListener.java index 831688ab..f496a8f5 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativeWalletChangeEventListener.java +++ b/core/src/main/java/org/bitcoinj/jni/NativeWalletChangeEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/jni/NativeWalletCoinsReceivedEventListener.java b/core/src/main/java/org/bitcoinj/jni/NativeWalletCoinsReceivedEventListener.java index 0f6cb0a2..10c343ac 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativeWalletCoinsReceivedEventListener.java +++ b/core/src/main/java/org/bitcoinj/jni/NativeWalletCoinsReceivedEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/jni/NativeWalletCoinsSentEventListener.java b/core/src/main/java/org/bitcoinj/jni/NativeWalletCoinsSentEventListener.java index 5c9cb429..64fc63ba 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativeWalletCoinsSentEventListener.java +++ b/core/src/main/java/org/bitcoinj/jni/NativeWalletCoinsSentEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/jni/NativeWalletEventListener.java b/core/src/main/java/org/bitcoinj/jni/NativeWalletEventListener.java index 5a53e6ba..a2b674a5 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativeWalletEventListener.java +++ b/core/src/main/java/org/bitcoinj/jni/NativeWalletEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/jni/NativeWalletReorganizeEventListener.java b/core/src/main/java/org/bitcoinj/jni/NativeWalletReorganizeEventListener.java index a0f1e185..fc0bf41e 100644 --- a/core/src/main/java/org/bitcoinj/jni/NativeWalletReorganizeEventListener.java +++ b/core/src/main/java/org/bitcoinj/jni/NativeWalletReorganizeEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/kits/package-info.java b/core/src/main/java/org/bitcoinj/kits/package-info.java index b29b5f35..efb678dd 100644 --- a/core/src/main/java/org/bitcoinj/kits/package-info.java +++ b/core/src/main/java/org/bitcoinj/kits/package-info.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * High level wrapper APIs around the bitcoinj building blocks. WalletAppKit is suitable for many different types of * apps that require an SPV wallet. diff --git a/core/src/main/java/org/bitcoinj/net/FilterMerger.java b/core/src/main/java/org/bitcoinj/net/FilterMerger.java index ba68e07c..53a718b3 100644 --- a/core/src/main/java/org/bitcoinj/net/FilterMerger.java +++ b/core/src/main/java/org/bitcoinj/net/FilterMerger.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.net; import com.google.common.collect.Lists; diff --git a/core/src/main/java/org/bitcoinj/net/discovery/PeerDiscoveryException.java b/core/src/main/java/org/bitcoinj/net/discovery/PeerDiscoveryException.java index 711828cb..585d19b5 100644 --- a/core/src/main/java/org/bitcoinj/net/discovery/PeerDiscoveryException.java +++ b/core/src/main/java/org/bitcoinj/net/discovery/PeerDiscoveryException.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/net/discovery/SeedPeers.java b/core/src/main/java/org/bitcoinj/net/discovery/SeedPeers.java index f6f030bd..b44b4ee7 100644 --- a/core/src/main/java/org/bitcoinj/net/discovery/SeedPeers.java +++ b/core/src/main/java/org/bitcoinj/net/discovery/SeedPeers.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Micheal Swiggs * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.net.discovery; import org.bitcoinj.core.NetworkParameters; diff --git a/core/src/main/java/org/bitcoinj/net/discovery/package-info.java b/core/src/main/java/org/bitcoinj/net/discovery/package-info.java index 2c8f3176..d54d6e3e 100644 --- a/core/src/main/java/org/bitcoinj/net/discovery/package-info.java +++ b/core/src/main/java/org/bitcoinj/net/discovery/package-info.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * Classes that know how to discover peers in the P2P network using DNS, IRC or DNS via Tor (orchid). */ diff --git a/core/src/main/java/org/bitcoinj/net/package-info.java b/core/src/main/java/org/bitcoinj/net/package-info.java index 8e4a9f43..48249a61 100644 --- a/core/src/main/java/org/bitcoinj/net/package-info.java +++ b/core/src/main/java/org/bitcoinj/net/package-info.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * Classes handling low level network management using either NIO (async io) or older style blocking sockets (useful for * using SOCKS proxies, Tor, SSL etc). The code in this package implements a simple network abstraction a little like diff --git a/core/src/main/java/org/bitcoinj/params/package-info.java b/core/src/main/java/org/bitcoinj/params/package-info.java index 69d263ff..a0e1697c 100644 --- a/core/src/main/java/org/bitcoinj/params/package-info.java +++ b/core/src/main/java/org/bitcoinj/params/package-info.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * Network parameters encapsulate some of the differences between different Bitcoin networks such as the main * network, the testnet, regtest mode, unit testing params and so on. diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelClientState.java b/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelClientState.java index 01a4f361..63680531 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelClientState.java +++ b/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelClientState.java @@ -23,7 +23,6 @@ import com.google.common.util.concurrent.FutureCallback; import com.google.common.util.concurrent.Futures; import com.google.common.util.concurrent.ListenableFuture; import org.bitcoinj.core.*; -import org.bitcoinj.core.listeners.AbstractWalletEventListener; import org.bitcoinj.crypto.TransactionSignature; import org.bitcoinj.script.Script; import org.bitcoinj.utils.Threading; diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelServerState.java b/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelServerState.java index f07717f6..d64afaed 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelServerState.java +++ b/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelServerState.java @@ -17,7 +17,6 @@ package org.bitcoinj.protocols.channels; import com.google.common.collect.ImmutableList; -import com.google.common.collect.Lists; import com.google.common.collect.Multimap; import com.google.common.util.concurrent.FutureCallback; import com.google.common.util.concurrent.Futures; @@ -26,7 +25,6 @@ import com.google.common.util.concurrent.SettableFuture; import org.bitcoinj.core.*; import org.bitcoinj.crypto.TransactionSignature; import org.bitcoinj.script.Script; -import org.bitcoinj.script.ScriptBuilder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelV1ServerState.java b/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelV1ServerState.java index aad85bf9..3a5492aa 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelV1ServerState.java +++ b/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelV1ServerState.java @@ -28,7 +28,6 @@ import com.google.common.util.concurrent.SettableFuture; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.util.Arrays; import java.util.Locale; import static com.google.common.base.Preconditions.*; diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelV2ClientState.java b/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelV2ClientState.java index 685cc19a..d51bdd29 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelV2ClientState.java +++ b/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelV2ClientState.java @@ -17,7 +17,6 @@ package org.bitcoinj.protocols.channels; import com.google.common.annotations.VisibleForTesting; -import com.google.common.collect.Lists; import com.google.common.collect.Multimap; import com.google.common.collect.MultimapBuilder; import org.bitcoinj.core.*; @@ -31,8 +30,6 @@ import org.spongycastle.crypto.params.KeyParameter; import javax.annotation.Nullable; import java.math.BigInteger; -import java.util.List; - import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkState; diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelV2ServerState.java b/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelV2ServerState.java index 91fb016a..3f7b3c10 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelV2ServerState.java +++ b/core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelV2ServerState.java @@ -33,10 +33,6 @@ import java.math.BigInteger; import java.util.Arrays; import java.util.Locale; -import static com.google.common.base.Preconditions.checkArgument; -import static com.google.common.base.Preconditions.checkNotNull; -import static com.google.common.base.Preconditions.checkState; - /** * Version 2 of the payment channel state machine - uses CLTV opcode transactions * instead of multisig transactions. diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentIncrementAck.java b/core/src/main/java/org/bitcoinj/protocols/channels/PaymentIncrementAck.java index 02788326..40da762e 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/PaymentIncrementAck.java +++ b/core/src/main/java/org/bitcoinj/protocols/channels/PaymentIncrementAck.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.protocols.channels; import org.bitcoinj.core.Coin; diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/StoredPaymentChannelClientStates.java b/core/src/main/java/org/bitcoinj/protocols/channels/StoredPaymentChannelClientStates.java index 3e872282..f8bfcebd 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/StoredPaymentChannelClientStates.java +++ b/core/src/main/java/org/bitcoinj/protocols/channels/StoredPaymentChannelClientStates.java @@ -19,8 +19,6 @@ package org.bitcoinj.protocols.channels; import com.google.common.collect.ImmutableMultimap; import com.google.common.collect.Multimap; import org.bitcoinj.core.*; -import org.bitcoinj.script.Script; -import org.bitcoinj.script.ScriptBuilder; import org.bitcoinj.utils.Threading; import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.HashMultimap; diff --git a/core/src/main/java/org/bitcoinj/protocols/channels/package-info.java b/core/src/main/java/org/bitcoinj/protocols/channels/package-info.java index df339ad0..458f16c4 100644 --- a/core/src/main/java/org/bitcoinj/protocols/channels/package-info.java +++ b/core/src/main/java/org/bitcoinj/protocols/channels/package-info.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * Micropayment channels allow for rapid tiny payments to be made to a third party once a channel has been set up, using * some of the advanced features of the Bitcoin protocol. diff --git a/core/src/main/java/org/bitcoinj/protocols/package-info.java b/core/src/main/java/org/bitcoinj/protocols/package-info.java index 19577a05..3d1caf59 100644 --- a/core/src/main/java/org/bitcoinj/protocols/package-info.java +++ b/core/src/main/java/org/bitcoinj/protocols/package-info.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * High level protocols that build on top of Bitcoin go here: we have the payment protocol for sending transactions * from sender to receiver with metadata, and a micropayment channels implementation. diff --git a/core/src/main/java/org/bitcoinj/protocols/payments/PaymentProtocol.java b/core/src/main/java/org/bitcoinj/protocols/payments/PaymentProtocol.java index ac408d4a..3a77baf7 100644 --- a/core/src/main/java/org/bitcoinj/protocols/payments/PaymentProtocol.java +++ b/core/src/main/java/org/bitcoinj/protocols/payments/PaymentProtocol.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/main/java/org/bitcoinj/protocols/payments/PaymentProtocolException.java b/core/src/main/java/org/bitcoinj/protocols/payments/PaymentProtocolException.java index 01a2a025..63f34897 100644 --- a/core/src/main/java/org/bitcoinj/protocols/payments/PaymentProtocolException.java +++ b/core/src/main/java/org/bitcoinj/protocols/payments/PaymentProtocolException.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/protocols/payments/PaymentSession.java b/core/src/main/java/org/bitcoinj/protocols/payments/PaymentSession.java index 107652aa..f767eefa 100644 --- a/core/src/main/java/org/bitcoinj/protocols/payments/PaymentSession.java +++ b/core/src/main/java/org/bitcoinj/protocols/payments/PaymentSession.java @@ -1,4 +1,4 @@ -/** +/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/core/src/main/java/org/bitcoinj/protocols/payments/package-info.java b/core/src/main/java/org/bitcoinj/protocols/payments/package-info.java index 2c3f9ba0..0d6de718 100644 --- a/core/src/main/java/org/bitcoinj/protocols/payments/package-info.java +++ b/core/src/main/java/org/bitcoinj/protocols/payments/package-info.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * The BIP70 payment protocol wraps Bitcoin transactions and adds various useful features like memos, refund addresses * and authentication. diff --git a/core/src/main/java/org/bitcoinj/script/Script.java b/core/src/main/java/org/bitcoinj/script/Script.java index 1380e7d7..9ddb45ca 100644 --- a/core/src/main/java/org/bitcoinj/script/Script.java +++ b/core/src/main/java/org/bitcoinj/script/Script.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * Copyright 2012 Matt Corallo. * Copyright 2014 Andreas Schildbach diff --git a/core/src/main/java/org/bitcoinj/script/package-info.java b/core/src/main/java/org/bitcoinj/script/package-info.java index 7dc8381a..8198e99c 100644 --- a/core/src/main/java/org/bitcoinj/script/package-info.java +++ b/core/src/main/java/org/bitcoinj/script/package-info.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * Classes for working with and executing Bitcoin script programs, as embedded in inputs and outputs. */ diff --git a/core/src/main/java/org/bitcoinj/signers/CustomTransactionSigner.java b/core/src/main/java/org/bitcoinj/signers/CustomTransactionSigner.java index 1e35fed2..28f705c6 100644 --- a/core/src/main/java/org/bitcoinj/signers/CustomTransactionSigner.java +++ b/core/src/main/java/org/bitcoinj/signers/CustomTransactionSigner.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Kosta Korenkov * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.signers; import org.bitcoinj.core.*; diff --git a/core/src/main/java/org/bitcoinj/signers/LocalTransactionSigner.java b/core/src/main/java/org/bitcoinj/signers/LocalTransactionSigner.java index 4958f9fd..ee02a31a 100644 --- a/core/src/main/java/org/bitcoinj/signers/LocalTransactionSigner.java +++ b/core/src/main/java/org/bitcoinj/signers/LocalTransactionSigner.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Kosta Korenkov * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.signers; import java.util.EnumSet; diff --git a/core/src/main/java/org/bitcoinj/signers/MissingSigResolutionSigner.java b/core/src/main/java/org/bitcoinj/signers/MissingSigResolutionSigner.java index 1e529cff..1a67645b 100644 --- a/core/src/main/java/org/bitcoinj/signers/MissingSigResolutionSigner.java +++ b/core/src/main/java/org/bitcoinj/signers/MissingSigResolutionSigner.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Kosta Korenkov * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.signers; import org.bitcoinj.core.ECKey; diff --git a/core/src/main/java/org/bitcoinj/signers/StatelessTransactionSigner.java b/core/src/main/java/org/bitcoinj/signers/StatelessTransactionSigner.java index 29932607..393804bf 100644 --- a/core/src/main/java/org/bitcoinj/signers/StatelessTransactionSigner.java +++ b/core/src/main/java/org/bitcoinj/signers/StatelessTransactionSigner.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Kosta Korenkov * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.signers; /** diff --git a/core/src/main/java/org/bitcoinj/signers/TransactionSigner.java b/core/src/main/java/org/bitcoinj/signers/TransactionSigner.java index 1662850d..98705e65 100644 --- a/core/src/main/java/org/bitcoinj/signers/TransactionSigner.java +++ b/core/src/main/java/org/bitcoinj/signers/TransactionSigner.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Kosta Korenkov * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.signers; import org.bitcoinj.core.Transaction; diff --git a/core/src/main/java/org/bitcoinj/signers/package-info.java b/core/src/main/java/org/bitcoinj/signers/package-info.java index 2d3d5601..49f0680b 100644 --- a/core/src/main/java/org/bitcoinj/signers/package-info.java +++ b/core/src/main/java/org/bitcoinj/signers/package-info.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * Transaction signers know how to calculate signatures over transactions in different contexts, for example, using * local private keys or fetching them from remote servers. The {@link org.bitcoinj.core.Wallet} class uses these diff --git a/core/src/main/java/org/bitcoinj/store/BlockStore.java b/core/src/main/java/org/bitcoinj/store/BlockStore.java index 0709672b..188ebb7b 100644 --- a/core/src/main/java/org/bitcoinj/store/BlockStore.java +++ b/core/src/main/java/org/bitcoinj/store/BlockStore.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/store/BlockStoreException.java b/core/src/main/java/org/bitcoinj/store/BlockStoreException.java index 413db309..dc28f254 100644 --- a/core/src/main/java/org/bitcoinj/store/BlockStoreException.java +++ b/core/src/main/java/org/bitcoinj/store/BlockStoreException.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/store/ChainFileLockedException.java b/core/src/main/java/org/bitcoinj/store/ChainFileLockedException.java index c7856b85..7d7cf072 100644 --- a/core/src/main/java/org/bitcoinj/store/ChainFileLockedException.java +++ b/core/src/main/java/org/bitcoinj/store/ChainFileLockedException.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.store; /** diff --git a/core/src/main/java/org/bitcoinj/store/DatabaseFullPrunedBlockStore.java b/core/src/main/java/org/bitcoinj/store/DatabaseFullPrunedBlockStore.java index 3c79dc3c..9e9f9e2a 100644 --- a/core/src/main/java/org/bitcoinj/store/DatabaseFullPrunedBlockStore.java +++ b/core/src/main/java/org/bitcoinj/store/DatabaseFullPrunedBlockStore.java @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.store; import com.google.common.collect.Lists; diff --git a/core/src/main/java/org/bitcoinj/store/LevelDBBlockStore.java b/core/src/main/java/org/bitcoinj/store/LevelDBBlockStore.java index 219bf125..90ff4089 100644 --- a/core/src/main/java/org/bitcoinj/store/LevelDBBlockStore.java +++ b/core/src/main/java/org/bitcoinj/store/LevelDBBlockStore.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.store; import org.bitcoinj.core.*; diff --git a/core/src/main/java/org/bitcoinj/store/MemoryBlockStore.java b/core/src/main/java/org/bitcoinj/store/MemoryBlockStore.java index ca531040..eb2be66e 100644 --- a/core/src/main/java/org/bitcoinj/store/MemoryBlockStore.java +++ b/core/src/main/java/org/bitcoinj/store/MemoryBlockStore.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/store/MySQLFullPrunedBlockStore.java b/core/src/main/java/org/bitcoinj/store/MySQLFullPrunedBlockStore.java index 95c2689f..03244255 100644 --- a/core/src/main/java/org/bitcoinj/store/MySQLFullPrunedBlockStore.java +++ b/core/src/main/java/org/bitcoinj/store/MySQLFullPrunedBlockStore.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.store; import org.bitcoinj.core.NetworkParameters; diff --git a/core/src/main/java/org/bitcoinj/store/PostgresFullPrunedBlockStore.java b/core/src/main/java/org/bitcoinj/store/PostgresFullPrunedBlockStore.java index 0b956353..a08283bf 100644 --- a/core/src/main/java/org/bitcoinj/store/PostgresFullPrunedBlockStore.java +++ b/core/src/main/java/org/bitcoinj/store/PostgresFullPrunedBlockStore.java @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.store; import org.bitcoinj.core.*; diff --git a/core/src/main/java/org/bitcoinj/store/SPVBlockStore.java b/core/src/main/java/org/bitcoinj/store/SPVBlockStore.java index 0b2e393b..8a342778 100644 --- a/core/src/main/java/org/bitcoinj/store/SPVBlockStore.java +++ b/core/src/main/java/org/bitcoinj/store/SPVBlockStore.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/store/UnreadableWalletException.java b/core/src/main/java/org/bitcoinj/store/UnreadableWalletException.java index 1a8c4e88..a7bb58af 100644 --- a/core/src/main/java/org/bitcoinj/store/UnreadableWalletException.java +++ b/core/src/main/java/org/bitcoinj/store/UnreadableWalletException.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.store; /** diff --git a/core/src/main/java/org/bitcoinj/store/WalletProtobufSerializer.java b/core/src/main/java/org/bitcoinj/store/WalletProtobufSerializer.java index 8573782f..fd95917e 100644 --- a/core/src/main/java/org/bitcoinj/store/WalletProtobufSerializer.java +++ b/core/src/main/java/org/bitcoinj/store/WalletProtobufSerializer.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2012 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/main/java/org/bitcoinj/store/WindowsMMapHack.java b/core/src/main/java/org/bitcoinj/store/WindowsMMapHack.java index d78aee58..035d4f21 100644 --- a/core/src/main/java/org/bitcoinj/store/WindowsMMapHack.java +++ b/core/src/main/java/org/bitcoinj/store/WindowsMMapHack.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.store; import sun.misc.*; diff --git a/core/src/main/java/org/bitcoinj/store/package-info.java b/core/src/main/java/org/bitcoinj/store/package-info.java index b8783471..929cf916 100644 --- a/core/src/main/java/org/bitcoinj/store/package-info.java +++ b/core/src/main/java/org/bitcoinj/store/package-info.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * Block stores persist blockchain data downloaded from remote peers. There is an SPV block store which preserves a ring * buffer of headers on disk and is suitable for lightweight user wallets, a store that's backed by Postgres and which diff --git a/core/src/main/java/org/bitcoinj/uri/OptionalFieldValidationException.java b/core/src/main/java/org/bitcoinj/uri/OptionalFieldValidationException.java index d270a166..fbac47c6 100644 --- a/core/src/main/java/org/bitcoinj/uri/OptionalFieldValidationException.java +++ b/core/src/main/java/org/bitcoinj/uri/OptionalFieldValidationException.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.uri; /** diff --git a/core/src/main/java/org/bitcoinj/uri/RequiredFieldValidationException.java b/core/src/main/java/org/bitcoinj/uri/RequiredFieldValidationException.java index 98300925..5b0df649 100644 --- a/core/src/main/java/org/bitcoinj/uri/RequiredFieldValidationException.java +++ b/core/src/main/java/org/bitcoinj/uri/RequiredFieldValidationException.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.uri; /** diff --git a/core/src/main/java/org/bitcoinj/uri/package-info.java b/core/src/main/java/org/bitcoinj/uri/package-info.java index a9e8faa7..b1fc1857 100644 --- a/core/src/main/java/org/bitcoinj/uri/package-info.java +++ b/core/src/main/java/org/bitcoinj/uri/package-info.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * Parsing and handling of bitcoin: textual URIs as found in qr codes and web links. */ diff --git a/core/src/main/java/org/bitcoinj/utils/BaseTaggableObject.java b/core/src/main/java/org/bitcoinj/utils/BaseTaggableObject.java index badf9a25..14f2814a 100644 --- a/core/src/main/java/org/bitcoinj/utils/BaseTaggableObject.java +++ b/core/src/main/java/org/bitcoinj/utils/BaseTaggableObject.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.utils; import com.google.common.collect.Maps; diff --git a/core/src/main/java/org/bitcoinj/utils/ContextPropagatingThreadFactory.java b/core/src/main/java/org/bitcoinj/utils/ContextPropagatingThreadFactory.java index 556d306d..ca0cb761 100644 --- a/core/src/main/java/org/bitcoinj/utils/ContextPropagatingThreadFactory.java +++ b/core/src/main/java/org/bitcoinj/utils/ContextPropagatingThreadFactory.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.utils; import com.google.common.base.*; diff --git a/core/src/main/java/org/bitcoinj/utils/DaemonThreadFactory.java b/core/src/main/java/org/bitcoinj/utils/DaemonThreadFactory.java index 254feccd..1f3d9d28 100644 --- a/core/src/main/java/org/bitcoinj/utils/DaemonThreadFactory.java +++ b/core/src/main/java/org/bitcoinj/utils/DaemonThreadFactory.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.utils; import javax.annotation.Nonnull; diff --git a/core/src/main/java/org/bitcoinj/utils/ExponentialBackoff.java b/core/src/main/java/org/bitcoinj/utils/ExponentialBackoff.java index 46ae2ff2..35927c83 100644 --- a/core/src/main/java/org/bitcoinj/utils/ExponentialBackoff.java +++ b/core/src/main/java/org/bitcoinj/utils/ExponentialBackoff.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/utils/Fiat.java b/core/src/main/java/org/bitcoinj/utils/Fiat.java index ec8b3b60..e7c9165c 100644 --- a/core/src/main/java/org/bitcoinj/utils/Fiat.java +++ b/core/src/main/java/org/bitcoinj/utils/Fiat.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Andreas Schildbach * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/utils/ListenerRegistration.java b/core/src/main/java/org/bitcoinj/utils/ListenerRegistration.java index 2c7895ac..f98e26f6 100644 --- a/core/src/main/java/org/bitcoinj/utils/ListenerRegistration.java +++ b/core/src/main/java/org/bitcoinj/utils/ListenerRegistration.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/utils/TaggableObject.java b/core/src/main/java/org/bitcoinj/utils/TaggableObject.java index 65469fa7..60c74cde 100644 --- a/core/src/main/java/org/bitcoinj/utils/TaggableObject.java +++ b/core/src/main/java/org/bitcoinj/utils/TaggableObject.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.utils; import com.google.protobuf.ByteString; diff --git a/core/src/main/java/org/bitcoinj/utils/Threading.java b/core/src/main/java/org/bitcoinj/utils/Threading.java index b526468c..bbbdbdfd 100644 --- a/core/src/main/java/org/bitcoinj/utils/Threading.java +++ b/core/src/main/java/org/bitcoinj/utils/Threading.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/utils/package-info.java b/core/src/main/java/org/bitcoinj/utils/package-info.java index 756151a4..fe2cc001 100644 --- a/core/src/main/java/org/bitcoinj/utils/package-info.java +++ b/core/src/main/java/org/bitcoinj/utils/package-info.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * Formatting monetary amounts, representing exchange rates, a program for loading Bitcoin Core saved block files, * a class to control how bitcoinj uses threads and misc other utility classes that don't fit anywhere else. diff --git a/core/src/main/java/org/bitcoinj/wallet/AbstractKeyChainEventListener.java b/core/src/main/java/org/bitcoinj/wallet/AbstractKeyChainEventListener.java index 9880271a..27b81ad9 100644 --- a/core/src/main/java/org/bitcoinj/wallet/AbstractKeyChainEventListener.java +++ b/core/src/main/java/org/bitcoinj/wallet/AbstractKeyChainEventListener.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.wallet; import org.bitcoinj.core.ECKey; diff --git a/core/src/main/java/org/bitcoinj/wallet/AllRandomKeysRotating.java b/core/src/main/java/org/bitcoinj/wallet/AllRandomKeysRotating.java index b7a60ace..5624ef83 100644 --- a/core/src/main/java/org/bitcoinj/wallet/AllRandomKeysRotating.java +++ b/core/src/main/java/org/bitcoinj/wallet/AllRandomKeysRotating.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.wallet; /** diff --git a/core/src/main/java/org/bitcoinj/wallet/AllowUnconfirmedCoinSelector.java b/core/src/main/java/org/bitcoinj/wallet/AllowUnconfirmedCoinSelector.java index 054ea75c..1d052835 100644 --- a/core/src/main/java/org/bitcoinj/wallet/AllowUnconfirmedCoinSelector.java +++ b/core/src/main/java/org/bitcoinj/wallet/AllowUnconfirmedCoinSelector.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.wallet; import org.bitcoinj.core.Transaction; diff --git a/core/src/main/java/org/bitcoinj/wallet/BasicKeyChain.java b/core/src/main/java/org/bitcoinj/wallet/BasicKeyChain.java index 7f54f42f..9fd44b5a 100644 --- a/core/src/main/java/org/bitcoinj/wallet/BasicKeyChain.java +++ b/core/src/main/java/org/bitcoinj/wallet/BasicKeyChain.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/wallet/CoinSelection.java b/core/src/main/java/org/bitcoinj/wallet/CoinSelection.java index d9e41c4a..75840210 100644 --- a/core/src/main/java/org/bitcoinj/wallet/CoinSelection.java +++ b/core/src/main/java/org/bitcoinj/wallet/CoinSelection.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.wallet; import org.bitcoinj.core.Coin; diff --git a/core/src/main/java/org/bitcoinj/wallet/CoinSelector.java b/core/src/main/java/org/bitcoinj/wallet/CoinSelector.java index b62d67ea..e656416a 100644 --- a/core/src/main/java/org/bitcoinj/wallet/CoinSelector.java +++ b/core/src/main/java/org/bitcoinj/wallet/CoinSelector.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.wallet; import org.bitcoinj.core.Coin; diff --git a/core/src/main/java/org/bitcoinj/wallet/DecryptingKeyBag.java b/core/src/main/java/org/bitcoinj/wallet/DecryptingKeyBag.java index c82792e8..b9f1e46f 100644 --- a/core/src/main/java/org/bitcoinj/wallet/DecryptingKeyBag.java +++ b/core/src/main/java/org/bitcoinj/wallet/DecryptingKeyBag.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 The bitcoinj authors. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/wallet/DefaultCoinSelector.java b/core/src/main/java/org/bitcoinj/wallet/DefaultCoinSelector.java index 6c5234eb..e2144a2f 100644 --- a/core/src/main/java/org/bitcoinj/wallet/DefaultCoinSelector.java +++ b/core/src/main/java/org/bitcoinj/wallet/DefaultCoinSelector.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.wallet; import org.bitcoinj.core.Coin; @@ -5,7 +19,6 @@ import org.bitcoinj.core.NetworkParameters; import org.bitcoinj.core.Transaction; import org.bitcoinj.core.TransactionConfidence; import org.bitcoinj.core.TransactionOutput; -import org.bitcoinj.params.RegTestParams; import com.google.common.annotations.VisibleForTesting; import java.math.BigInteger; diff --git a/core/src/main/java/org/bitcoinj/wallet/DefaultKeyChainFactory.java b/core/src/main/java/org/bitcoinj/wallet/DefaultKeyChainFactory.java index f09f79c2..6a4022fd 100644 --- a/core/src/main/java/org/bitcoinj/wallet/DefaultKeyChainFactory.java +++ b/core/src/main/java/org/bitcoinj/wallet/DefaultKeyChainFactory.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 devrandom * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/wallet/DeterministicKeyChain.java b/core/src/main/java/org/bitcoinj/wallet/DeterministicKeyChain.java index 25a003b8..bd99e1d9 100644 --- a/core/src/main/java/org/bitcoinj/wallet/DeterministicKeyChain.java +++ b/core/src/main/java/org/bitcoinj/wallet/DeterministicKeyChain.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 The bitcoinj developers. * Copyright 2015 Andreas Schildbach * diff --git a/core/src/main/java/org/bitcoinj/wallet/DeterministicSeed.java b/core/src/main/java/org/bitcoinj/wallet/DeterministicSeed.java index b6520cb6..208a4d37 100644 --- a/core/src/main/java/org/bitcoinj/wallet/DeterministicSeed.java +++ b/core/src/main/java/org/bitcoinj/wallet/DeterministicSeed.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/main/java/org/bitcoinj/wallet/DeterministicUpgradeRequiredException.java b/core/src/main/java/org/bitcoinj/wallet/DeterministicUpgradeRequiredException.java index fd8d5bf8..dcd5e75e 100644 --- a/core/src/main/java/org/bitcoinj/wallet/DeterministicUpgradeRequiredException.java +++ b/core/src/main/java/org/bitcoinj/wallet/DeterministicUpgradeRequiredException.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.wallet; /** diff --git a/core/src/main/java/org/bitcoinj/wallet/DeterministicUpgradeRequiresPassword.java b/core/src/main/java/org/bitcoinj/wallet/DeterministicUpgradeRequiresPassword.java index 0199b20b..4210e6b8 100644 --- a/core/src/main/java/org/bitcoinj/wallet/DeterministicUpgradeRequiresPassword.java +++ b/core/src/main/java/org/bitcoinj/wallet/DeterministicUpgradeRequiresPassword.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.wallet; /** diff --git a/core/src/main/java/org/bitcoinj/wallet/EncryptableKeyChain.java b/core/src/main/java/org/bitcoinj/wallet/EncryptableKeyChain.java index 0a178100..9b0dcc68 100644 --- a/core/src/main/java/org/bitcoinj/wallet/EncryptableKeyChain.java +++ b/core/src/main/java/org/bitcoinj/wallet/EncryptableKeyChain.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/wallet/FilteringCoinSelector.java b/core/src/main/java/org/bitcoinj/wallet/FilteringCoinSelector.java index a500b839..fb142dbe 100644 --- a/core/src/main/java/org/bitcoinj/wallet/FilteringCoinSelector.java +++ b/core/src/main/java/org/bitcoinj/wallet/FilteringCoinSelector.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 the bitcoinj authors. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,7 +14,6 @@ * limitations under the License. */ - package org.bitcoinj.wallet; import org.bitcoinj.core.*; diff --git a/core/src/main/java/org/bitcoinj/wallet/KeyBag.java b/core/src/main/java/org/bitcoinj/wallet/KeyBag.java index bb8b6126..684f1330 100644 --- a/core/src/main/java/org/bitcoinj/wallet/KeyBag.java +++ b/core/src/main/java/org/bitcoinj/wallet/KeyBag.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 The bitcoinj authors. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/wallet/KeyChain.java b/core/src/main/java/org/bitcoinj/wallet/KeyChain.java index 85e50379..bcb88031 100644 --- a/core/src/main/java/org/bitcoinj/wallet/KeyChain.java +++ b/core/src/main/java/org/bitcoinj/wallet/KeyChain.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/wallet/KeyChainEventListener.java b/core/src/main/java/org/bitcoinj/wallet/KeyChainEventListener.java index ba50ccec..88f77c54 100644 --- a/core/src/main/java/org/bitcoinj/wallet/KeyChainEventListener.java +++ b/core/src/main/java/org/bitcoinj/wallet/KeyChainEventListener.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.wallet; import org.bitcoinj.core.ECKey; diff --git a/core/src/main/java/org/bitcoinj/wallet/KeyChainFactory.java b/core/src/main/java/org/bitcoinj/wallet/KeyChainFactory.java index 7975fa82..906b9d72 100644 --- a/core/src/main/java/org/bitcoinj/wallet/KeyChainFactory.java +++ b/core/src/main/java/org/bitcoinj/wallet/KeyChainFactory.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 devrandom * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/wallet/KeyChainGroup.java b/core/src/main/java/org/bitcoinj/wallet/KeyChainGroup.java index e2ac6ba6..7b47376a 100644 --- a/core/src/main/java/org/bitcoinj/wallet/KeyChainGroup.java +++ b/core/src/main/java/org/bitcoinj/wallet/KeyChainGroup.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Mike Hearn * Copyright 2014 Andreas Schildbach * @@ -17,7 +17,6 @@ package org.bitcoinj.wallet; -import com.google.common.base.*; import com.google.common.collect.*; import com.google.protobuf.*; import org.bitcoinj.core.*; diff --git a/core/src/main/java/org/bitcoinj/wallet/KeyTimeCoinSelector.java b/core/src/main/java/org/bitcoinj/wallet/KeyTimeCoinSelector.java index cc25b160..210ec71b 100644 --- a/core/src/main/java/org/bitcoinj/wallet/KeyTimeCoinSelector.java +++ b/core/src/main/java/org/bitcoinj/wallet/KeyTimeCoinSelector.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/wallet/MarriedKeyChain.java b/core/src/main/java/org/bitcoinj/wallet/MarriedKeyChain.java index 91fa2c22..5499b938 100644 --- a/core/src/main/java/org/bitcoinj/wallet/MarriedKeyChain.java +++ b/core/src/main/java/org/bitcoinj/wallet/MarriedKeyChain.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 The bitcoinj developers. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -32,7 +32,6 @@ import org.bitcoinj.script.ScriptBuilder; import java.security.SecureRandom; import java.util.LinkedHashMap; import java.util.List; -import java.util.Locale; import java.util.Map; import javax.annotation.Nullable; diff --git a/core/src/main/java/org/bitcoinj/wallet/RedeemData.java b/core/src/main/java/org/bitcoinj/wallet/RedeemData.java index f07d4bb8..2f8e8cc1 100644 --- a/core/src/main/java/org/bitcoinj/wallet/RedeemData.java +++ b/core/src/main/java/org/bitcoinj/wallet/RedeemData.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Kosta Korenkov * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.wallet; import org.bitcoinj.core.ECKey; diff --git a/core/src/main/java/org/bitcoinj/wallet/WalletFiles.java b/core/src/main/java/org/bitcoinj/wallet/WalletFiles.java index f20a43f5..13ea5e90 100644 --- a/core/src/main/java/org/bitcoinj/wallet/WalletFiles.java +++ b/core/src/main/java/org/bitcoinj/wallet/WalletFiles.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/main/java/org/bitcoinj/wallet/WalletTransaction.java b/core/src/main/java/org/bitcoinj/wallet/WalletTransaction.java index 9e8aa31e..b179cd7c 100644 --- a/core/src/main/java/org/bitcoinj/wallet/WalletTransaction.java +++ b/core/src/main/java/org/bitcoinj/wallet/WalletTransaction.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/main/java/org/bitcoinj/wallet/package-info.java b/core/src/main/java/org/bitcoinj/wallet/package-info.java index fe802665..821fcd76 100644 --- a/core/src/main/java/org/bitcoinj/wallet/package-info.java +++ b/core/src/main/java/org/bitcoinj/wallet/package-info.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * Classes that support the {@link org.bitcoinj.core.Wallet}, which knows how to find and save transactions relevant to * a set of keys or scripts, calculate balances, and spend money: the wallet has many features and can be extended diff --git a/core/src/test/java/org/bitcoinj/core/AddressTest.java b/core/src/test/java/org/bitcoinj/core/AddressTest.java index 5f6447a4..d758e9b9 100644 --- a/core/src/test/java/org/bitcoinj/core/AddressTest.java +++ b/core/src/test/java/org/bitcoinj/core/AddressTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/test/java/org/bitcoinj/core/BitcoinSerializerTest.java b/core/src/test/java/org/bitcoinj/core/BitcoinSerializerTest.java index 631514c2..c43cbac6 100644 --- a/core/src/test/java/org/bitcoinj/core/BitcoinSerializerTest.java +++ b/core/src/test/java/org/bitcoinj/core/BitcoinSerializerTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Noa Resare * Copyright 2014 Andreas Schildbach * diff --git a/core/src/test/java/org/bitcoinj/core/BlockChainTest.java b/core/src/test/java/org/bitcoinj/core/BlockChainTest.java index 51b1373f..2ede9843 100644 --- a/core/src/test/java/org/bitcoinj/core/BlockChainTest.java +++ b/core/src/test/java/org/bitcoinj/core/BlockChainTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * Copyright 2014 Andreas Schildbach * @@ -27,7 +27,6 @@ import org.bitcoinj.testing.FakeTxBuilder; import org.bitcoinj.utils.BriefLogFormatter; import com.google.common.util.concurrent.ListenableFuture; import org.junit.rules.ExpectedException; -import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; @@ -38,7 +37,6 @@ import java.util.Date; import java.util.Locale; import static org.bitcoinj.core.Coin.*; -import org.bitcoinj.store.BlockStoreException; import static org.bitcoinj.testing.FakeTxBuilder.createFakeBlock; import static org.bitcoinj.testing.FakeTxBuilder.createFakeTx; import static org.junit.Assert.*; diff --git a/core/src/test/java/org/bitcoinj/core/CoinTest.java b/core/src/test/java/org/bitcoinj/core/CoinTest.java index 4230c8fd..a741caf4 100644 --- a/core/src/test/java/org/bitcoinj/core/CoinTest.java +++ b/core/src/test/java/org/bitcoinj/core/CoinTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Andreas Schildbach * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/test/java/org/bitcoinj/core/ECKeyTest.java b/core/src/test/java/org/bitcoinj/core/ECKeyTest.java index 1792da20..ed1fe56f 100644 --- a/core/src/test/java/org/bitcoinj/core/ECKeyTest.java +++ b/core/src/test/java/org/bitcoinj/core/ECKeyTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/test/java/org/bitcoinj/core/FilteredBlockAndPartialMerkleTreeTests.java b/core/src/test/java/org/bitcoinj/core/FilteredBlockAndPartialMerkleTreeTests.java index 43ea5446..d78b8f17 100644 --- a/core/src/test/java/org/bitcoinj/core/FilteredBlockAndPartialMerkleTreeTests.java +++ b/core/src/test/java/org/bitcoinj/core/FilteredBlockAndPartialMerkleTreeTests.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2012 Matt Corallo * Copyright 2014 Andreas Schildbach * diff --git a/core/src/test/java/org/bitcoinj/core/FullBlockTestGenerator.java b/core/src/test/java/org/bitcoinj/core/FullBlockTestGenerator.java index 742bee75..08481e13 100644 --- a/core/src/test/java/org/bitcoinj/core/FullBlockTestGenerator.java +++ b/core/src/test/java/org/bitcoinj/core/FullBlockTestGenerator.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.core; import com.google.common.collect.ImmutableList; diff --git a/core/src/test/java/org/bitcoinj/core/H2FullPrunedBlockChainTest.java b/core/src/test/java/org/bitcoinj/core/H2FullPrunedBlockChainTest.java index d47ad4af..1c2301d0 100644 --- a/core/src/test/java/org/bitcoinj/core/H2FullPrunedBlockChainTest.java +++ b/core/src/test/java/org/bitcoinj/core/H2FullPrunedBlockChainTest.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.core; import org.bitcoinj.store.BlockStoreException; diff --git a/core/src/test/java/org/bitcoinj/core/LevelDBFullPrunedBlockChainTest.java b/core/src/test/java/org/bitcoinj/core/LevelDBFullPrunedBlockChainTest.java index ee092e32..12c2788d 100644 --- a/core/src/test/java/org/bitcoinj/core/LevelDBFullPrunedBlockChainTest.java +++ b/core/src/test/java/org/bitcoinj/core/LevelDBFullPrunedBlockChainTest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.core; import org.bitcoinj.store.BlockStoreException; diff --git a/core/src/test/java/org/bitcoinj/core/MemoryFullPrunedBlockChainTest.java b/core/src/test/java/org/bitcoinj/core/MemoryFullPrunedBlockChainTest.java index dc0fe8da..68f3d55c 100644 --- a/core/src/test/java/org/bitcoinj/core/MemoryFullPrunedBlockChainTest.java +++ b/core/src/test/java/org/bitcoinj/core/MemoryFullPrunedBlockChainTest.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.core; import org.bitcoinj.store.BlockStoreException; diff --git a/core/src/test/java/org/bitcoinj/core/MySQLFullPrunedBlockChainTest.java b/core/src/test/java/org/bitcoinj/core/MySQLFullPrunedBlockChainTest.java index cf37a33d..e26ddcb1 100644 --- a/core/src/test/java/org/bitcoinj/core/MySQLFullPrunedBlockChainTest.java +++ b/core/src/test/java/org/bitcoinj/core/MySQLFullPrunedBlockChainTest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.core; import org.bitcoinj.store.BlockStoreException; diff --git a/core/src/test/java/org/bitcoinj/core/ParseByteCacheTest.java b/core/src/test/java/org/bitcoinj/core/ParseByteCacheTest.java index dfbacc10..ad405be0 100644 --- a/core/src/test/java/org/bitcoinj/core/ParseByteCacheTest.java +++ b/core/src/test/java/org/bitcoinj/core/ParseByteCacheTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Steve Coughlan. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/test/java/org/bitcoinj/core/PostgresFullPrunedBlockChainTest.java b/core/src/test/java/org/bitcoinj/core/PostgresFullPrunedBlockChainTest.java index 6961122a..57b448b9 100644 --- a/core/src/test/java/org/bitcoinj/core/PostgresFullPrunedBlockChainTest.java +++ b/core/src/test/java/org/bitcoinj/core/PostgresFullPrunedBlockChainTest.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.core; import org.bitcoinj.store.BlockStoreException; diff --git a/core/src/test/java/org/bitcoinj/core/TransactionBroadcastTest.java b/core/src/test/java/org/bitcoinj/core/TransactionBroadcastTest.java index bac2bd4e..37513346 100644 --- a/core/src/test/java/org/bitcoinj/core/TransactionBroadcastTest.java +++ b/core/src/test/java/org/bitcoinj/core/TransactionBroadcastTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/test/java/org/bitcoinj/core/TransactionOutputTest.java b/core/src/test/java/org/bitcoinj/core/TransactionOutputTest.java index 5a7ace5e..4c2f7554 100644 --- a/core/src/test/java/org/bitcoinj/core/TransactionOutputTest.java +++ b/core/src/test/java/org/bitcoinj/core/TransactionOutputTest.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.core; import com.google.common.collect.ImmutableList; diff --git a/core/src/test/java/org/bitcoinj/core/UtilsTest.java b/core/src/test/java/org/bitcoinj/core/UtilsTest.java index 5c7f8d50..b3171cba 100644 --- a/core/src/test/java/org/bitcoinj/core/UtilsTest.java +++ b/core/src/test/java/org/bitcoinj/core/UtilsTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Thilo Planz * Copyright 2014 Andreas Schildbach * diff --git a/core/src/test/java/org/bitcoinj/core/VarIntTest.java b/core/src/test/java/org/bitcoinj/core/VarIntTest.java index b48b67c2..8c4e91e7 100644 --- a/core/src/test/java/org/bitcoinj/core/VarIntTest.java +++ b/core/src/test/java/org/bitcoinj/core/VarIntTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/test/java/org/bitcoinj/core/VersionedChecksummedBytesTest.java b/core/src/test/java/org/bitcoinj/core/VersionedChecksummedBytesTest.java index 4530eeef..702527e6 100644 --- a/core/src/test/java/org/bitcoinj/core/VersionedChecksummedBytesTest.java +++ b/core/src/test/java/org/bitcoinj/core/VersionedChecksummedBytesTest.java @@ -1,5 +1,5 @@ -/** - * Copyright 2014 BitcoinJ Project +/* + * Copyright 2014 bitcoinj project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/core/src/test/java/org/bitcoinj/core/WalletExtensionsTest.java b/core/src/test/java/org/bitcoinj/core/WalletExtensionsTest.java index 7253e1ff..af334528 100644 --- a/core/src/test/java/org/bitcoinj/core/WalletExtensionsTest.java +++ b/core/src/test/java/org/bitcoinj/core/WalletExtensionsTest.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.core; import org.bitcoinj.testing.FooWalletExtension; diff --git a/core/src/test/java/org/bitcoinj/core/WalletTest.java b/core/src/test/java/org/bitcoinj/core/WalletTest.java index d73e9952..a5e095c2 100644 --- a/core/src/test/java/org/bitcoinj/core/WalletTest.java +++ b/core/src/test/java/org/bitcoinj/core/WalletTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/test/java/org/bitcoinj/crypto/ChildKeyDerivationTest.java b/core/src/test/java/org/bitcoinj/crypto/ChildKeyDerivationTest.java index 8809a76d..95419356 100644 --- a/core/src/test/java/org/bitcoinj/crypto/ChildKeyDerivationTest.java +++ b/core/src/test/java/org/bitcoinj/crypto/ChildKeyDerivationTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Matija Mazi. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/test/java/org/bitcoinj/crypto/KeyCrypterScryptTest.java b/core/src/test/java/org/bitcoinj/crypto/KeyCrypterScryptTest.java index a77811eb..8971025f 100644 --- a/core/src/test/java/org/bitcoinj/crypto/KeyCrypterScryptTest.java +++ b/core/src/test/java/org/bitcoinj/crypto/KeyCrypterScryptTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Jim Burton. * Copyright 2014 Andreas Schildbach * @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.crypto; import org.bitcoinj.core.Utils; diff --git a/core/src/test/java/org/bitcoinj/crypto/X509UtilsTest.java b/core/src/test/java/org/bitcoinj/crypto/X509UtilsTest.java index 195ee601..782311d1 100644 --- a/core/src/test/java/org/bitcoinj/crypto/X509UtilsTest.java +++ b/core/src/test/java/org/bitcoinj/crypto/X509UtilsTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Andreas Schildbach * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/test/java/org/bitcoinj/net/discovery/SeedPeersTest.java b/core/src/test/java/org/bitcoinj/net/discovery/SeedPeersTest.java index 2c63e2df..626a3547 100644 --- a/core/src/test/java/org/bitcoinj/net/discovery/SeedPeersTest.java +++ b/core/src/test/java/org/bitcoinj/net/discovery/SeedPeersTest.java @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.net.discovery; import org.bitcoinj.params.MainNetParams; diff --git a/core/src/test/java/org/bitcoinj/protocols/channels/ChannelConnectionTest.java b/core/src/test/java/org/bitcoinj/protocols/channels/ChannelConnectionTest.java index c350399a..5912364b 100644 --- a/core/src/test/java/org/bitcoinj/protocols/channels/ChannelConnectionTest.java +++ b/core/src/test/java/org/bitcoinj/protocols/channels/ChannelConnectionTest.java @@ -41,7 +41,6 @@ import java.net.InetSocketAddress; import java.net.SocketAddress; import java.util.Arrays; import java.util.Collection; -import java.util.List; import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicBoolean; diff --git a/core/src/test/java/org/bitcoinj/protocols/channels/ChannelTestUtils.java b/core/src/test/java/org/bitcoinj/protocols/channels/ChannelTestUtils.java index 019b3b12..af59fb72 100644 --- a/core/src/test/java/org/bitcoinj/protocols/channels/ChannelTestUtils.java +++ b/core/src/test/java/org/bitcoinj/protocols/channels/ChannelTestUtils.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.protocols.channels; import org.bitcoinj.core.Coin; diff --git a/core/src/test/java/org/bitcoinj/protocols/channels/PaymentChannelClientTest.java b/core/src/test/java/org/bitcoinj/protocols/channels/PaymentChannelClientTest.java index dba6a177..20c35329 100644 --- a/core/src/test/java/org/bitcoinj/protocols/channels/PaymentChannelClientTest.java +++ b/core/src/test/java/org/bitcoinj/protocols/channels/PaymentChannelClientTest.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.protocols.channels; import org.bitcoinj.core.*; diff --git a/core/src/test/java/org/bitcoinj/protocols/channels/PaymentChannelServerTest.java b/core/src/test/java/org/bitcoinj/protocols/channels/PaymentChannelServerTest.java index c94f7411..74c464c2 100644 --- a/core/src/test/java/org/bitcoinj/protocols/channels/PaymentChannelServerTest.java +++ b/core/src/test/java/org/bitcoinj/protocols/channels/PaymentChannelServerTest.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.protocols.channels; import org.bitcoinj.core.Coin; diff --git a/core/src/test/java/org/bitcoinj/protocols/payments/PaymentProtocolTest.java b/core/src/test/java/org/bitcoinj/protocols/payments/PaymentProtocolTest.java index a75676b4..f7c805fc 100644 --- a/core/src/test/java/org/bitcoinj/protocols/payments/PaymentProtocolTest.java +++ b/core/src/test/java/org/bitcoinj/protocols/payments/PaymentProtocolTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Andreas Schildbach * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/test/java/org/bitcoinj/protocols/payments/PaymentSessionTest.java b/core/src/test/java/org/bitcoinj/protocols/payments/PaymentSessionTest.java index dc6a3a1d..41d5de3a 100644 --- a/core/src/test/java/org/bitcoinj/protocols/payments/PaymentSessionTest.java +++ b/core/src/test/java/org/bitcoinj/protocols/payments/PaymentSessionTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/test/java/org/bitcoinj/script/ScriptChunkTest.java b/core/src/test/java/org/bitcoinj/script/ScriptChunkTest.java index 3183ad70..7ba2ea34 100644 --- a/core/src/test/java/org/bitcoinj/script/ScriptChunkTest.java +++ b/core/src/test/java/org/bitcoinj/script/ScriptChunkTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Andreas Schildbach * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/test/java/org/bitcoinj/store/LevelDBBlockStoreTest.java b/core/src/test/java/org/bitcoinj/store/LevelDBBlockStoreTest.java index 8d203c1a..1d5ffbbf 100644 --- a/core/src/test/java/org/bitcoinj/store/LevelDBBlockStoreTest.java +++ b/core/src/test/java/org/bitcoinj/store/LevelDBBlockStoreTest.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.store; import org.bitcoinj.core.*; diff --git a/core/src/test/java/org/bitcoinj/store/SPVBlockStoreTest.java b/core/src/test/java/org/bitcoinj/store/SPVBlockStoreTest.java index baacc82f..01e20725 100644 --- a/core/src/test/java/org/bitcoinj/store/SPVBlockStoreTest.java +++ b/core/src/test/java/org/bitcoinj/store/SPVBlockStoreTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/test/java/org/bitcoinj/store/WalletProtobufSerializerTest.java b/core/src/test/java/org/bitcoinj/store/WalletProtobufSerializerTest.java index d7f35708..88eca3c5 100644 --- a/core/src/test/java/org/bitcoinj/store/WalletProtobufSerializerTest.java +++ b/core/src/test/java/org/bitcoinj/store/WalletProtobufSerializerTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2012 Google Inc. * Copyright 2014 Andreas Schildbach * diff --git a/core/src/test/java/org/bitcoinj/testing/FakeTxBuilder.java b/core/src/test/java/org/bitcoinj/testing/FakeTxBuilder.java index 238c50a1..8bb1ff72 100644 --- a/core/src/test/java/org/bitcoinj/testing/FakeTxBuilder.java +++ b/core/src/test/java/org/bitcoinj/testing/FakeTxBuilder.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2011 Google Inc. * Copyright 2016 Andreas Schildbach * diff --git a/core/src/test/java/org/bitcoinj/testing/FooWalletExtension.java b/core/src/test/java/org/bitcoinj/testing/FooWalletExtension.java index f56e082c..70459b3b 100644 --- a/core/src/test/java/org/bitcoinj/testing/FooWalletExtension.java +++ b/core/src/test/java/org/bitcoinj/testing/FooWalletExtension.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.testing; import org.bitcoinj.core.Wallet; diff --git a/core/src/test/java/org/bitcoinj/testing/InboundMessageQueuer.java b/core/src/test/java/org/bitcoinj/testing/InboundMessageQueuer.java index 50b492cd..d286639a 100644 --- a/core/src/test/java/org/bitcoinj/testing/InboundMessageQueuer.java +++ b/core/src/test/java/org/bitcoinj/testing/InboundMessageQueuer.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.testing; import org.bitcoinj.core.*; diff --git a/core/src/test/java/org/bitcoinj/testing/KeyChainTransactionSigner.java b/core/src/test/java/org/bitcoinj/testing/KeyChainTransactionSigner.java index e789fc9b..cc0538e7 100644 --- a/core/src/test/java/org/bitcoinj/testing/KeyChainTransactionSigner.java +++ b/core/src/test/java/org/bitcoinj/testing/KeyChainTransactionSigner.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Kosta Korenkov * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.testing; import org.bitcoinj.core.Sha256Hash; diff --git a/core/src/test/java/org/bitcoinj/testing/MockTransactionBroadcaster.java b/core/src/test/java/org/bitcoinj/testing/MockTransactionBroadcaster.java index 77dd7ab7..79fec0c7 100644 --- a/core/src/test/java/org/bitcoinj/testing/MockTransactionBroadcaster.java +++ b/core/src/test/java/org/bitcoinj/testing/MockTransactionBroadcaster.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/test/java/org/bitcoinj/testing/NopTransactionSigner.java b/core/src/test/java/org/bitcoinj/testing/NopTransactionSigner.java index ae17e923..e5d016dd 100644 --- a/core/src/test/java/org/bitcoinj/testing/NopTransactionSigner.java +++ b/core/src/test/java/org/bitcoinj/testing/NopTransactionSigner.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Kosta Korenkov * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.testing; import org.bitcoinj.signers.TransactionSigner; diff --git a/core/src/test/java/org/bitcoinj/uri/BitcoinURITest.java b/core/src/test/java/org/bitcoinj/uri/BitcoinURITest.java index c0f6caf1..bd1e31d8 100644 --- a/core/src/test/java/org/bitcoinj/uri/BitcoinURITest.java +++ b/core/src/test/java/org/bitcoinj/uri/BitcoinURITest.java @@ -12,7 +12,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * */ package org.bitcoinj.uri; diff --git a/core/src/test/java/org/bitcoinj/utils/BaseTaggableObjectTest.java b/core/src/test/java/org/bitcoinj/utils/BaseTaggableObjectTest.java index 2447f038..1705ea68 100644 --- a/core/src/test/java/org/bitcoinj/utils/BaseTaggableObjectTest.java +++ b/core/src/test/java/org/bitcoinj/utils/BaseTaggableObjectTest.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.bitcoinj.utils; import com.google.protobuf.ByteString; diff --git a/core/src/test/java/org/bitcoinj/utils/ExponentialBackoffTest.java b/core/src/test/java/org/bitcoinj/utils/ExponentialBackoffTest.java index 841dd271..5add9cad 100644 --- a/core/src/test/java/org/bitcoinj/utils/ExponentialBackoffTest.java +++ b/core/src/test/java/org/bitcoinj/utils/ExponentialBackoffTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -25,8 +25,6 @@ import java.util.PriorityQueue; import static org.junit.Assert.*; -/** - */ public class ExponentialBackoffTest { private ExponentialBackoff.Params params; private ExponentialBackoff backoff; diff --git a/core/src/test/java/org/bitcoinj/utils/FiatTest.java b/core/src/test/java/org/bitcoinj/utils/FiatTest.java index fdcbf60b..8b89a9c9 100644 --- a/core/src/test/java/org/bitcoinj/utils/FiatTest.java +++ b/core/src/test/java/org/bitcoinj/utils/FiatTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Andreas Schildbach * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/test/java/org/bitcoinj/wallet/BasicKeyChainTest.java b/core/src/test/java/org/bitcoinj/wallet/BasicKeyChainTest.java index f71f3a23..c10cfd54 100644 --- a/core/src/test/java/org/bitcoinj/wallet/BasicKeyChainTest.java +++ b/core/src/test/java/org/bitcoinj/wallet/BasicKeyChainTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/test/java/org/bitcoinj/wallet/DefaultCoinSelectorTest.java b/core/src/test/java/org/bitcoinj/wallet/DefaultCoinSelectorTest.java index e5c4763f..20d65196 100644 --- a/core/src/test/java/org/bitcoinj/wallet/DefaultCoinSelectorTest.java +++ b/core/src/test/java/org/bitcoinj/wallet/DefaultCoinSelectorTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/test/java/org/bitcoinj/wallet/DeterministicKeyChainTest.java b/core/src/test/java/org/bitcoinj/wallet/DeterministicKeyChainTest.java index 5277dbc9..715f7f19 100644 --- a/core/src/test/java/org/bitcoinj/wallet/DeterministicKeyChainTest.java +++ b/core/src/test/java/org/bitcoinj/wallet/DeterministicKeyChainTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/core/src/test/java/org/bitcoinj/wallet/KeyChainGroupTest.java b/core/src/test/java/org/bitcoinj/wallet/KeyChainGroupTest.java index 3218a0ea..4fe1b318 100644 --- a/core/src/test/java/org/bitcoinj/wallet/KeyChainGroupTest.java +++ b/core/src/test/java/org/bitcoinj/wallet/KeyChainGroupTest.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2014 Mike Hearn * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/src/main/java/org/bitcoinj/examples/ExamplePaymentChannelServer.java b/examples/src/main/java/org/bitcoinj/examples/ExamplePaymentChannelServer.java index 00631574..ceb6c509 100644 --- a/examples/src/main/java/org/bitcoinj/examples/ExamplePaymentChannelServer.java +++ b/examples/src/main/java/org/bitcoinj/examples/ExamplePaymentChannelServer.java @@ -26,9 +26,7 @@ import org.bitcoinj.core.Sha256Hash; import org.bitcoinj.core.VerificationException; import org.bitcoinj.core.WalletExtension; import org.bitcoinj.kits.WalletAppKit; -import org.bitcoinj.params.MainNetParams; import org.bitcoinj.params.RegTestParams; -import org.bitcoinj.params.TestNet3Params; import org.bitcoinj.protocols.channels.*; import org.bitcoinj.utils.BriefLogFormatter; import com.google.common.collect.ImmutableList; diff --git a/examples/src/main/java/org/bitcoinj/examples/GenerateLowSTests.java b/examples/src/main/java/org/bitcoinj/examples/GenerateLowSTests.java index 3ad8c52c..fdbfb5d8 100644 --- a/examples/src/main/java/org/bitcoinj/examples/GenerateLowSTests.java +++ b/examples/src/main/java/org/bitcoinj/examples/GenerateLowSTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.examples; import java.io.IOException; diff --git a/examples/src/main/java/org/bitcoinj/examples/LevelDB.java b/examples/src/main/java/org/bitcoinj/examples/LevelDB.java index 56093aac..0242e26b 100644 --- a/examples/src/main/java/org/bitcoinj/examples/LevelDB.java +++ b/examples/src/main/java/org/bitcoinj/examples/LevelDB.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.examples; import java.net.InetAddress; diff --git a/examples/src/main/java/org/bitcoinj/examples/LevelDbSizes.java b/examples/src/main/java/org/bitcoinj/examples/LevelDbSizes.java index ce27693f..503bff5e 100644 --- a/examples/src/main/java/org/bitcoinj/examples/LevelDbSizes.java +++ b/examples/src/main/java/org/bitcoinj/examples/LevelDbSizes.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.bitcoinj.examples; import static org.fusesource.leveldbjni.JniDBFactory.*; diff --git a/tools/src/main/java/org/bitcoinj/tools/TestFeeLevel.java b/tools/src/main/java/org/bitcoinj/tools/TestFeeLevel.java index b3349064..8494e948 100644 --- a/tools/src/main/java/org/bitcoinj/tools/TestFeeLevel.java +++ b/tools/src/main/java/org/bitcoinj/tools/TestFeeLevel.java @@ -22,7 +22,6 @@ import org.bitcoinj.params.MainNetParams; import org.bitcoinj.utils.BriefLogFormatter; import java.io.File; -import java.util.Set; /** * A program that sends a transaction with the specified fee and measures how long it takes to confirm. diff --git a/wallettemplate/src/main/java/wallettemplate/Main.java b/wallettemplate/src/main/java/wallettemplate/Main.java index a760f380..6c62d3db 100644 --- a/wallettemplate/src/main/java/wallettemplate/Main.java +++ b/wallettemplate/src/main/java/wallettemplate/Main.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package wallettemplate; import com.google.common.util.concurrent.*; diff --git a/wallettemplate/src/main/java/wallettemplate/MainController.java b/wallettemplate/src/main/java/wallettemplate/MainController.java index 074944aa..325c72f0 100644 --- a/wallettemplate/src/main/java/wallettemplate/MainController.java +++ b/wallettemplate/src/main/java/wallettemplate/MainController.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package wallettemplate; import org.bitcoinj.core.listeners.DownloadProgressTracker; diff --git a/wallettemplate/src/main/java/wallettemplate/SendMoneyController.java b/wallettemplate/src/main/java/wallettemplate/SendMoneyController.java index 71f7bb76..8748a2b3 100644 --- a/wallettemplate/src/main/java/wallettemplate/SendMoneyController.java +++ b/wallettemplate/src/main/java/wallettemplate/SendMoneyController.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package wallettemplate; import javafx.scene.layout.HBox; diff --git a/wallettemplate/src/main/java/wallettemplate/WalletPasswordController.java b/wallettemplate/src/main/java/wallettemplate/WalletPasswordController.java index 39635456..745264e4 100644 --- a/wallettemplate/src/main/java/wallettemplate/WalletPasswordController.java +++ b/wallettemplate/src/main/java/wallettemplate/WalletPasswordController.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package wallettemplate; import javafx.application.Platform; diff --git a/wallettemplate/src/main/java/wallettemplate/WalletSetPasswordController.java b/wallettemplate/src/main/java/wallettemplate/WalletSetPasswordController.java index 6374c506..ec91d3df 100644 --- a/wallettemplate/src/main/java/wallettemplate/WalletSetPasswordController.java +++ b/wallettemplate/src/main/java/wallettemplate/WalletSetPasswordController.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package wallettemplate; import com.google.protobuf.*; diff --git a/wallettemplate/src/main/java/wallettemplate/WalletSettingsController.java b/wallettemplate/src/main/java/wallettemplate/WalletSettingsController.java index c0cab4bd..9389e331 100644 --- a/wallettemplate/src/main/java/wallettemplate/WalletSettingsController.java +++ b/wallettemplate/src/main/java/wallettemplate/WalletSettingsController.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package wallettemplate; import org.bitcoinj.core.Utils; diff --git a/wallettemplate/src/main/java/wallettemplate/controls/BitcoinAddressValidator.java b/wallettemplate/src/main/java/wallettemplate/controls/BitcoinAddressValidator.java index 230318ba..a48d6dba 100644 --- a/wallettemplate/src/main/java/wallettemplate/controls/BitcoinAddressValidator.java +++ b/wallettemplate/src/main/java/wallettemplate/controls/BitcoinAddressValidator.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package wallettemplate.controls; import org.bitcoinj.core.Address; diff --git a/wallettemplate/src/main/java/wallettemplate/controls/ClickableBitcoinAddress.java b/wallettemplate/src/main/java/wallettemplate/controls/ClickableBitcoinAddress.java index c0e5b702..7506efc8 100644 --- a/wallettemplate/src/main/java/wallettemplate/controls/ClickableBitcoinAddress.java +++ b/wallettemplate/src/main/java/wallettemplate/controls/ClickableBitcoinAddress.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package wallettemplate.controls; import org.bitcoinj.core.Address; diff --git a/wallettemplate/src/main/java/wallettemplate/controls/NotificationBarPane.java b/wallettemplate/src/main/java/wallettemplate/controls/NotificationBarPane.java index 73a347bf..f523eab2 100644 --- a/wallettemplate/src/main/java/wallettemplate/controls/NotificationBarPane.java +++ b/wallettemplate/src/main/java/wallettemplate/controls/NotificationBarPane.java @@ -1,5 +1,18 @@ -package wallettemplate.controls; +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package wallettemplate.controls; import javafx.animation.Interpolator; import javafx.animation.KeyFrame; diff --git a/wallettemplate/src/main/java/wallettemplate/utils/AlertWindowController.java b/wallettemplate/src/main/java/wallettemplate/utils/AlertWindowController.java index 4cdee35e..0ae1c40a 100644 --- a/wallettemplate/src/main/java/wallettemplate/utils/AlertWindowController.java +++ b/wallettemplate/src/main/java/wallettemplate/utils/AlertWindowController.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package wallettemplate.utils; import javafx.scene.control.Button; diff --git a/wallettemplate/src/main/java/wallettemplate/utils/BitcoinUIModel.java b/wallettemplate/src/main/java/wallettemplate/utils/BitcoinUIModel.java index 83d7a41b..62151594 100644 --- a/wallettemplate/src/main/java/wallettemplate/utils/BitcoinUIModel.java +++ b/wallettemplate/src/main/java/wallettemplate/utils/BitcoinUIModel.java @@ -1,6 +1,19 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package wallettemplate.utils; -import org.bitcoinj.core.listeners.AbstractWalletEventListener; import org.bitcoinj.core.listeners.DownloadProgressTracker; import org.bitcoinj.core.*; import javafx.application.Platform; diff --git a/wallettemplate/src/main/java/wallettemplate/utils/GuiUtils.java b/wallettemplate/src/main/java/wallettemplate/utils/GuiUtils.java index 0cad5b68..cd9037c6 100644 --- a/wallettemplate/src/main/java/wallettemplate/utils/GuiUtils.java +++ b/wallettemplate/src/main/java/wallettemplate/utils/GuiUtils.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package wallettemplate.utils; import com.google.common.base.Throwables; diff --git a/wallettemplate/src/main/java/wallettemplate/utils/KeyDerivationTasks.java b/wallettemplate/src/main/java/wallettemplate/utils/KeyDerivationTasks.java index c6aa3bd0..b4dd0612 100644 --- a/wallettemplate/src/main/java/wallettemplate/utils/KeyDerivationTasks.java +++ b/wallettemplate/src/main/java/wallettemplate/utils/KeyDerivationTasks.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package wallettemplate.utils; import org.bitcoinj.crypto.KeyCrypterScrypt; diff --git a/wallettemplate/src/main/java/wallettemplate/utils/TextFieldValidator.java b/wallettemplate/src/main/java/wallettemplate/utils/TextFieldValidator.java index 28798c4b..8b9385ac 100644 --- a/wallettemplate/src/main/java/wallettemplate/utils/TextFieldValidator.java +++ b/wallettemplate/src/main/java/wallettemplate/utils/TextFieldValidator.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package wallettemplate.utils; import javafx.beans.property.BooleanProperty; diff --git a/wallettemplate/src/main/java/wallettemplate/utils/ThrottledRunLater.java b/wallettemplate/src/main/java/wallettemplate/utils/ThrottledRunLater.java index cae0bcd2..6a7950c4 100644 --- a/wallettemplate/src/main/java/wallettemplate/utils/ThrottledRunLater.java +++ b/wallettemplate/src/main/java/wallettemplate/utils/ThrottledRunLater.java @@ -1,4 +1,4 @@ -/** +/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/wallettemplate/src/main/java/wallettemplate/utils/WTUtils.java b/wallettemplate/src/main/java/wallettemplate/utils/WTUtils.java index 3f747704..fe10dbb3 100644 --- a/wallettemplate/src/main/java/wallettemplate/utils/WTUtils.java +++ b/wallettemplate/src/main/java/wallettemplate/utils/WTUtils.java @@ -1,3 +1,17 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package wallettemplate.utils; import org.slf4j.Logger; diff --git a/wallettemplate/src/main/java/wallettemplate/utils/easing/EasingMode.java b/wallettemplate/src/main/java/wallettemplate/utils/easing/EasingMode.java index 46b29bbe..01486d13 100644 --- a/wallettemplate/src/main/java/wallettemplate/utils/easing/EasingMode.java +++ b/wallettemplate/src/main/java/wallettemplate/utils/easing/EasingMode.java @@ -1,3 +1,27 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2013, Christian Schudt + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + package wallettemplate.utils.easing; /**