package app.coronawarn.verification.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.info.BuildProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Properties;

/**
 * Needed to able to run from an IDE, otherwise OpenApiConfig crashes
 */
@Configuration
public class IdeConfig {

  @Bean
  @ConditionalOnMissingBean(BuildProperties.class)
  BuildProperties buildProperties() {
    return new BuildProperties(new Properties());
  }
}

@@ -38,16 +38,45 @@
 onfig;%0A%0A
+import java.util.Properties;%0A
 import o
@@ -321,38 +321,8 @@
 n;%0A%0A
-import java.util.Properties;%0A%0A
 /**%0A
@@ -390,16 +390,17 @@
  crashes
+.
 %0A */%0A@Co

fix for checkstyle