From 52aeae39837868bbde9415b14378a4522a7b89be Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Thu, 31 Dec 2020 15:43:49 +0100 Subject: [PATCH] Moving GrantType to v2 package --- .../archiva/redback/rest/api/model/{ => v2}/GrantType.java | 5 +---- .../main/resources/{ => redback}/openapi-configuration.yaml | 0 2 files changed, 1 insertion(+), 4 deletions(-) rename redback-integrations/redback-rest/redback-rest-api/src/main/java/org/apache/archiva/redback/rest/api/model/{ => v2}/GrantType.java (90%) rename redback-integrations/redback-rest/redback-rest-api/src/main/resources/{ => redback}/openapi-configuration.yaml (100%) diff --git a/redback-integrations/redback-rest/redback-rest-api/src/main/java/org/apache/archiva/redback/rest/api/model/GrantType.java b/redback-integrations/redback-rest/redback-rest-api/src/main/java/org/apache/archiva/redback/rest/api/model/v2/GrantType.java similarity index 90% rename from redback-integrations/redback-rest/redback-rest-api/src/main/java/org/apache/archiva/redback/rest/api/model/GrantType.java rename to redback-integrations/redback-rest/redback-rest-api/src/main/java/org/apache/archiva/redback/rest/api/model/v2/GrantType.java index 200dc75f..63c362af 100644 --- a/redback-integrations/redback-rest/redback-rest-api/src/main/java/org/apache/archiva/redback/rest/api/model/GrantType.java +++ b/redback-integrations/redback-rest/redback-rest-api/src/main/java/org/apache/archiva/redback/rest/api/model/v2/GrantType.java @@ -57,9 +57,6 @@ public enum GrantType @Override public String toString( ) { - final StringBuilder sb = new StringBuilder( "GrantType{" ); - sb.append( "label='" ).append( label ).append( '\'' ); - sb.append( '}' ); - return sb.toString( ); + return this.label; } } diff --git a/redback-integrations/redback-rest/redback-rest-api/src/main/resources/openapi-configuration.yaml b/redback-integrations/redback-rest/redback-rest-api/src/main/resources/redback/openapi-configuration.yaml similarity index 100% rename from redback-integrations/redback-rest/redback-rest-api/src/main/resources/openapi-configuration.yaml rename to redback-integrations/redback-rest/redback-rest-api/src/main/resources/redback/openapi-configuration.yaml