mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-03 12:05:52 +01:00
Fix build warnings (#1562)
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
This commit is contained in:
@@ -28,6 +28,7 @@ import de.otto.edison.hal.Links;
|
||||
import org.mapstruct.AfterMapping;
|
||||
import org.mapstruct.Context;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
import org.mapstruct.MappingTarget;
|
||||
import sonia.scm.repository.GitRepositoryConfig;
|
||||
import sonia.scm.repository.Repository;
|
||||
@@ -46,6 +47,7 @@ public abstract class GitRepositoryConfigMapper {
|
||||
@Inject
|
||||
private ScmPathInfoStore scmPathInfoStore;
|
||||
|
||||
@Mapping(target = "attributes", ignore = true) // We do not map HAL attributes
|
||||
public abstract GitRepositoryConfigDto map(GitRepositoryConfig config, @Context Repository repository);
|
||||
public abstract GitRepositoryConfig map(GitRepositoryConfigDto dto);
|
||||
|
||||
|
||||
@@ -496,7 +496,7 @@ public final class GitUtil {
|
||||
* Returns the name of the tag or {@code null} if the the ref is not a tag.
|
||||
*
|
||||
* @param refName ref name
|
||||
* @return name of tag or {@link null}
|
||||
* @return name of tag or null
|
||||
* @since 1.50
|
||||
*/
|
||||
public static String getTagName(String refName) {
|
||||
|
||||
Reference in New Issue
Block a user