diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..14e2f77 --- /dev/null +++ b/LICENSE @@ -0,0 +1,373 @@ +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. diff --git a/docs/relicense.mbox b/docs/relicense.mbox new file mode 100644 index 0000000..8df809c --- /dev/null +++ b/docs/relicense.mbox @@ -0,0 +1,254 @@ +From - Thu Feb 23 19:37:30 2017 +X-Account-Key: account4 +X-UIDL: 5455a76e07af8ce96ec1bbede71d2faf +X-Mozilla-Status: 0011 +X-Mozilla-Status2: 00000000 +X-Mozilla-Keys: +X-Envelope-From: +X-Envelope-To: +X-Delivery-Time: 1487874457 +X-UID: 82006 +Return-Path: +Authentication-Results: strato.com 1; + spf=pass + smtp.mailfrom="bounces+848413-70a0-github=infinite-source.de@sgmail.github.com"; + dkim=pass + header.d=github.com; + domainkeys=none; + dkim-adsp=pass + header.from="notifications@github.com" +X-Strato-MessageType: email +X-RZG-CLASS-ID: mi00 +Received-SPF: pass + (strato.com: domain sgmail.github.com designates 192.254.113.101 as permitted sender) + mechanism=ip4; + client-ip=192.254.113.101; + helo="o6.sgmail.github.com"; + envelope-from="bounces+848413-70a0-github=infinite-source.de@sgmail.github.com"; + receiver=smtp.rzone.de; + identity=mailfrom; +Received: from o6.sgmail.github.com ([192.254.113.101]) + by smtp.rzone.de (RZmta 39.13 OK) + with ESMTPS id x0567dt1NIRbWBB + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) + (Client did not present a certificate) + for ; + Thu, 23 Feb 2017 19:27:37 +0100 (CET) +DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; + h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; + s=s20150108; bh=t65lmAEICe/7eEWw8uV/OvmzFKs=; b=v30tqAjRSpjnlegw + uuLlYN8kG6poJJzTERSAOfbSobWFU+PQB0qvTopFJsWqJVJXGlh8XYVl9iBRnrc6 + rtoYC/ZAbFHSKxcodrLTsCLMgZs6SL14thoPy3mxftuu3RqyfvaLVOC+608MNKZf + X+b2jIqQH2ZCkybgw8u0h4iRqgk= +Received: by filter0571p1mdw1.sendgrid.net with SMTP id filter0571p1mdw1-15164-58AF2986-1E + 2017-02-23 18:27:18.464811458 +0000 UTC +Received: from github-smtp2b-ext-cp1-prd.iad.github.net (github-smtp2b-ext-cp1-prd.iad.github.net [192.30.253.17]) + by ismtpd0002p1iad1.sendgrid.net (SG) with ESMTP id Wn6d95HyT5G8D6O8KXP8sQ + for ; Thu, 23 Feb 2017 18:27:18.400 +0000 (UTC) +Date: Thu, 23 Feb 2017 10:27:18 -0800 +From: =?UTF-8?B?TGVvbmFyZCBCcsO8bmluZ3M=?= +Reply-To: the8472/mldht +To: the8472/mldht +Cc: the8472 , + Mention +Message-ID: +In-Reply-To: +References: +Subject: Re: [the8472/mldht] Intent to relicense under MPL 2.0 (#5) +Mime-Version: 1.0 +Content-Type: multipart/alternative; + boundary="--==_mimepart_58af29864d9fc_2e773fcb46e9fc2c4337c"; + charset=UTF-8 +Content-Transfer-Encoding: 7bit +Precedence: list +X-GitHub-Sender: leonard84 +X-GitHub-Recipient: the8472 +X-GitHub-Reason: mention +List-ID: the8472/mldht +List-Archive: https://github.com/the8472/mldht +List-Post: +List-Unsubscribe: , + +X-Auto-Response-Suppress: All +X-GitHub-Recipient-Address: github@infinite-source.de +X-SG-EID: QJyLUyYn5G8FwqICRjHI9CqBAAcAsGqMDQNkXsgdm2HGC6joHSIu/PktD/rukLBuTizWJZlGebgnBw + KN2zFwmGklxh53VgJahbajMTM+6HYUA/g8SzVe4UBbJ5fTYAbNemSFg3MBJ6rAC4P8kN3zrT6QpR6I + cCFX0NKiOOKWAUYdRUZ/aXoTJwVOQiT+RCQQKg2pgyyxTOuWmqsjcUlD7Y3G2PFx8vMUj2ZBKwEyig + sNAPcbB1anBYJ+hDmwuqUx + +----==_mimepart_58af29864d9fc_2e773fcb46e9fc2c4337c +Content-Type: text/plain; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +Hi @the8472 I don't have any objections in general, but why don't we license it under APL 2.0? May I ask what prompted this? + +However, you'd need to check if there is a problem with KTorrent DHT, since the initial DHT Code was adapted from it see https://sourceforge.net/p/azsmrc/code/1527/ + +And how does it work with Vuze/Azureus code, AFAIK that is still GPL 2.0 and mldht uses its interfaces? + +-- +You are receiving this because you were mentioned. +Reply to this email directly or view it on GitHub: +https://github.com/the8472/mldht/issues/5#issuecomment-282077682 +----==_mimepart_58af29864d9fc_2e773fcb46e9fc2c4337c +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: quoted-printable + +

Hi @the847= +2 I don't have any objections in general, but why don't we license it u= +nder APL 2.0? May I ask what prompted this?

+

However, you'd need to check if there is a problem with KTorrent DHT, si= +nce the initial DHT Code was adapted from it see https://sourceforge.net/p/azsmrc/code/1527/

+

And how does it work with Vuze/Azureus code, AFAIK that is still GPL 2.0= + and mldht uses its interfaces?

+ +

&mda= +sh;
You are receiving this because you were mentioned.
Reply to t= +his email directly,
view it on GitHub, or mute the thread.3D""

+
+
+ + +
+ +
+ += + +----==_mimepart_58af29864d9fc_2e773fcb46e9fc2c4337c-- + + +From - Tue Jul 18 10:38:20 2017 +X-Account-Key: account4 +X-UIDL: bd8284ca9c2f7b2a9fbdb8be4c6fcf3c +X-Mozilla-Status: 0011 +X-Mozilla-Status2: 00000000 +X-Mozilla-Keys: +X-Envelope-From: +X-Envelope-To: +X-Delivery-Time: 1500366808 +X-UID: 88540 +Return-Path: +Authentication-Results: strato.com 1; + spf=pass + smtp.mailfrom="joris.guisson@gmail.com"; + dkim=pass + header.d=gmail.com; + domainkeys=none; + dkim-adsp=pass + header.from="joris.guisson@gmail.com" +X-Strato-MessageType: email +X-RZG-CLASS-ID: mi00 +Received-SPF: pass + (strato.com: domain _spf.google.com designates 2607:f8b0:4003:c06::235 as permitted sender) + mechanism=ip6; + client-ip=2607:f8b0:4003:c06::235; + helo="mail-oi0-x235.google.com"; + envelope-from="joris.guisson@gmail.com"; + receiver=smtp.rzone.de; + identity=mailfrom; +Received: from mail-oi0-x235.google.com ([IPv6:2607:f8b0:4003:c06::235]) + by smtp.rzone.de (RZmta 41.1 REPLY) + with ESMTPS id 101807t6I8XSdsx + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) + (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) + (Client hostname verification FAILED) + for ; + Tue, 18 Jul 2017 10:33:28 +0200 (CEST) +Received: by mail-oi0-x235.google.com with SMTP id p188so11495355oia.0 + for ; Tue, 18 Jul 2017 01:33:28 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=gmail.com; s=20161025; + h=mime-version:in-reply-to:references:from:date:message-id:subject:to; + bh=ctypUrGyFCo2iO/kAfa+IFAtai6FKfiVJ0bezk7rTjM=; + b=RRTyzuzDg16HMlYwNxZcC1QUwGdquFzDzTGGTjZ8/BdOHDGkSwA/5zdOfKKeB1l4vf + o4HyJxAqF2pJEO4/OHsUthCidXDwxR9u7nz101YjOyWmbHxg/1XtL8J0hHHnBDWrQc3U + LZVNnzo85tLcGKfv2HYJki+lqsEn5OA0WoqFVBu/pkFA+eE/vUPg8mUsrqEZvhFeU9xM + ioz3W0BVmx7d138p2OEzuohvsJ2kTh19AeQWFcAk1c0zxBxrRnZ4AaXV0qenbKxH2CEb + Zmf5Q/XZiarmeajYpN23II+scImTrjnIaPmbPWwUbyfYnN7ctmHejz0esYb6vura6MRs + MXPA== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20161025; + h=x-gm-message-state:mime-version:in-reply-to:references:from:date + :message-id:subject:to; + bh=ctypUrGyFCo2iO/kAfa+IFAtai6FKfiVJ0bezk7rTjM=; + b=FcDSBIFVrTJTA1Hnq/ffLf41TtgR9OnCCJ3+rPExQE44AhY4nFDl/VHSgbCK5ihJB7 + rQW5xCMeiL8YEgE/XDms7wKUue12QqOuXgQb2xTnqF/SXTEXs7mVIUeS5kmDfIAdt2X8 + w/LpLzXy1XgBwaNVK/uOdcs15slC2Nf7A+6/nkDYkmyHu1mgi9cv+7if9BUDEu7vdcTv + 8imRW14iUlHc6F0w8ITj52JtPZfzSTsCBCnWwwp9Suu1pVdnreSBQsBgsfDA5We/RnVg + iBXzAino/fgBhKhXx0N4uD8E8jo6ZznWwb34nSC1KkxTh4q4H253wiHrILHJu/p/HqZz + kDcg== +X-Gm-Message-State: AIVw11077+QAVlrBH1ClWaN7xf3bexvetgWrhpJYClfK/JgTGbzVDwCq + F6eqjRg47tQdkerPYDx0g2c4RDj/Sg== +X-Received: by 10.202.236.6 with SMTP id k6mr338151oih.20.1500366806768; Tue, + 18 Jul 2017 01:33:26 -0700 (PDT) +MIME-Version: 1.0 +Received: by 10.74.112.1 with HTTP; Tue, 18 Jul 2017 01:33:26 -0700 (PDT) +In-Reply-To: +References: +From: Joris Guisson +Date: Tue, 18 Jul 2017 10:33:26 +0200 +Message-ID: +Subject: Re: Relicensing java dht implementation to MPL2.0 +To: The 8472 +Content-Type: text/plain; charset="UTF-8" + +On Sat, Jul 15, 2017 at 10:13 PM, The 8472 wrote: +> Hello Joris, +> +> Am I correct in the assumption that you are @GeorgeKT on github? +> It lists you as main contributor to KTorrent around 2007. +> +> As already mentioned on the related github issue[0] I intend to +> relicense a java bittorrent DHT library which I have been +> maintaining for several years now from GPLv2+ to MPLv2+. +> The original maintainer agreed but mentioned that it was originally +> ported from KTorrent's DHT code in C++ to Java. +> Some of the code has already been originally rewritten as part of the +> porting, additional parts changed and have been extended over time, +> but a few lines may remain. +> +> So my questions are +> a) are you the original developer of the Ktorrent DHT implementation + +Yes, I implemented it. + +> b) if yes do you agree with or object to the relicensing + +I dont really care if it is GPL or MPL, any open source license is +fine by me. So you have my permission to relicense it. + +> c) or do you require further information +> +> greetings - The 8472 +> +> +> [0] https://github.com/the8472/mldht/issues/5 + + diff --git a/src/lbms/plugins/mldht/DHTConfiguration.java b/src/lbms/plugins/mldht/DHTConfiguration.java index 182fe61..c016758 100644 --- a/src/lbms/plugins/mldht/DHTConfiguration.java +++ b/src/lbms/plugins/mldht/DHTConfiguration.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht; import java.nio.file.Path; diff --git a/src/lbms/plugins/mldht/indexer/utils/GenericBloomFilter.java b/src/lbms/plugins/mldht/indexer/utils/GenericBloomFilter.java index cbeee28..3396c77 100644 --- a/src/lbms/plugins/mldht/indexer/utils/GenericBloomFilter.java +++ b/src/lbms/plugins/mldht/indexer/utils/GenericBloomFilter.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.indexer.utils; import java.nio.ByteBuffer; diff --git a/src/lbms/plugins/mldht/indexer/utils/RotatingBloomFilter.java b/src/lbms/plugins/mldht/indexer/utils/RotatingBloomFilter.java index 21af74c..5e2e96e 100644 --- a/src/lbms/plugins/mldht/indexer/utils/RotatingBloomFilter.java +++ b/src/lbms/plugins/mldht/indexer/utils/RotatingBloomFilter.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.indexer.utils; import java.nio.ByteBuffer; diff --git a/src/lbms/plugins/mldht/kad/AnnounceNodeCache.java b/src/lbms/plugins/mldht/kad/AnnounceNodeCache.java index 4244b3e..2050f09 100644 --- a/src/lbms/plugins/mldht/kad/AnnounceNodeCache.java +++ b/src/lbms/plugins/mldht/kad/AnnounceNodeCache.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import lbms.plugins.mldht.kad.messages.MessageBase; diff --git a/src/lbms/plugins/mldht/kad/BloomFilterBEP33.java b/src/lbms/plugins/mldht/kad/BloomFilterBEP33.java index d7ffdb5..a164a2c 100644 --- a/src/lbms/plugins/mldht/kad/BloomFilterBEP33.java +++ b/src/lbms/plugins/mldht/kad/BloomFilterBEP33.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static java.lang.Math.log1p; diff --git a/src/lbms/plugins/mldht/kad/DBItem.java b/src/lbms/plugins/mldht/kad/DBItem.java index 3e9114b..901633e 100644 --- a/src/lbms/plugins/mldht/kad/DBItem.java +++ b/src/lbms/plugins/mldht/kad/DBItem.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static the8472.utils.Arrays.compareUnsigned; diff --git a/src/lbms/plugins/mldht/kad/DHT.java b/src/lbms/plugins/mldht/kad/DHT.java index 53e287b..0148713 100644 --- a/src/lbms/plugins/mldht/kad/DHT.java +++ b/src/lbms/plugins/mldht/kad/DHT.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static the8472.bencode.Utils.prettyPrint; diff --git a/src/lbms/plugins/mldht/kad/DHTBase.java b/src/lbms/plugins/mldht/kad/DHTBase.java index c2e62b7..b4945eb 100644 --- a/src/lbms/plugins/mldht/kad/DHTBase.java +++ b/src/lbms/plugins/mldht/kad/DHTBase.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import java.net.SocketException; diff --git a/src/lbms/plugins/mldht/kad/DHTConstants.java b/src/lbms/plugins/mldht/kad/DHTConstants.java index 5da91c9..5cf439f 100644 --- a/src/lbms/plugins/mldht/kad/DHTConstants.java +++ b/src/lbms/plugins/mldht/kad/DHTConstants.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import java.net.InetSocketAddress; diff --git a/src/lbms/plugins/mldht/kad/DHTException.java b/src/lbms/plugins/mldht/kad/DHTException.java index 4e0ce9a..bc42f40 100644 --- a/src/lbms/plugins/mldht/kad/DHTException.java +++ b/src/lbms/plugins/mldht/kad/DHTException.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; @SuppressWarnings("serial") @@ -5,4 +10,4 @@ public class DHTException extends Exception { public DHTException(String message) { super(message); } -} \ No newline at end of file +} diff --git a/src/lbms/plugins/mldht/kad/DHTIndexingListener.java b/src/lbms/plugins/mldht/kad/DHTIndexingListener.java index 307de7c..7aad063 100644 --- a/src/lbms/plugins/mldht/kad/DHTIndexingListener.java +++ b/src/lbms/plugins/mldht/kad/DHTIndexingListener.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import java.net.InetAddress; diff --git a/src/lbms/plugins/mldht/kad/DHTLogger.java b/src/lbms/plugins/mldht/kad/DHTLogger.java index c5958d2..92a623c 100644 --- a/src/lbms/plugins/mldht/kad/DHTLogger.java +++ b/src/lbms/plugins/mldht/kad/DHTLogger.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import lbms.plugins.mldht.kad.DHT.LogLevel; diff --git a/src/lbms/plugins/mldht/kad/DHTStats.java b/src/lbms/plugins/mldht/kad/DHTStats.java index bd256a8..e4fc171 100644 --- a/src/lbms/plugins/mldht/kad/DHTStats.java +++ b/src/lbms/plugins/mldht/kad/DHTStats.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import java.time.Duration; diff --git a/src/lbms/plugins/mldht/kad/DHTStatsListener.java b/src/lbms/plugins/mldht/kad/DHTStatsListener.java index b184ca8..7130b0b 100644 --- a/src/lbms/plugins/mldht/kad/DHTStatsListener.java +++ b/src/lbms/plugins/mldht/kad/DHTStatsListener.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; /** diff --git a/src/lbms/plugins/mldht/kad/DHTStatus.java b/src/lbms/plugins/mldht/kad/DHTStatus.java index 732ab4d..649a236 100644 --- a/src/lbms/plugins/mldht/kad/DHTStatus.java +++ b/src/lbms/plugins/mldht/kad/DHTStatus.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; /** diff --git a/src/lbms/plugins/mldht/kad/DHTStatusListener.java b/src/lbms/plugins/mldht/kad/DHTStatusListener.java index bf33a3d..4c1daed 100644 --- a/src/lbms/plugins/mldht/kad/DHTStatusListener.java +++ b/src/lbms/plugins/mldht/kad/DHTStatusListener.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; /** diff --git a/src/lbms/plugins/mldht/kad/Database.java b/src/lbms/plugins/mldht/kad/Database.java index e5a162f..8d47468 100644 --- a/src/lbms/plugins/mldht/kad/Database.java +++ b/src/lbms/plugins/mldht/kad/Database.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import java.net.InetAddress; diff --git a/src/lbms/plugins/mldht/kad/DatabaseStats.java b/src/lbms/plugins/mldht/kad/DatabaseStats.java index aa69150..0ffdd6a 100644 --- a/src/lbms/plugins/mldht/kad/DatabaseStats.java +++ b/src/lbms/plugins/mldht/kad/DatabaseStats.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; /** diff --git a/src/lbms/plugins/mldht/kad/GenericStorage.java b/src/lbms/plugins/mldht/kad/GenericStorage.java index 280e70e..7047a4e 100644 --- a/src/lbms/plugins/mldht/kad/GenericStorage.java +++ b/src/lbms/plugins/mldht/kad/GenericStorage.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static the8472.bencode.Utils.buf2ary; diff --git a/src/lbms/plugins/mldht/kad/IDMismatchDetector.java b/src/lbms/plugins/mldht/kad/IDMismatchDetector.java index cf88dcd..fb263e8 100644 --- a/src/lbms/plugins/mldht/kad/IDMismatchDetector.java +++ b/src/lbms/plugins/mldht/kad/IDMismatchDetector.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import lbms.plugins.mldht.kad.messages.FindNodeRequest; diff --git a/src/lbms/plugins/mldht/kad/KBucket.java b/src/lbms/plugins/mldht/kad/KBucket.java index 2ddeafe..9a9d6ac 100644 --- a/src/lbms/plugins/mldht/kad/KBucket.java +++ b/src/lbms/plugins/mldht/kad/KBucket.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import java.net.InetAddress; diff --git a/src/lbms/plugins/mldht/kad/KBucketEntry.java b/src/lbms/plugins/mldht/kad/KBucketEntry.java index 9b0b7a6..12db218 100644 --- a/src/lbms/plugins/mldht/kad/KBucketEntry.java +++ b/src/lbms/plugins/mldht/kad/KBucketEntry.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static the8472.bencode.Utils.prettyPrint; diff --git a/src/lbms/plugins/mldht/kad/KClosestNodesSearch.java b/src/lbms/plugins/mldht/kad/KClosestNodesSearch.java index 740057c..411de7e 100644 --- a/src/lbms/plugins/mldht/kad/KClosestNodesSearch.java +++ b/src/lbms/plugins/mldht/kad/KClosestNodesSearch.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import java.net.InetSocketAddress; @@ -51,7 +40,7 @@ public KClosestNodesSearch (Key key, int max_entries, DHT owner) { this.owner = owner; this.max_entries = max_entries; this.comp = new KBucketEntry.DistanceOrder(key); - entries = new ArrayList(max_entries + DHTConstants.MAX_ENTRIES_PER_BUCKET); + entries = new ArrayList<>(max_entries + DHTConstants.MAX_ENTRIES_PER_BUCKET); } /** diff --git a/src/lbms/plugins/mldht/kad/Key.java b/src/lbms/plugins/mldht/kad/Key.java index f793c68..a75aad1 100644 --- a/src/lbms/plugins/mldht/kad/Key.java +++ b/src/lbms/plugins/mldht/kad/Key.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static the8472.utils.Arrays.compareUnsigned; diff --git a/src/lbms/plugins/mldht/kad/Node.java b/src/lbms/plugins/mldht/kad/Node.java index ebe8a87..749dc72 100644 --- a/src/lbms/plugins/mldht/kad/Node.java +++ b/src/lbms/plugins/mldht/kad/Node.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static java.lang.Math.max; diff --git a/src/lbms/plugins/mldht/kad/NodeList.java b/src/lbms/plugins/mldht/kad/NodeList.java index 666927c..506737a 100644 --- a/src/lbms/plugins/mldht/kad/NodeList.java +++ b/src/lbms/plugins/mldht/kad/NodeList.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static the8472.utils.Functional.unchecked; diff --git a/src/lbms/plugins/mldht/kad/NonReachableCache.java b/src/lbms/plugins/mldht/kad/NonReachableCache.java index 48688a3..afe66eb 100644 --- a/src/lbms/plugins/mldht/kad/NonReachableCache.java +++ b/src/lbms/plugins/mldht/kad/NonReachableCache.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import java.net.Inet6Address; diff --git a/src/lbms/plugins/mldht/kad/PeerAddressDBItem.java b/src/lbms/plugins/mldht/kad/PeerAddressDBItem.java index a0988fc..38ab0de 100644 --- a/src/lbms/plugins/mldht/kad/PeerAddressDBItem.java +++ b/src/lbms/plugins/mldht/kad/PeerAddressDBItem.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import java.net.InetAddress; diff --git a/src/lbms/plugins/mldht/kad/Prefix.java b/src/lbms/plugins/mldht/kad/Prefix.java index 645a872..739f6a0 100644 --- a/src/lbms/plugins/mldht/kad/Prefix.java +++ b/src/lbms/plugins/mldht/kad/Prefix.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static the8472.utils.Arrays.mismatch; diff --git a/src/lbms/plugins/mldht/kad/RPCCall.java b/src/lbms/plugins/mldht/kad/RPCCall.java index e5d8fef..024b579 100644 --- a/src/lbms/plugins/mldht/kad/RPCCall.java +++ b/src/lbms/plugins/mldht/kad/RPCCall.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static the8472.bencode.Utils.prettyPrint; diff --git a/src/lbms/plugins/mldht/kad/RPCCallListener.java b/src/lbms/plugins/mldht/kad/RPCCallListener.java index 20bdd46..2c05e72 100644 --- a/src/lbms/plugins/mldht/kad/RPCCallListener.java +++ b/src/lbms/plugins/mldht/kad/RPCCallListener.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import lbms.plugins.mldht.kad.messages.MessageBase; diff --git a/src/lbms/plugins/mldht/kad/RPCServer.java b/src/lbms/plugins/mldht/kad/RPCServer.java index ec66d0e..389e626 100644 --- a/src/lbms/plugins/mldht/kad/RPCServer.java +++ b/src/lbms/plugins/mldht/kad/RPCServer.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static the8472.bencode.Utils.prettyPrint; diff --git a/src/lbms/plugins/mldht/kad/RPCServerManager.java b/src/lbms/plugins/mldht/kad/RPCServerManager.java index 71e151d..645f2ba 100644 --- a/src/lbms/plugins/mldht/kad/RPCServerManager.java +++ b/src/lbms/plugins/mldht/kad/RPCServerManager.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import java.net.Inet6Address; diff --git a/src/lbms/plugins/mldht/kad/RPCState.java b/src/lbms/plugins/mldht/kad/RPCState.java index a4e0bcb..924fc41 100644 --- a/src/lbms/plugins/mldht/kad/RPCState.java +++ b/src/lbms/plugins/mldht/kad/RPCState.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; public enum RPCState { @@ -7,4 +12,4 @@ public enum RPCState { ERROR, TIMEOUT, RESPONDED -} \ No newline at end of file +} diff --git a/src/lbms/plugins/mldht/kad/RPCStats.java b/src/lbms/plugins/mldht/kad/RPCStats.java index 9edb304..6aeae7e 100644 --- a/src/lbms/plugins/mldht/kad/RPCStats.java +++ b/src/lbms/plugins/mldht/kad/RPCStats.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import java.util.Formatter; diff --git a/src/lbms/plugins/mldht/kad/ScrapeResponseHandler.java b/src/lbms/plugins/mldht/kad/ScrapeResponseHandler.java index e5f505b..2efacdc 100644 --- a/src/lbms/plugins/mldht/kad/ScrapeResponseHandler.java +++ b/src/lbms/plugins/mldht/kad/ScrapeResponseHandler.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import java.net.InetAddress; @@ -24,7 +13,7 @@ import lbms.plugins.mldht.utils.Blackhole; public class ScrapeResponseHandler { - private List scrapeResponses = new ArrayList(20); + private List scrapeResponses = new ArrayList<>(20); private int scrapeSeeds; private int scrapePeers; private int direct; @@ -44,13 +33,13 @@ public int getScrapedSeeds() { } public int getDirectResultCount() { - return direct; + return direct; } public void process() { - List seedFilters = new ArrayList(); - List peerFilters = new ArrayList(); - Set directPeers = new HashSet(); + List seedFilters = new ArrayList<>(); + List peerFilters = new ArrayList<>(); + Set directPeers = new HashSet<>(); // process seeds first, we need them for some checks later (not yet implemented) for(int i=0;i addrs = new HashSet(); + Set addrs = new HashSet<>(); for(DBItem item : response.getPeerItems()) { diff --git a/src/lbms/plugins/mldht/kad/SpamThrottle.java b/src/lbms/plugins/mldht/kad/SpamThrottle.java index 3b730d5..afdabee 100644 --- a/src/lbms/plugins/mldht/kad/SpamThrottle.java +++ b/src/lbms/plugins/mldht/kad/SpamThrottle.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import java.net.InetAddress; diff --git a/src/lbms/plugins/mldht/kad/TaskBuilder.java b/src/lbms/plugins/mldht/kad/TaskBuilder.java index 0067f67..569f407 100644 --- a/src/lbms/plugins/mldht/kad/TaskBuilder.java +++ b/src/lbms/plugins/mldht/kad/TaskBuilder.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static java.lang.Math.min; diff --git a/src/lbms/plugins/mldht/kad/messages/AbstractLookupRequest.java b/src/lbms/plugins/mldht/kad/messages/AbstractLookupRequest.java index bb5c885..9408927 100644 --- a/src/lbms/plugins/mldht/kad/messages/AbstractLookupRequest.java +++ b/src/lbms/plugins/mldht/kad/messages/AbstractLookupRequest.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import lbms.plugins.mldht.kad.Key; diff --git a/src/lbms/plugins/mldht/kad/messages/AbstractLookupResponse.java b/src/lbms/plugins/mldht/kad/messages/AbstractLookupResponse.java index 2f2be79..e32eff4 100644 --- a/src/lbms/plugins/mldht/kad/messages/AbstractLookupResponse.java +++ b/src/lbms/plugins/mldht/kad/messages/AbstractLookupResponse.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import java.util.Map; diff --git a/src/lbms/plugins/mldht/kad/messages/AnnounceRequest.java b/src/lbms/plugins/mldht/kad/messages/AnnounceRequest.java index 686edb2..7fdf89d 100644 --- a/src/lbms/plugins/mldht/kad/messages/AnnounceRequest.java +++ b/src/lbms/plugins/mldht/kad/messages/AnnounceRequest.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import java.nio.ByteBuffer; diff --git a/src/lbms/plugins/mldht/kad/messages/AnnounceResponse.java b/src/lbms/plugins/mldht/kad/messages/AnnounceResponse.java index 2c35d58..05cf622 100644 --- a/src/lbms/plugins/mldht/kad/messages/AnnounceResponse.java +++ b/src/lbms/plugins/mldht/kad/messages/AnnounceResponse.java @@ -1,29 +1,14 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; -import java.io.IOException; -import java.util.HashMap; import java.util.Map; import java.util.TreeMap; import lbms.plugins.mldht.kad.DHT; -import lbms.plugins.mldht.kad.DHTConstants; -import lbms.plugins.mldht.kad.Key; /** * @author Damokles @@ -49,7 +34,7 @@ public void apply (DHT dh_table) { @Override public Map getInnerMap() { - Map inner = new TreeMap(); + Map inner = new TreeMap<>(); inner.put("id", id.getHash()); return inner; diff --git a/src/lbms/plugins/mldht/kad/messages/ErrorMessage.java b/src/lbms/plugins/mldht/kad/messages/ErrorMessage.java index bea3221..df0417e 100644 --- a/src/lbms/plugins/mldht/kad/messages/ErrorMessage.java +++ b/src/lbms/plugins/mldht/kad/messages/ErrorMessage.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import java.util.ArrayList; @@ -53,7 +42,7 @@ public void apply (DHT dh_table) { @Override public Map getBase() { Map base = super.getBase(); - List errorDetails = new ArrayList(2); + List errorDetails = new ArrayList<>(2); errorDetails.add(code); errorDetails.add(msg); base.put(getType().innerKey(), errorDetails); diff --git a/src/lbms/plugins/mldht/kad/messages/FindNodeRequest.java b/src/lbms/plugins/mldht/kad/messages/FindNodeRequest.java index 7cc031f..f194e5d 100644 --- a/src/lbms/plugins/mldht/kad/messages/FindNodeRequest.java +++ b/src/lbms/plugins/mldht/kad/messages/FindNodeRequest.java @@ -1,27 +1,11 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - import lbms.plugins.mldht.kad.DHT; -import lbms.plugins.mldht.kad.DHTConstants; import lbms.plugins.mldht.kad.Key; /** diff --git a/src/lbms/plugins/mldht/kad/messages/FindNodeResponse.java b/src/lbms/plugins/mldht/kad/messages/FindNodeResponse.java index 42a2bcf..690b890 100644 --- a/src/lbms/plugins/mldht/kad/messages/FindNodeResponse.java +++ b/src/lbms/plugins/mldht/kad/messages/FindNodeResponse.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import lbms.plugins.mldht.kad.DHT; diff --git a/src/lbms/plugins/mldht/kad/messages/GetPeersRequest.java b/src/lbms/plugins/mldht/kad/messages/GetPeersRequest.java index 1ea04f5..26802d9 100644 --- a/src/lbms/plugins/mldht/kad/messages/GetPeersRequest.java +++ b/src/lbms/plugins/mldht/kad/messages/GetPeersRequest.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import java.util.Map; diff --git a/src/lbms/plugins/mldht/kad/messages/GetPeersResponse.java b/src/lbms/plugins/mldht/kad/messages/GetPeersResponse.java index 3f342ef..4799680 100644 --- a/src/lbms/plugins/mldht/kad/messages/GetPeersResponse.java +++ b/src/lbms/plugins/mldht/kad/messages/GetPeersResponse.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import static the8472.bencode.Utils.buf2ary; @@ -65,7 +54,7 @@ public void apply (DHT dh_table) { public Map getInnerMap() { Map innerMap = super.getInnerMap(); if(items != null && !items.isEmpty()) { - List itemsList = new ArrayList(items.size()); + List itemsList = new ArrayList<>(items.size()); for (DBItem item : items) { itemsList.add(item.getData()); } diff --git a/src/lbms/plugins/mldht/kad/messages/GetRequest.java b/src/lbms/plugins/mldht/kad/messages/GetRequest.java index 4eff14c..ca1a97c 100644 --- a/src/lbms/plugins/mldht/kad/messages/GetRequest.java +++ b/src/lbms/plugins/mldht/kad/messages/GetRequest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import lbms.plugins.mldht.kad.DHT; diff --git a/src/lbms/plugins/mldht/kad/messages/GetResponse.java b/src/lbms/plugins/mldht/kad/messages/GetResponse.java index af77b80..6bc81b5 100644 --- a/src/lbms/plugins/mldht/kad/messages/GetResponse.java +++ b/src/lbms/plugins/mldht/kad/messages/GetResponse.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import java.nio.ByteBuffer; diff --git a/src/lbms/plugins/mldht/kad/messages/MessageBase.java b/src/lbms/plugins/mldht/kad/messages/MessageBase.java index 2a63560..c6d40a3 100644 --- a/src/lbms/plugins/mldht/kad/messages/MessageBase.java +++ b/src/lbms/plugins/mldht/kad/messages/MessageBase.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import static the8472.bencode.Utils.prettyPrint; diff --git a/src/lbms/plugins/mldht/kad/messages/MessageDecoder.java b/src/lbms/plugins/mldht/kad/messages/MessageDecoder.java index 4e70bda..1872cb8 100644 --- a/src/lbms/plugins/mldht/kad/messages/MessageDecoder.java +++ b/src/lbms/plugins/mldht/kad/messages/MessageDecoder.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import static the8472.bencode.Utils.prettyPrint; diff --git a/src/lbms/plugins/mldht/kad/messages/MessageException.java b/src/lbms/plugins/mldht/kad/messages/MessageException.java index c18f397..fffc1b4 100644 --- a/src/lbms/plugins/mldht/kad/messages/MessageException.java +++ b/src/lbms/plugins/mldht/kad/messages/MessageException.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import lbms.plugins.mldht.kad.messages.ErrorMessage.ErrorCode; diff --git a/src/lbms/plugins/mldht/kad/messages/PingRequest.java b/src/lbms/plugins/mldht/kad/messages/PingRequest.java index 8b5f491..8a2006f 100644 --- a/src/lbms/plugins/mldht/kad/messages/PingRequest.java +++ b/src/lbms/plugins/mldht/kad/messages/PingRequest.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import java.util.Map; @@ -45,7 +34,7 @@ public void apply (DHT dh_table) { @Override public Map getInnerMap() { - Map inner = new TreeMap(); + Map inner = new TreeMap<>(); inner.put("id", id.getHash()); return inner; diff --git a/src/lbms/plugins/mldht/kad/messages/PingResponse.java b/src/lbms/plugins/mldht/kad/messages/PingResponse.java index 26b8e82..ff0af50 100644 --- a/src/lbms/plugins/mldht/kad/messages/PingResponse.java +++ b/src/lbms/plugins/mldht/kad/messages/PingResponse.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import java.util.Map; @@ -46,10 +35,10 @@ public void apply (DHT dh_table) { @Override public Map getInnerMap() { - Map inner = new TreeMap(); + Map inner = new TreeMap<>(); inner.put("id", id.getHash()); return inner; } -} \ No newline at end of file +} diff --git a/src/lbms/plugins/mldht/kad/messages/PutRequest.java b/src/lbms/plugins/mldht/kad/messages/PutRequest.java index 35f280e..984cbfc 100644 --- a/src/lbms/plugins/mldht/kad/messages/PutRequest.java +++ b/src/lbms/plugins/mldht/kad/messages/PutRequest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import static the8472.bencode.Utils.buf2ary; diff --git a/src/lbms/plugins/mldht/kad/messages/PutResponse.java b/src/lbms/plugins/mldht/kad/messages/PutResponse.java index bc5d77a..2b4e54d 100644 --- a/src/lbms/plugins/mldht/kad/messages/PutResponse.java +++ b/src/lbms/plugins/mldht/kad/messages/PutResponse.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import lbms.plugins.mldht.kad.DHT; diff --git a/src/lbms/plugins/mldht/kad/messages/SampleRequest.java b/src/lbms/plugins/mldht/kad/messages/SampleRequest.java index bfd8c2d..f11dac2 100644 --- a/src/lbms/plugins/mldht/kad/messages/SampleRequest.java +++ b/src/lbms/plugins/mldht/kad/messages/SampleRequest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import lbms.plugins.mldht.kad.DHT; diff --git a/src/lbms/plugins/mldht/kad/messages/SampleResponse.java b/src/lbms/plugins/mldht/kad/messages/SampleResponse.java index 5b8df74..5a6477a 100644 --- a/src/lbms/plugins/mldht/kad/messages/SampleResponse.java +++ b/src/lbms/plugins/mldht/kad/messages/SampleResponse.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import static java.lang.Math.max; diff --git a/src/lbms/plugins/mldht/kad/messages/UnknownTypeRequest.java b/src/lbms/plugins/mldht/kad/messages/UnknownTypeRequest.java index cafa21c..fc7a19b 100644 --- a/src/lbms/plugins/mldht/kad/messages/UnknownTypeRequest.java +++ b/src/lbms/plugins/mldht/kad/messages/UnknownTypeRequest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import lbms.plugins.mldht.kad.DHT; diff --git a/src/lbms/plugins/mldht/kad/messages/UnknownTypeResponse.java b/src/lbms/plugins/mldht/kad/messages/UnknownTypeResponse.java index 1dee06c..76d0093 100644 --- a/src/lbms/plugins/mldht/kad/messages/UnknownTypeResponse.java +++ b/src/lbms/plugins/mldht/kad/messages/UnknownTypeResponse.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.messages; import lbms.plugins.mldht.kad.DHT; diff --git a/src/lbms/plugins/mldht/kad/tasks/AnnounceTask.java b/src/lbms/plugins/mldht/kad/tasks/AnnounceTask.java index 6aec637..e559292 100644 --- a/src/lbms/plugins/mldht/kad/tasks/AnnounceTask.java +++ b/src/lbms/plugins/mldht/kad/tasks/AnnounceTask.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; import lbms.plugins.mldht.kad.DHTConstants; diff --git a/src/lbms/plugins/mldht/kad/tasks/ClosestSet.java b/src/lbms/plugins/mldht/kad/tasks/ClosestSet.java index a3b1e94..cec2c64 100644 --- a/src/lbms/plugins/mldht/kad/tasks/ClosestSet.java +++ b/src/lbms/plugins/mldht/kad/tasks/ClosestSet.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; import java.util.Comparator; diff --git a/src/lbms/plugins/mldht/kad/tasks/CountedStat.java b/src/lbms/plugins/mldht/kad/tasks/CountedStat.java index aaaa3aa..a9ec4c8 100644 --- a/src/lbms/plugins/mldht/kad/tasks/CountedStat.java +++ b/src/lbms/plugins/mldht/kad/tasks/CountedStat.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; enum CountedStat { @@ -6,4 +11,4 @@ enum CountedStat { STALLED, FAILED, SENT_SINCE_RECEIVE -} \ No newline at end of file +} diff --git a/src/lbms/plugins/mldht/kad/tasks/GetLookupTask.java b/src/lbms/plugins/mldht/kad/tasks/GetLookupTask.java index 714bf7e..9cd1a3d 100644 --- a/src/lbms/plugins/mldht/kad/tasks/GetLookupTask.java +++ b/src/lbms/plugins/mldht/kad/tasks/GetLookupTask.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; import lbms.plugins.mldht.kad.DHT; diff --git a/src/lbms/plugins/mldht/kad/tasks/IteratingTask.java b/src/lbms/plugins/mldht/kad/tasks/IteratingTask.java index 9b063d0..561969a 100644 --- a/src/lbms/plugins/mldht/kad/tasks/IteratingTask.java +++ b/src/lbms/plugins/mldht/kad/tasks/IteratingTask.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; import lbms.plugins.mldht.kad.DHT; diff --git a/src/lbms/plugins/mldht/kad/tasks/IterativeLookupCandidates.java b/src/lbms/plugins/mldht/kad/tasks/IterativeLookupCandidates.java index 0c7c434..598b0d1 100644 --- a/src/lbms/plugins/mldht/kad/tasks/IterativeLookupCandidates.java +++ b/src/lbms/plugins/mldht/kad/tasks/IterativeLookupCandidates.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; import static java.lang.Math.max; diff --git a/src/lbms/plugins/mldht/kad/tasks/KeyspaceCrawler.java b/src/lbms/plugins/mldht/kad/tasks/KeyspaceCrawler.java index 814e7df..0274a37 100644 --- a/src/lbms/plugins/mldht/kad/tasks/KeyspaceCrawler.java +++ b/src/lbms/plugins/mldht/kad/tasks/KeyspaceCrawler.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; import java.net.InetSocketAddress; diff --git a/src/lbms/plugins/mldht/kad/tasks/KeyspaceSampler.java b/src/lbms/plugins/mldht/kad/tasks/KeyspaceSampler.java index 95dda3a..228fd53 100644 --- a/src/lbms/plugins/mldht/kad/tasks/KeyspaceSampler.java +++ b/src/lbms/plugins/mldht/kad/tasks/KeyspaceSampler.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; import lbms.plugins.mldht.kad.KBucketEntry; diff --git a/src/lbms/plugins/mldht/kad/tasks/NodeLookup.java b/src/lbms/plugins/mldht/kad/tasks/NodeLookup.java index abff05d..4155b4e 100644 --- a/src/lbms/plugins/mldht/kad/tasks/NodeLookup.java +++ b/src/lbms/plugins/mldht/kad/tasks/NodeLookup.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; diff --git a/src/lbms/plugins/mldht/kad/tasks/PeerLookupTask.java b/src/lbms/plugins/mldht/kad/tasks/PeerLookupTask.java index 5b37e7b..a2f6aa5 100644 --- a/src/lbms/plugins/mldht/kad/tasks/PeerLookupTask.java +++ b/src/lbms/plugins/mldht/kad/tasks/PeerLookupTask.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; import java.net.InetSocketAddress; diff --git a/src/lbms/plugins/mldht/kad/tasks/PingRefreshTask.java b/src/lbms/plugins/mldht/kad/tasks/PingRefreshTask.java index a2c9d4f..8766942 100644 --- a/src/lbms/plugins/mldht/kad/tasks/PingRefreshTask.java +++ b/src/lbms/plugins/mldht/kad/tasks/PingRefreshTask.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; import java.util.ArrayDeque; diff --git a/src/lbms/plugins/mldht/kad/tasks/PutTask.java b/src/lbms/plugins/mldht/kad/tasks/PutTask.java index 8d5b8b9..a458384 100644 --- a/src/lbms/plugins/mldht/kad/tasks/PutTask.java +++ b/src/lbms/plugins/mldht/kad/tasks/PutTask.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; import lbms.plugins.mldht.kad.DHTConstants; diff --git a/src/lbms/plugins/mldht/kad/tasks/RequestCandidateEvaluator.java b/src/lbms/plugins/mldht/kad/tasks/RequestCandidateEvaluator.java index 97fbc93..eefb7d3 100644 --- a/src/lbms/plugins/mldht/kad/tasks/RequestCandidateEvaluator.java +++ b/src/lbms/plugins/mldht/kad/tasks/RequestCandidateEvaluator.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; import java.util.Arrays; diff --git a/src/lbms/plugins/mldht/kad/tasks/TargetedTask.java b/src/lbms/plugins/mldht/kad/tasks/TargetedTask.java index ca427af..999ea96 100644 --- a/src/lbms/plugins/mldht/kad/tasks/TargetedTask.java +++ b/src/lbms/plugins/mldht/kad/tasks/TargetedTask.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; import java.util.Objects; diff --git a/src/lbms/plugins/mldht/kad/tasks/Task.java b/src/lbms/plugins/mldht/kad/tasks/Task.java index 1618b97..501e074 100644 --- a/src/lbms/plugins/mldht/kad/tasks/Task.java +++ b/src/lbms/plugins/mldht/kad/tasks/Task.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; import static lbms.plugins.mldht.kad.tasks.CountedStat.FAILED; diff --git a/src/lbms/plugins/mldht/kad/tasks/TaskListener.java b/src/lbms/plugins/mldht/kad/tasks/TaskListener.java index 807eac1..947f4bf 100644 --- a/src/lbms/plugins/mldht/kad/tasks/TaskListener.java +++ b/src/lbms/plugins/mldht/kad/tasks/TaskListener.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; /** diff --git a/src/lbms/plugins/mldht/kad/tasks/TaskManager.java b/src/lbms/plugins/mldht/kad/tasks/TaskManager.java index 5c4f2be..917362b 100644 --- a/src/lbms/plugins/mldht/kad/tasks/TaskManager.java +++ b/src/lbms/plugins/mldht/kad/tasks/TaskManager.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; import java.util.ArrayDeque; diff --git a/src/lbms/plugins/mldht/kad/tasks/TaskStats.java b/src/lbms/plugins/mldht/kad/tasks/TaskStats.java index 12fdb05..1a656a2 100644 --- a/src/lbms/plugins/mldht/kad/tasks/TaskStats.java +++ b/src/lbms/plugins/mldht/kad/tasks/TaskStats.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.tasks; import java.util.Arrays; @@ -71,4 +76,4 @@ public String toString() { -} \ No newline at end of file +} diff --git a/src/lbms/plugins/mldht/kad/utils/AddressUtils.java b/src/lbms/plugins/mldht/kad/utils/AddressUtils.java index 134261b..3118687 100644 --- a/src/lbms/plugins/mldht/kad/utils/AddressUtils.java +++ b/src/lbms/plugins/mldht/kad/utils/AddressUtils.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.utils; import static the8472.utils.Functional.unchecked; diff --git a/src/lbms/plugins/mldht/kad/utils/BitVector.java b/src/lbms/plugins/mldht/kad/utils/BitVector.java index cb0174f..efa8b61 100644 --- a/src/lbms/plugins/mldht/kad/utils/BitVector.java +++ b/src/lbms/plugins/mldht/kad/utils/BitVector.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.utils; import java.nio.ByteBuffer; @@ -168,4 +157,4 @@ public static void main(String[] args) { System.out.println(bv.rangeToInt(7, 2)); } -} \ No newline at end of file +} diff --git a/src/lbms/plugins/mldht/kad/utils/ByteWrapper.java b/src/lbms/plugins/mldht/kad/utils/ByteWrapper.java index ecbafdc..b90d317 100644 --- a/src/lbms/plugins/mldht/kad/utils/ByteWrapper.java +++ b/src/lbms/plugins/mldht/kad/utils/ByteWrapper.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.utils; import java.util.Arrays; @@ -37,4 +26,4 @@ public int hashCode() { public boolean equals(Object obj) { return obj instanceof ByteWrapper && Arrays.equals(arr,((ByteWrapper)obj).arr); } -} \ No newline at end of file +} diff --git a/src/lbms/plugins/mldht/kad/utils/PackUtil.java b/src/lbms/plugins/mldht/kad/utils/PackUtil.java index 0068ddc..ee25498 100644 --- a/src/lbms/plugins/mldht/kad/utils/PackUtil.java +++ b/src/lbms/plugins/mldht/kad/utils/PackUtil.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.utils; import java.net.Inet4Address; diff --git a/src/lbms/plugins/mldht/kad/utils/PopulationEstimator.java b/src/lbms/plugins/mldht/kad/utils/PopulationEstimator.java index bfc8410..5ef227f 100644 --- a/src/lbms/plugins/mldht/kad/utils/PopulationEstimator.java +++ b/src/lbms/plugins/mldht/kad/utils/PopulationEstimator.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.utils; import java.text.NumberFormat; diff --git a/src/lbms/plugins/mldht/kad/utils/PopulationListener.java b/src/lbms/plugins/mldht/kad/utils/PopulationListener.java index 1fdfcb0..b994d05 100644 --- a/src/lbms/plugins/mldht/kad/utils/PopulationListener.java +++ b/src/lbms/plugins/mldht/kad/utils/PopulationListener.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.utils; /** diff --git a/src/lbms/plugins/mldht/kad/utils/ResponseTimeoutFilter.java b/src/lbms/plugins/mldht/kad/utils/ResponseTimeoutFilter.java index 730cf52..908d40d 100644 --- a/src/lbms/plugins/mldht/kad/utils/ResponseTimeoutFilter.java +++ b/src/lbms/plugins/mldht/kad/utils/ResponseTimeoutFilter.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.utils; import static the8472.utils.Functional.tap; diff --git a/src/lbms/plugins/mldht/kad/utils/ThreadLocalUtils.java b/src/lbms/plugins/mldht/kad/utils/ThreadLocalUtils.java index 49852ad..9a198e8 100644 --- a/src/lbms/plugins/mldht/kad/utils/ThreadLocalUtils.java +++ b/src/lbms/plugins/mldht/kad/utils/ThreadLocalUtils.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.utils; import java.security.MessageDigest; diff --git a/src/lbms/plugins/mldht/utils/Blackhole.java b/src/lbms/plugins/mldht/utils/Blackhole.java index 8b68a2f..b64173e 100644 --- a/src/lbms/plugins/mldht/utils/Blackhole.java +++ b/src/lbms/plugins/mldht/utils/Blackhole.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.utils; import java.util.*; diff --git a/src/lbms/plugins/mldht/utils/ExponentialWeightendMovingAverage.java b/src/lbms/plugins/mldht/utils/ExponentialWeightendMovingAverage.java index f0b156e..8e8b512 100644 --- a/src/lbms/plugins/mldht/utils/ExponentialWeightendMovingAverage.java +++ b/src/lbms/plugins/mldht/utils/ExponentialWeightendMovingAverage.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.utils; public class ExponentialWeightendMovingAverage { diff --git a/src/lbms/plugins/mldht/utils/NIOConnectionManager.java b/src/lbms/plugins/mldht/utils/NIOConnectionManager.java index f6890c4..d279f31 100644 --- a/src/lbms/plugins/mldht/utils/NIOConnectionManager.java +++ b/src/lbms/plugins/mldht/utils/NIOConnectionManager.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.utils; import java.io.IOException; diff --git a/src/lbms/plugins/mldht/utils/RadixSort.java b/src/lbms/plugins/mldht/utils/RadixSort.java index 3c4779d..49cdeb9 100644 --- a/src/lbms/plugins/mldht/utils/RadixSort.java +++ b/src/lbms/plugins/mldht/utils/RadixSort.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.utils; import java.util.Arrays; diff --git a/src/lbms/plugins/mldht/utils/Radixable.java b/src/lbms/plugins/mldht/utils/Radixable.java index 76bd965..8275c87 100644 --- a/src/lbms/plugins/mldht/utils/Radixable.java +++ b/src/lbms/plugins/mldht/utils/Radixable.java @@ -1,5 +1,10 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.utils; public interface Radixable extends Comparable { public int getRadix(int byteIndex); -} \ No newline at end of file +} diff --git a/src/lbms/plugins/mldht/utils/Selectable.java b/src/lbms/plugins/mldht/utils/Selectable.java index bfaccbb..aa7cdd7 100644 --- a/src/lbms/plugins/mldht/utils/Selectable.java +++ b/src/lbms/plugins/mldht/utils/Selectable.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.utils; import java.io.IOException; @@ -31,4 +20,4 @@ public interface Selectable { public void doStateChecks(long now) throws IOException; public int calcInterestOps(); -} \ No newline at end of file +} diff --git a/src/the8472/bencode/BDecoder.java b/src/the8472/bencode/BDecoder.java index 0834f92..10708cd 100644 --- a/src/the8472/bencode/BDecoder.java +++ b/src/the8472/bencode/BDecoder.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.bencode; import static the8472.bencode.Utils.buf2ary; diff --git a/src/the8472/bencode/BEncoder.java b/src/the8472/bencode/BEncoder.java index 1b0025c..ef5bc0e 100644 --- a/src/the8472/bencode/BEncoder.java +++ b/src/the8472/bencode/BEncoder.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.bencode; import static the8472.bencode.Utils.str2buf; diff --git a/src/the8472/bencode/PathMatcher.java b/src/the8472/bencode/PathMatcher.java index d9d7400..9cd46fe 100644 --- a/src/the8472/bencode/PathMatcher.java +++ b/src/the8472/bencode/PathMatcher.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.bencode; import java.nio.ByteBuffer; diff --git a/src/the8472/bencode/PrettyPrinter.java b/src/the8472/bencode/PrettyPrinter.java index 71c7a55..23fa241 100644 --- a/src/the8472/bencode/PrettyPrinter.java +++ b/src/the8472/bencode/PrettyPrinter.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.bencode; import java.nio.ByteBuffer; diff --git a/src/the8472/bencode/Tokenizer.java b/src/the8472/bencode/Tokenizer.java index 94ee75e..ba99b8a 100644 --- a/src/the8472/bencode/Tokenizer.java +++ b/src/the8472/bencode/Tokenizer.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.bencode; import java.nio.ByteBuffer; diff --git a/src/the8472/bencode/Utils.java b/src/the8472/bencode/Utils.java index 1f0dd30..2d86d22 100644 --- a/src/the8472/bencode/Utils.java +++ b/src/the8472/bencode/Utils.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.bencode; import java.nio.BufferOverflowException; @@ -105,4 +110,4 @@ public static byte[] hex2ary(CharSequence hex) { -} \ No newline at end of file +} diff --git a/src/the8472/bt/MetadataPool.java b/src/the8472/bt/MetadataPool.java index 6f53b96..9752f27 100644 --- a/src/the8472/bt/MetadataPool.java +++ b/src/the8472/bt/MetadataPool.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.bt; import java.nio.ByteBuffer; diff --git a/src/the8472/bt/PullMetaDataConnection.java b/src/the8472/bt/PullMetaDataConnection.java index 39c039f..54c4a31 100644 --- a/src/the8472/bt/PullMetaDataConnection.java +++ b/src/the8472/bt/PullMetaDataConnection.java @@ -1,19 +1,8 @@ -/* - * This file is part of mlDHT. - * - * mlDHT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * mlDHT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with mlDHT. If not, see . - */ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.bt; import the8472.bencode.BDecoder; diff --git a/src/the8472/bt/TorrentUtils.java b/src/the8472/bt/TorrentUtils.java index e369569..987500e 100644 --- a/src/the8472/bt/TorrentUtils.java +++ b/src/the8472/bt/TorrentUtils.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.bt; import java.nio.ByteBuffer; diff --git a/src/the8472/bt/UselessPeerFilter.java b/src/the8472/bt/UselessPeerFilter.java index cef02ea..6d1eeef 100644 --- a/src/the8472/bt/UselessPeerFilter.java +++ b/src/the8472/bt/UselessPeerFilter.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.bt; import lbms.plugins.mldht.indexer.utils.RotatingBloomFilter; diff --git a/src/the8472/mldht/Component.java b/src/the8472/mldht/Component.java index a8ded15..d9ac4a1 100644 --- a/src/the8472/mldht/Component.java +++ b/src/the8472/mldht/Component.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht; import java.util.Collection; diff --git a/src/the8472/mldht/Diagnostics.java b/src/the8472/mldht/Diagnostics.java index fa0b8ba..6b0e914 100644 --- a/src/the8472/mldht/Diagnostics.java +++ b/src/the8472/mldht/Diagnostics.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht; import static the8472.utils.Functional.unchecked; diff --git a/src/the8472/mldht/Firehose.java b/src/the8472/mldht/Firehose.java index 8d09018..f750f47 100644 --- a/src/the8472/mldht/Firehose.java +++ b/src/the8472/mldht/Firehose.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht; import static the8472.bencode.Utils.str2buf; diff --git a/src/the8472/mldht/Launcher.java b/src/the8472/mldht/Launcher.java index f4b41f0..425eaee 100644 --- a/src/the8472/mldht/Launcher.java +++ b/src/the8472/mldht/Launcher.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht; import java.io.IOException; diff --git a/src/the8472/mldht/PassiveRedisIndexer.java b/src/the8472/mldht/PassiveRedisIndexer.java index 6892524..9724152 100644 --- a/src/the8472/mldht/PassiveRedisIndexer.java +++ b/src/the8472/mldht/PassiveRedisIndexer.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht; import static the8472.bencode.Utils.str2buf; diff --git a/src/the8472/mldht/TorrentFetcher.java b/src/the8472/mldht/TorrentFetcher.java index 1290732..bb7ed8d 100644 --- a/src/the8472/mldht/TorrentFetcher.java +++ b/src/the8472/mldht/TorrentFetcher.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht; import java.io.IOException; diff --git a/src/the8472/mldht/cli/Client.java b/src/the8472/mldht/cli/Client.java index 5aec9b5..35d5c89 100644 --- a/src/the8472/mldht/cli/Client.java +++ b/src/the8472/mldht/cli/Client.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.cli; import static the8472.utils.Functional.tap; diff --git a/src/the8472/mldht/cli/CommandProcessor.java b/src/the8472/mldht/cli/CommandProcessor.java index 13732f0..63843df 100644 --- a/src/the8472/mldht/cli/CommandProcessor.java +++ b/src/the8472/mldht/cli/CommandProcessor.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.cli; import static the8472.utils.Functional.tap; diff --git a/src/the8472/mldht/cli/ParseArgs.java b/src/the8472/mldht/cli/ParseArgs.java index 74267f4..838bfbb 100644 --- a/src/the8472/mldht/cli/ParseArgs.java +++ b/src/the8472/mldht/cli/ParseArgs.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.cli; import java.util.List; diff --git a/src/the8472/mldht/cli/Server.java b/src/the8472/mldht/cli/Server.java index d6b6cd9..a73732f 100644 --- a/src/the8472/mldht/cli/Server.java +++ b/src/the8472/mldht/cli/Server.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.cli; import java.io.IOException; diff --git a/src/the8472/mldht/cli/TorrentInfo.java b/src/the8472/mldht/cli/TorrentInfo.java index ca445c4..63fd781 100644 --- a/src/the8472/mldht/cli/TorrentInfo.java +++ b/src/the8472/mldht/cli/TorrentInfo.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.cli; import static the8472.utils.Functional.typedGet; diff --git a/src/the8472/mldht/cli/commands/Burst.java b/src/the8472/mldht/cli/commands/Burst.java index 2612b9b..bc5b0a6 100644 --- a/src/the8472/mldht/cli/commands/Burst.java +++ b/src/the8472/mldht/cli/commands/Burst.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.cli.commands; import the8472.mldht.cli.CommandProcessor; diff --git a/src/the8472/mldht/cli/commands/Get.java b/src/the8472/mldht/cli/commands/Get.java index 23830ab..b055fb9 100644 --- a/src/the8472/mldht/cli/commands/Get.java +++ b/src/the8472/mldht/cli/commands/Get.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.cli.commands; import static the8472.bencode.Utils.hex2ary; diff --git a/src/the8472/mldht/cli/commands/GetPeers.java b/src/the8472/mldht/cli/commands/GetPeers.java index a974061..4fc11a4 100644 --- a/src/the8472/mldht/cli/commands/GetPeers.java +++ b/src/the8472/mldht/cli/commands/GetPeers.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.cli.commands; import the8472.mldht.cli.CommandProcessor; diff --git a/src/the8472/mldht/cli/commands/GetTorrent.java b/src/the8472/mldht/cli/commands/GetTorrent.java index 44eb2af..33f8ec1 100644 --- a/src/the8472/mldht/cli/commands/GetTorrent.java +++ b/src/the8472/mldht/cli/commands/GetTorrent.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.cli.commands; import static the8472.utils.Functional.awaitAll; diff --git a/src/the8472/mldht/cli/commands/Help.java b/src/the8472/mldht/cli/commands/Help.java index 4218226..6837f62 100644 --- a/src/the8472/mldht/cli/commands/Help.java +++ b/src/the8472/mldht/cli/commands/Help.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.cli.commands; import the8472.mldht.cli.CommandProcessor; diff --git a/src/the8472/mldht/cli/commands/Ping.java b/src/the8472/mldht/cli/commands/Ping.java index e60c1fb..2aa3247 100644 --- a/src/the8472/mldht/cli/commands/Ping.java +++ b/src/the8472/mldht/cli/commands/Ping.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.cli.commands; import static the8472.bencode.Utils.hex2ary; diff --git a/src/the8472/mldht/cli/commands/Put.java b/src/the8472/mldht/cli/commands/Put.java index 2be23e4..d7928f1 100644 --- a/src/the8472/mldht/cli/commands/Put.java +++ b/src/the8472/mldht/cli/commands/Put.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.cli.commands; import the8472.mldht.cli.CommandProcessor; diff --git a/src/the8472/mldht/cli/commands/Sampling.java b/src/the8472/mldht/cli/commands/Sampling.java index 837d97d..b10706f 100644 --- a/src/the8472/mldht/cli/commands/Sampling.java +++ b/src/the8472/mldht/cli/commands/Sampling.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.cli.commands; import the8472.mldht.cli.CommandProcessor; diff --git a/src/the8472/mldht/indexing/ActiveLookupProvider.java b/src/the8472/mldht/indexing/ActiveLookupProvider.java index 7ba850c..56ae3e2 100644 --- a/src/the8472/mldht/indexing/ActiveLookupProvider.java +++ b/src/the8472/mldht/indexing/ActiveLookupProvider.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.indexing; import static the8472.bencode.Utils.buf2str; diff --git a/src/the8472/mldht/indexing/OpentrackerLiveSync.java b/src/the8472/mldht/indexing/OpentrackerLiveSync.java index cb0f4fb..82d9706 100644 --- a/src/the8472/mldht/indexing/OpentrackerLiveSync.java +++ b/src/the8472/mldht/indexing/OpentrackerLiveSync.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.indexing; import java.io.IOException; @@ -154,4 +159,4 @@ public void stop() { 0x0024 0x02 peer flags v1 ( SEEDING = 0x80, COMPLETE = 0x40, STOPPED = 0x20 ) ]* -*/ \ No newline at end of file +*/ diff --git a/src/the8472/mldht/indexing/TorrentDumper.java b/src/the8472/mldht/indexing/TorrentDumper.java index ff9e068..2f65557 100644 --- a/src/the8472/mldht/indexing/TorrentDumper.java +++ b/src/the8472/mldht/indexing/TorrentDumper.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.mldht.indexing; import static java.lang.Math.max; diff --git a/src/the8472/utils/AnonAllocator.java b/src/the8472/utils/AnonAllocator.java index 567fb16..4feb79d 100644 --- a/src/the8472/utils/AnonAllocator.java +++ b/src/the8472/utils/AnonAllocator.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils; import java.io.IOException; diff --git a/src/the8472/utils/Arrays.java b/src/the8472/utils/Arrays.java index 5987714..2773915 100644 --- a/src/the8472/utils/Arrays.java +++ b/src/the8472/utils/Arrays.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils; import java.lang.invoke.MethodHandle; diff --git a/src/the8472/utils/ConfigReader.java b/src/the8472/utils/ConfigReader.java index 88f0e28..96d0dc6 100644 --- a/src/the8472/utils/ConfigReader.java +++ b/src/the8472/utils/ConfigReader.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils; import java.io.IOException; diff --git a/src/the8472/utils/CowSet.java b/src/the8472/utils/CowSet.java index 7523ecc..c78997a 100644 --- a/src/the8472/utils/CowSet.java +++ b/src/the8472/utils/CowSet.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils; import java.util.Collection; diff --git a/src/the8472/utils/FilesystemNotifications.java b/src/the8472/utils/FilesystemNotifications.java index 23700d9..fa33fc0 100644 --- a/src/the8472/utils/FilesystemNotifications.java +++ b/src/the8472/utils/FilesystemNotifications.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils; import java.io.IOException; diff --git a/src/the8472/utils/Functional.java b/src/the8472/utils/Functional.java index 0b592a4..d053c9a 100644 --- a/src/the8472/utils/Functional.java +++ b/src/the8472/utils/Functional.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils; import static java.util.Collections.emptyList; diff --git a/src/the8472/utils/Pair.java b/src/the8472/utils/Pair.java index 3812932..47c639b 100644 --- a/src/the8472/utils/Pair.java +++ b/src/the8472/utils/Pair.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils; import java.util.function.BiConsumer; diff --git a/src/the8472/utils/ShufflingBag.java b/src/the8472/utils/ShufflingBag.java index 527773f..4aecd30 100644 --- a/src/the8472/utils/ShufflingBag.java +++ b/src/the8472/utils/ShufflingBag.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils; import java.util.ArrayList; diff --git a/src/the8472/utils/SortedCoWSet.java b/src/the8472/utils/SortedCoWSet.java index 33be595..55113f8 100644 --- a/src/the8472/utils/SortedCoWSet.java +++ b/src/the8472/utils/SortedCoWSet.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils; import java.lang.reflect.Array; diff --git a/src/the8472/utils/XMLUtils.java b/src/the8472/utils/XMLUtils.java index b3c7e08..54d4b17 100644 --- a/src/the8472/utils/XMLUtils.java +++ b/src/the8472/utils/XMLUtils.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils; import java.util.Iterator; @@ -45,4 +50,4 @@ public String getNamespaceURI(String prefix) { throw new RuntimeException(e); } } -} \ No newline at end of file +} diff --git a/src/the8472/utils/concurrent/LoggingScheduledThreadPoolExecutor.java b/src/the8472/utils/concurrent/LoggingScheduledThreadPoolExecutor.java index 2da3822..515e7fb 100644 --- a/src/the8472/utils/concurrent/LoggingScheduledThreadPoolExecutor.java +++ b/src/the8472/utils/concurrent/LoggingScheduledThreadPoolExecutor.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils.concurrent; import java.util.Objects; diff --git a/src/the8472/utils/concurrent/NonblockingScheduledExecutor.java b/src/the8472/utils/concurrent/NonblockingScheduledExecutor.java index 76db2bd..7287865 100644 --- a/src/the8472/utils/concurrent/NonblockingScheduledExecutor.java +++ b/src/the8472/utils/concurrent/NonblockingScheduledExecutor.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils.concurrent; import java.lang.Thread.UncaughtExceptionHandler; diff --git a/src/the8472/utils/concurrent/SerializedTaskExecutor.java b/src/the8472/utils/concurrent/SerializedTaskExecutor.java index f302e0e..e8c1fef 100644 --- a/src/the8472/utils/concurrent/SerializedTaskExecutor.java +++ b/src/the8472/utils/concurrent/SerializedTaskExecutor.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils.concurrent; import java.util.Queue; diff --git a/src/the8472/utils/io/ConnectionAcceptor.java b/src/the8472/utils/io/ConnectionAcceptor.java index a0ca6ab..ec78ce2 100644 --- a/src/the8472/utils/io/ConnectionAcceptor.java +++ b/src/the8472/utils/io/ConnectionAcceptor.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils.io; import java.io.IOException; diff --git a/src/the8472/utils/io/FileIO.java b/src/the8472/utils/io/FileIO.java index 23606ae..fe65fe3 100644 --- a/src/the8472/utils/io/FileIO.java +++ b/src/the8472/utils/io/FileIO.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils.io; import java.io.IOException; diff --git a/src/the8472/utils/io/NetMask.java b/src/the8472/utils/io/NetMask.java index 0e437e1..06c1ba4 100644 --- a/src/the8472/utils/io/NetMask.java +++ b/src/the8472/utils/io/NetMask.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils.io; import static the8472.utils.Functional.unchecked; diff --git a/test/lbms/plugins/mldht/kad/DHTLifeCycleTest.java b/test/lbms/plugins/mldht/kad/DHTLifeCycleTest.java index e8f3442..3cab2e9 100644 --- a/test/lbms/plugins/mldht/kad/DHTLifeCycleTest.java +++ b/test/lbms/plugins/mldht/kad/DHTLifeCycleTest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static org.junit.Assert.assertEquals; diff --git a/test/lbms/plugins/mldht/kad/KClosestNodeSearchTest.java b/test/lbms/plugins/mldht/kad/KClosestNodeSearchTest.java index 2f1d594..5443139 100644 --- a/test/lbms/plugins/mldht/kad/KClosestNodeSearchTest.java +++ b/test/lbms/plugins/mldht/kad/KClosestNodeSearchTest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static lbms.plugins.mldht.kad.NodeFactory.fillTable; diff --git a/test/lbms/plugins/mldht/kad/NodeFactory.java b/test/lbms/plugins/mldht/kad/NodeFactory.java index 09eee61..bd5dee3 100644 --- a/test/lbms/plugins/mldht/kad/NodeFactory.java +++ b/test/lbms/plugins/mldht/kad/NodeFactory.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static the8472.utils.Functional.unchecked; diff --git a/test/lbms/plugins/mldht/kad/NodeTest.java b/test/lbms/plugins/mldht/kad/NodeTest.java index c6ccb23..ab755b8 100644 --- a/test/lbms/plugins/mldht/kad/NodeTest.java +++ b/test/lbms/plugins/mldht/kad/NodeTest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static org.junit.Assert.assertFalse; diff --git a/test/lbms/plugins/mldht/kad/OnInsertValidations.java b/test/lbms/plugins/mldht/kad/OnInsertValidations.java index d22d52d..8797a9a 100644 --- a/test/lbms/plugins/mldht/kad/OnInsertValidations.java +++ b/test/lbms/plugins/mldht/kad/OnInsertValidations.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static org.junit.Assert.assertFalse; diff --git a/test/lbms/plugins/mldht/kad/RoutingTableTest.java b/test/lbms/plugins/mldht/kad/RoutingTableTest.java index aead481..e515af3 100644 --- a/test/lbms/plugins/mldht/kad/RoutingTableTest.java +++ b/test/lbms/plugins/mldht/kad/RoutingTableTest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad; import static org.junit.Assert.assertEquals; diff --git a/test/lbms/plugins/mldht/kad/utils/TimeoutFilterStatsTest.java b/test/lbms/plugins/mldht/kad/utils/TimeoutFilterStatsTest.java index 73a176f..0dfdea5 100644 --- a/test/lbms/plugins/mldht/kad/utils/TimeoutFilterStatsTest.java +++ b/test/lbms/plugins/mldht/kad/utils/TimeoutFilterStatsTest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package lbms.plugins.mldht.kad.utils; import static org.junit.Assert.assertEquals; diff --git a/test/the8472/test/Bep33.java b/test/the8472/test/Bep33.java index 2350dcb..6f31e74 100644 --- a/test/the8472/test/Bep33.java +++ b/test/the8472/test/Bep33.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.test; import static org.junit.Assert.assertEquals; diff --git a/test/the8472/test/Bep42.java b/test/the8472/test/Bep42.java index 971b497..96c82e2 100644 --- a/test/the8472/test/Bep42.java +++ b/test/the8472/test/Bep42.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.test; import static org.junit.Assert.assertFalse; diff --git a/test/the8472/test/Bep44.java b/test/the8472/test/Bep44.java index 9f2bf24..de342f5 100644 --- a/test/the8472/test/Bep44.java +++ b/test/the8472/test/Bep44.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.test; import static org.junit.Assert.assertEquals; diff --git a/test/the8472/test/bencode/DecoderTest.java b/test/the8472/test/bencode/DecoderTest.java index 09bcf24..935a90d 100644 --- a/test/the8472/test/bencode/DecoderTest.java +++ b/test/the8472/test/bencode/DecoderTest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.test.bencode; import static org.junit.Assert.assertArrayEquals; diff --git a/test/the8472/test/bencode/EncoderTest.java b/test/the8472/test/bencode/EncoderTest.java index d857cc7..98a130a 100644 --- a/test/the8472/test/bencode/EncoderTest.java +++ b/test/the8472/test/bencode/EncoderTest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.test.bencode; import static org.junit.Assert.assertEquals; diff --git a/test/the8472/test/bencode/KeyTest.java b/test/the8472/test/bencode/KeyTest.java index bc2b233..fbc6c3f 100644 --- a/test/the8472/test/bencode/KeyTest.java +++ b/test/the8472/test/bencode/KeyTest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.test.bencode; import static org.junit.Assert.assertEquals; diff --git a/test/the8472/test/bencode/PathMatcherTest.java b/test/the8472/test/bencode/PathMatcherTest.java index 27547b4..cc91d9e 100644 --- a/test/the8472/test/bencode/PathMatcherTest.java +++ b/test/the8472/test/bencode/PathMatcherTest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.test.bencode; import static org.junit.Assert.assertEquals; diff --git a/test/the8472/test/bencode/PrefixTest.java b/test/the8472/test/bencode/PrefixTest.java index 22f817f..2f0f13e 100644 --- a/test/the8472/test/bencode/PrefixTest.java +++ b/test/the8472/test/bencode/PrefixTest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.test.bencode; import static org.junit.Assert.assertFalse; diff --git a/test/the8472/test/bencode/TokenizerTest.java b/test/the8472/test/bencode/TokenizerTest.java index 93fbe1f..1825f2a 100644 --- a/test/the8472/test/bencode/TokenizerTest.java +++ b/test/the8472/test/bencode/TokenizerTest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.test.bencode; import static org.junit.Assert.assertEquals; diff --git a/test/the8472/utils/ArraysTest.java b/test/the8472/utils/ArraysTest.java index b0b2fb3..c520313 100644 --- a/test/the8472/utils/ArraysTest.java +++ b/test/the8472/utils/ArraysTest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils; import static org.junit.Assert.assertTrue; diff --git a/test/the8472/utils/io/NetMaskTest.java b/test/the8472/utils/io/NetMaskTest.java index c0d9755..7cf4710 100644 --- a/test/the8472/utils/io/NetMaskTest.java +++ b/test/the8472/utils/io/NetMaskTest.java @@ -1,3 +1,8 @@ +/******************************************************************************* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + ******************************************************************************/ package the8472.utils.io; import static org.junit.Assert.assertTrue;