Skip to content

Commit 60103af

Browse files
committed
Simplify OnlyUseLocalLicenses property
Note: This commit removes support for the old deprecated property name.
1 parent 5c35064 commit 60103af

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/org/spdx/library/ListedLicenses.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,8 @@ public class ListedLicenses {
6969
* This constructor should only be called by the getListedLicenses method
7070
*/
7171
private ListedLicenses() {
72-
// Note: this code is confusing as this property changed names several times over time, and we want to preserve
73-
// backwards compatibility for those downstream library users who are using the old/deprecated names
7472
onlyUseLocalLicenses = Boolean.parseBoolean(Configuration.getInstance().getProperty("org.spdx.useJARLicenseInfoOnly",
75-
Configuration.getInstance().getProperty("SPDXParser.OnlyUseLocalLicenses",
76-
Configuration.getInstance().getProperty("OnlyUseLocalLicenses", "false"))));
73+
"false"));
7774
initializeLicenseModelStore();
7875
}
7976

0 commit comments

Comments
 (0)