| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 Eyeo GmbH |
| 4 * | 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
| 8 * | 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 public DefaultSubscriptionInfo getForUrl(final String url) | 86 public DefaultSubscriptionInfo getForUrl(final String url) |
| 87 { | 87 { |
| 88 return this.urlMap.get(url); | 88 return this.urlMap.get(url); |
| 89 } | 89 } |
| 90 | 90 |
| 91 public DefaultSubscriptionInfo getForUrl(final URL url) | 91 public DefaultSubscriptionInfo getForUrl(final URL url) |
| 92 { | 92 { |
| 93 return url != null ? this.getForUrl(url.toString()) : null; | 93 return url != null ? this.getForUrl(url.toString()) : null; |
| 94 } | 94 } |
| 95 | 95 |
| 96 List<DefaultSubscriptionInfo> getAdsSubscriptions() | |
|
anton
2017/08/08 05:43:41
why not public (package now)?
jens
2017/08/08 13:53:05
I thought it was to keep this method package-priva
anton
2017/08/11 11:25:07
That looks strange. Please consider making it 'pri
jens
2017/08/11 13:27:23
Acknowledged.
| |
| 97 { | |
| 98 return adsSubscriptions; | |
| 99 } | |
| 100 | |
| 96 private void listSubscriptions(final List<DefaultSubscriptionInfo> output) | 101 private void listSubscriptions(final List<DefaultSubscriptionInfo> output) |
| 97 { | 102 { |
| 98 for (final DefaultSubscriptionInfo s : this.subscriptions) | 103 for (final DefaultSubscriptionInfo s : this.subscriptions) |
| 99 { | 104 { |
| 100 this.listSubscriptions(s, output); | 105 this.listSubscriptions(s, output); |
| 101 } | 106 } |
| 102 } | 107 } |
| 103 | 108 |
| 104 private void listSubscriptions(final DefaultSubscriptionInfo parent, | 109 private void listSubscriptions(final DefaultSubscriptionInfo parent, |
| 105 final List<DefaultSubscriptionInfo> output) | 110 final List<DefaultSubscriptionInfo> output) |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 279 } | 284 } |
| 280 } | 285 } |
| 281 } | 286 } |
| 282 | 287 |
| 283 @Override | 288 @Override |
| 284 public String toString() | 289 public String toString() |
| 285 { | 290 { |
| 286 return this.linearSubscriptions.toString(); | 291 return this.linearSubscriptions.toString(); |
| 287 } | 292 } |
| 288 } | 293 } |
| OLD | NEW |