Skip to content

Commit

Permalink
Fix strange compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpanzer committed Jan 20, 2017
1 parent 89569fd commit dd4147d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,32 +35,32 @@
/**
* Predefined constant to let Asciidoctor know that this BlockProcessor creates simple paragraph content.
*/
public static final String SIMPLE =":simple";
public static final String SIMPLE = ":simple";

/**
* Predefined constant to let Asciidoctor know that this BlockProcessor creates literal content.
*/
public static final String VERBATIM =":verbatim";
public static final String VERBATIM = ":verbatim";

/**
* Predefined constant to make Asciidoctor pass through the content unprocessed.
*/
public static final String RAW =":raw";
public static final String RAW = ":raw";

/**
* Predefined constant to make Asciidoctor drop the content.
*/
public static final String SKIP =":skip";
public static final String SKIP = ":skip";

/**
* Predefined constant to make Asciidoctor not expect any content.
*/
public static final String EMPTY =":empty";
public static final String EMPTY = ":empty";

/**
* Predefined constant to make Asciidoctor parse content as attributes.
*/
public static final String ATTRIBUTES =":attributes";
public static final String ATTRIBUTES = ":attributes";

/**
* See the constants defined in this enumeration for possible values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import org.jsoup.select.Elements
import org.junit.runner.RunWith
import spock.lang.Specification

import static org.asciidoctor.extension.ContentModel.SIMPLE

@SuppressWarnings('DuplicateNumberLiteral')
@RunWith(ArquillianSputnik)
class WhenAJavaExtensionUsesCounters extends Specification {
Expand Down Expand Up @@ -119,7 +121,7 @@ testmacro::countera[]
@CompileStatic
@Name('testmacro')
@Contexts(Contexts.CONTEXT_PARAGRAPH)
@ContentModel(ContentModel.SIMPLE)
@ContentModel(SIMPLE)
static class TestBlockMacroProcessor extends BlockMacroProcessor {

@Override
Expand All @@ -136,7 +138,7 @@ testmacro::countera[]
@CompileStatic
@Name('testmacro')
@Contexts(Contexts.CONTEXT_PARAGRAPH)
@ContentModel(ContentModel.SIMPLE)
@ContentModel(SIMPLE)
static class TestBlockMacroWithInitialCounterProcessor extends BlockMacroProcessor {

@Override
Expand Down

0 comments on commit dd4147d

Please sign in to comment.