Cleanup Code

Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
This commit is contained in:
Laura Gorzitze
2024-02-06 14:54:00 +01:00
parent b34a989c57
commit d8e1f2d739
910 changed files with 2670 additions and 19707 deletions

View File

@@ -24,7 +24,6 @@
package sonia.scm.annotation;
//~--- non-JDK imports --------------------------------------------------------
import com.google.common.base.Strings;
import org.w3c.dom.Document;
@@ -33,11 +32,7 @@ import org.w3c.dom.Element;
import java.util.Map;
import java.util.Map.Entry;
//~--- JDK imports ------------------------------------------------------------
/**
* @author Sebastian Sdorra
*/
public class ClassSetElement implements DescriptorElement {
private static final String EL_CLASS = "class";

View File

@@ -24,24 +24,14 @@
package sonia.scm.annotation;
//~--- non-JDK imports --------------------------------------------------------
import org.w3c.dom.Document;
import org.w3c.dom.Element;
/**
*
* @author Sebastian Sdorra
*/
public interface DescriptorElement
{
/**
* Method description
*
*
* @param doc
* @param root
*/
public void append(Document doc, Element root);
}

View File

@@ -81,9 +81,7 @@ import java.util.Set;
import static javax.lang.model.util.ElementFilter.methodsIn;
/**
* @author Sebastian Sdorra
*/
@SupportedAnnotationTypes("*")
@MetaInfServices(Processor.class)
@SuppressWarnings({"Since16"})

View File

@@ -24,42 +24,30 @@
package sonia.scm.annotation;
//~--- non-JDK imports --------------------------------------------------------
import com.google.common.base.Strings;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
/**
*
* @author Sebastian Sdorra
*/
public class SubscriberElement implements DescriptorElement
{
/** Field description */
private static final String EL_CLASS = "class";
/** Field description */
private static final String EL_DESCRIPTION = "description";
/** Field description */
private static final String EL_EVENT = "event";
/** Field description */
private static final String EL_SUBSCRIBER = "subscriber";
//~--- constructors ---------------------------------------------------------
private final String description;
private final String eventType;
private final String subscriberType;
/**
* Constructs ...
*
*
* @param subscriberType
* @param eventType
* @param description
*/
public SubscriberElement(String subscriberType, String eventType,
String description)
{
@@ -68,15 +56,8 @@ public class SubscriberElement implements DescriptorElement
this.description = description;
}
//~--- methods --------------------------------------------------------------
/**
* Method description
*
*
* @param doc
* @param root
*/
@Override
public void append(Document doc, Element root)
{
@@ -102,14 +83,4 @@ public class SubscriberElement implements DescriptorElement
root.appendChild(subscriberEl);
}
//~--- fields ---------------------------------------------------------------
/** Field description */
private final String description;
/** Field description */
private final String eventType;
/** Field description */
private final String subscriberType;
}