mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
added missing TypeHint annontations
This commit is contained in:
@@ -37,6 +37,7 @@ import com.google.inject.Inject;
|
|||||||
import com.google.inject.Provider;
|
import com.google.inject.Provider;
|
||||||
import com.google.inject.Singleton;
|
import com.google.inject.Singleton;
|
||||||
|
|
||||||
|
import org.codehaus.enunciate.jaxrs.TypeHint;
|
||||||
import org.codehaus.enunciate.modules.jersey.SpringManagedLifecycle;
|
import org.codehaus.enunciate.modules.jersey.SpringManagedLifecycle;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
@@ -111,6 +112,7 @@ public class RepositoryImportResource
|
|||||||
*/
|
*/
|
||||||
@POST
|
@POST
|
||||||
@Path("{type}")
|
@Path("{type}")
|
||||||
|
@TypeHint(Repository[].class)
|
||||||
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
|
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
|
||||||
public GenericEntity<List<Repository>> importRepositories(
|
public GenericEntity<List<Repository>> importRepositories(
|
||||||
@PathParam("type") String type)
|
@PathParam("type") String type)
|
||||||
@@ -168,6 +170,7 @@ public class RepositoryImportResource
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GET
|
@GET
|
||||||
|
@TypeHint(Type[].class)
|
||||||
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
|
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
|
||||||
public GenericEntity<List<Type>> getImportableTypes()
|
public GenericEntity<List<Type>> getImportableTypes()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user