Skip to content

Commit 70fe6e3

Browse files
fix(metadata): make matchesLanguageFamily protected for subclass access
DSC-896 ItemServiceImpl extends DSpaceObjectServiceImpl and calls matchesLanguageFamily in its getMetadata override. The method was private, causing a compile error. Changed visibility to protected.
1 parent 2af2b64 commit 70fe6e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dspace-api/src/main/java/org/dspace/content/DSpaceObjectServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ private List<MetadataValue> filterByLanguage(List<MetadataValue> metadataValues,
11961196
* @param storedLang the language stored on the metadata value (may be {@code null})
11971197
* @return {@code true} if the stored language satisfies the request
11981198
*/
1199-
private boolean matchesLanguageFamily(String requestedLang, String storedLang) {
1199+
protected boolean matchesLanguageFamily(String requestedLang, String storedLang) {
12001200
if (requestedLang == null) {
12011201
return storedLang == null;
12021202
}

0 commit comments

Comments
 (0)