/*
 * Copyright 2018 The StartupOS Authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.startupos.common.flags.testpackage1;

import com.google.startupos.common.flags.Flag;
import com.google.startupos.common.flags.FlagDesc;

public class FlagDescTestClass {
  @SuppressWarnings("unused")
  @FlagDesc(name = "string_flag", description = "A flag description", required = false)
  private static final Flag<String> stringFlag = Flag.create("default value");

  @SuppressWarnings("unused")
  @FlagDesc(name = "boolean_flag", description = "A flag description", required = false)
  public static final Flag<Boolean> booleanFlag = Flag.create(true);

  @SuppressWarnings("unused")
  @FlagDesc(name = "integer_flag", description = "A flag description", required = false)
  public static final Flag<Integer> integerFlag = Flag.create(123);

  @SuppressWarnings("unused")
  @FlagDesc(name = "long_flag", description = "A flag description", required = false)
  public static final Flag<Long> longFlag = Flag.create(123456789L);

  @SuppressWarnings("unused")
  @FlagDesc(name = "double_flag", description = "A flag description", required = false)
  public static final Flag<Double> doubleFlag = Flag.create(1.23);

  @SuppressWarnings("unused")
  @FlagDesc(name = "required_flag", description = "A flag description", required = true)
  public static final Flag<String> requiredFlag = Flag.create("");

  @SuppressWarnings("unused")
  public static final String notAFlag = "";

  public static String getStringFlagValue() {
    return stringFlag.get();
  }
}

@@ -887,36 +887,18 @@
 ription%22
-, required = false
 )%0A
+
   privat
@@ -1068,34 +1068,16 @@
 ription%22
-, required = false
 )%0A  publ
@@ -1239,34 +1239,16 @@
 ription%22
-, required = false
 )%0A  publ
@@ -1406,34 +1406,16 @@
 ription%22
-, required = false
 )%0A  publ
@@ -1500,32 +1500,32 @@
 nings(%22unused%22)%0A
+
   @FlagDesc(name
@@ -1580,26 +1580,8 @@
 ion%22
-, required = false
 )%0A  

drop obsolete required=false annotation params