Skip to content

Commit

Permalink
🚩 RegisterForReflection not needed if TemplateData is present
Browse files Browse the repository at this point in the history
  • Loading branch information
ebullient committed Oct 20, 2023
1 parent fd3f538 commit da9ca78
Show file tree
Hide file tree
Showing 18 changed files with 0 additions and 34 deletions.
2 changes: 0 additions & 2 deletions src/main/java/dev/ebullient/convert/qute/ImageRef.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.nio.file.Path;

import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* Create links to referenced images.
Expand All @@ -29,7 +28,6 @@
* </ul>
*/
@TemplateData
@RegisterForReflection
public class ImageRef {
final Path sourcePath;
final Path targetFilePath;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/dev/ebullient/convert/qute/NamedText.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import java.util.TreeSet;

import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* Holder of a name or category and associated descriptive text.
Expand All @@ -17,7 +16,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class NamedText {
public final static Comparator<NamedText> comparator = Comparator.comparing(NamedText::getKey);

Expand Down
2 changes: 0 additions & 2 deletions src/main/java/dev/ebullient/convert/qute/QuteBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import dev.ebullient.convert.tools.IndexType;
import dev.ebullient.convert.tools.Tags;
import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* Defines attributes inherited by other Qute templates.
Expand All @@ -17,7 +16,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class QuteBase implements QuteUtil {
protected final String name;
protected final CompendiumSources sources;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/dev/ebullient/convert/qute/QuteNote.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import dev.ebullient.convert.tools.CompendiumSources;
import dev.ebullient.convert.tools.Tags;
import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* Common attributes for simple notes. THese attributes are more
Expand All @@ -16,7 +15,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class QuteNote extends QuteBase {

public QuteNote(String name, String sourceText, List<String> text, Tags tags) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import dev.ebullient.convert.tools.Tags;
import dev.ebullient.convert.tools.dnd5e.Tools5eSources;
import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* 5eTools background attributes ({@code background2md.txt}).
Expand All @@ -15,7 +14,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class QuteBackground extends Tools5eQuteBase {
/** List of images for this background (as {@link dev.ebullient.convert.qute.ImageRef}) */
public final List<ImageRef> fluffImages;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import dev.ebullient.convert.tools.Tags;
import dev.ebullient.convert.tools.dnd5e.Tools5eSources;
import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* 5eTools class attributes ({@code class2md.txt})
Expand All @@ -12,7 +11,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class QuteClass extends Tools5eQuteBase {

/** Hit dice for this class as a single digit: 8 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class QuteDeck extends Tools5eQuteBase {

/** Image from the back of the card as {@link dev.ebullient.convert.qute.ImageRef} (optional) */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import dev.ebullient.convert.tools.Tags;
import dev.ebullient.convert.tools.dnd5e.Tools5eSources;
import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* 5eTools deity attributes ({@code deity2md.txt})
Expand All @@ -15,7 +14,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class QuteDeity extends Tools5eQuteBase {

/** List of alternative names */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import dev.ebullient.convert.tools.Tags;
import dev.ebullient.convert.tools.dnd5e.Tools5eSources;
import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* 5eTools feat and optional feat attributes ({@code feat2md.txt})
Expand All @@ -12,7 +11,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class QuteFeat extends Tools5eQuteBase {

/** Prerequisite level */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import dev.ebullient.convert.tools.CompendiumSources;
import dev.ebullient.convert.tools.Tags;
import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* 5eTools hazard attributes ({@code hazard2md.txt})
Expand All @@ -12,7 +11,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class QuteHazard extends Tools5eQuteBase {

/** Type of hazard: "Magical Trap", "Wilderness Hazard" */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import dev.ebullient.convert.tools.Tags;
import dev.ebullient.convert.tools.dnd5e.Tools5eSources;
import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* 5eTools item attributes ({@code item2md.txt})
Expand All @@ -15,7 +14,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class QuteItem extends Tools5eQuteBase {

/** Item details: tier, rarity, category, attunement */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class QuteMonster extends Tools5eQuteBase {

/** True if this is an NPC */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import dev.ebullient.convert.tools.Tags;
import dev.ebullient.convert.tools.dnd5e.Tools5eSources;
import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* 5eTools race attributes ({@code race2md.txt})
Expand All @@ -15,7 +14,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class QuteRace extends Tools5eQuteBase {

/** Ability scores associated with this race (comma-separated list of scores or choices) */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import dev.ebullient.convert.tools.CompendiumSources;
import dev.ebullient.convert.tools.Tags;
import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* 5eTools reward attributes ({@code reward2md.txt})
Expand All @@ -12,7 +11,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class QuteReward extends Tools5eQuteBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import dev.ebullient.convert.tools.Tags;
import dev.ebullient.convert.tools.dnd5e.Tools5eSources;
import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* 5eTools spell attributes ({@code spell2md.txt})
Expand All @@ -16,7 +15,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class QuteSpell extends Tools5eQuteBase {

/** Spell level */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import dev.ebullient.convert.tools.Tags;
import dev.ebullient.convert.tools.dnd5e.Tools5eSources;
import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* 5eTools subclass attributes ({@code subclass2md.txt})
Expand All @@ -12,7 +11,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class QuteSubclass extends Tools5eQuteBase {

/** Name of the parent class */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import dev.ebullient.convert.tools.dnd5e.Tools5eIndexType;
import dev.ebullient.convert.tools.dnd5e.Tools5eSources;
import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* Attributes for notes that are generated from the 5eTools data.
Expand All @@ -21,7 +20,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class Tools5eQuteBase extends QuteBase {

String targetPath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import dev.ebullient.convert.tools.Tags;
import dev.ebullient.convert.tools.dnd5e.Tools5eSources;
import io.quarkus.qute.TemplateData;
import io.quarkus.runtime.annotations.RegisterForReflection;

/**
* Attributes for notes that are generated from the 5eTools data.
Expand All @@ -19,7 +18,6 @@
* </p>
*/
@TemplateData
@RegisterForReflection
public class Tools5eQuteNote extends QuteNote {

String targetPath;
Expand Down

0 comments on commit da9ca78

Please sign in to comment.