Skip to content

Commit

Permalink
change(api): make MappedConfiguration#convertToMap public, but it is …
Browse files Browse the repository at this point in the history
…marked as internal
  • Loading branch information
Siroshun09 committed Feb 22, 2023
1 parent 6c8bd56 commit 9430199
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.github.siroshun09.configapi.api;

import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
Expand Down Expand Up @@ -67,7 +68,8 @@ public class MappedConfiguration extends AbstractConfiguration {
return new MappedConfiguration(new LinkedHashMap<>(map));
}

private static @NotNull Map<Object, Object> convertToMap(@NotNull Configuration config) {
@ApiStatus.Internal
public static @NotNull Map<Object, Object> convertToMap(@NotNull Configuration config) {
if (config instanceof MappedConfiguration) {
return new LinkedHashMap<>(((MappedConfiguration) config).map);
}
Expand Down

0 comments on commit 9430199

Please sign in to comment.