mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-01 19:15:52 +01:00
Cleanup Code
Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com> Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
This commit is contained in:
@@ -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";
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -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"})
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user