Skip to content

Commit

Permalink
[Misc] Clean up APIs marked unstable for a full cycle.
Browse files Browse the repository at this point in the history
  • Loading branch information
surli committed Nov 20, 2024
1 parent 6d6731d commit c69c5ce
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import org.xwiki.rendering.block.match.BlockMatcher;
import org.xwiki.rendering.listener.Listener;
import org.xwiki.rendering.syntax.Syntax;
import org.xwiki.stability.Unstable;

/**
* Represents an element of a XWiki Document's content. For example there are Blocks for Paragraphs, Bold parts,
Expand Down Expand Up @@ -288,7 +287,6 @@ enum Axes
* @return all attributes
* @since 15.9RC1
*/
@Unstable
default Map<String, Object> getAttributes()
{
return Map.of();
Expand All @@ -306,7 +304,6 @@ default Map<String, Object> getAttributes()
* @return the attribute or null if the attribute doesn't exist
* @since 15.9RC1
*/
@Unstable
default Object getAttribute(String name)
{
return null;
Expand All @@ -319,7 +316,6 @@ default Object getAttribute(String name)
* @param value the attribute's value
* @since 15.9RC1
*/
@Unstable
void setAttribute(String name, Object value);

/**
Expand All @@ -329,7 +325,6 @@ default Object getAttribute(String name)
* @see #getAttribute(String)
* @since 15.9RC1
*/
@Unstable
void setAttributes(Map<String, Object> attributes);

/**
Expand Down Expand Up @@ -360,7 +355,6 @@ default Object getAttribute(String name)
* @return the syntax of the block or null of none could be found
* @since 15.9RC1
*/
@Unstable
default Optional<Syntax> getSyntaxMetadata()
{
return Optional.empty();
Expand All @@ -375,7 +369,6 @@ default Optional<Syntax> getSyntaxMetadata()
* @return the value found in the provided block axes
* @since 15.9RC1
*/
@Unstable
default <T> Optional<T> get(Function<Block, Optional<T>> searcher, Axes axes)
{
return Optional.empty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.util.function.Function;

import org.xwiki.rendering.block.Block;
import org.xwiki.stability.Unstable;

/**
* Search for a specific value in a {@link Block}.
Expand All @@ -32,7 +31,6 @@
* @version $Id$
* @since 15.9RC1
*/
@Unstable
public class FunctionBlockMatcher<T> implements BlockMatcher
{
private final Function<Block, Optional<T>> function;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.xwiki.rendering.block.Block;
import org.xwiki.rendering.block.MetaDataBlock;
import org.xwiki.rendering.listener.MetaData;
import org.xwiki.stability.Unstable;

/**
* Implementation of {@link BlockMatcher} which matches {@link MetaData} information.
Expand All @@ -37,7 +36,6 @@ public class MetadataBlockMatcher extends ClassBlockMatcher
*
* @since 15.9RC1
*/
@Unstable
public static final MetadataBlockMatcher SYNTAX = new MetadataBlockMatcher(MetaData.SYNTAX);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.xwiki.rendering.listener.chaining.ChainingListener;
import org.xwiki.rendering.listener.chaining.ListenerChain;
import org.xwiki.rendering.syntax.Syntax;
import org.xwiki.stability.Unstable;

/**
* Allows to access listener instances.
Expand All @@ -33,7 +32,6 @@
* @since 14.10.8
*/
@Role
@Unstable
public interface ListenerProvider
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.xwiki.rendering.block.Block;
import org.xwiki.rendering.block.XDOM;
import org.xwiki.rendering.syntax.Syntax;
import org.xwiki.stability.Unstable;

/**
* Performs a transformation on a XDOM (i.e. a tree of {@link org.xwiki.rendering.block.Block}. This used for example
Expand Down Expand Up @@ -73,7 +72,6 @@ public interface Transformation extends Comparable<Transformation>
* @param block the block to prepare (can be an {@link XDOM})
* @since 15.9RC1
*/
@Unstable
default void prepare(Block block)
{
// Do nothing by default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
import org.xwiki.rendering.macro.descriptor.ContentDescriptor;
import org.xwiki.rendering.parser.ResourceReferenceParser;
import org.xwiki.rendering.transformation.MacroTransformationContext;
import org.xwiki.stability.Unstable;

/**
* Draw a box around provided content.
Expand Down Expand Up @@ -326,7 +325,6 @@ protected abstract List<Block> parseContent(P parameters, String content, MacroT
* @since 15.0RC1
* @since 14.10.2
*/
@Unstable
protected boolean isContentChecked()
{
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.xwiki.component.annotation.Role;
import org.xwiki.rendering.block.Block;
import org.xwiki.rendering.block.HeaderBlock;
import org.xwiki.stability.Unstable;

/**
* Resolve the entries to use for the table of content for a given root block.
Expand All @@ -33,7 +32,6 @@
* @since 15.8RC1
*/
@Role
@Unstable
public interface TocEntriesResolver
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.xwiki.component.annotation.Role;
import org.xwiki.rendering.block.Block;
import org.xwiki.rendering.block.HeaderBlock;
import org.xwiki.stability.Unstable;

/**
* Table of content entry extension, allowing to intercept and improve the default rendering of the table of content
Expand All @@ -37,7 +36,6 @@
* @since 15.8RC1
*/
@Role
@Unstable
public interface TocEntryExtension
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.xwiki.component.annotation.Role;
import org.xwiki.component.manager.ComponentLookupException;
import org.xwiki.rendering.internal.macro.toc.TocTreeBuilder;
import org.xwiki.stability.Unstable;

/**
* Provide the operations to build a {@link TocTreeBuilder}, possibly based on a hint used to select the heading
Expand All @@ -32,7 +31,6 @@
* @since 15.8RC1
*/
@Role
@Unstable
public interface TocTreeBuilderFactory
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.xwiki.rendering.listener.MetaData;
import org.xwiki.rendering.syntax.Syntax;
import org.xwiki.rendering.transformation.MacroTransformationContext;
import org.xwiki.stability.Unstable;

/**
* Parses content of a macro field (parameter, macro content) in a given syntax.
Expand All @@ -41,7 +40,6 @@ public interface MacroContentParser
*
* @since 15.9RC1
*/
@Unstable
String ATTRIBUTE_PREPARE_CONTENT_XDOM = "prepare.content.xdom";

/**
Expand Down Expand Up @@ -89,7 +87,6 @@ XDOM parse(String content, MacroTransformationContext macroContext, boolean tran
* @since 15.1RC1
* @since 14.10.5
*/
@Unstable
default XDOM parse(String content, Syntax syntax, MacroTransformationContext macroContext, boolean transform,
MetaData metadata, boolean inline) throws MacroExecutionException
{
Expand All @@ -112,7 +109,6 @@ default XDOM parse(String content, Syntax syntax, MacroTransformationContext mac
* @throws MacroPreparationException when failing to prepare the content
* @since 15.9RC1
*/
@Unstable
default void prepareContentWiki(MacroBlock macroBlock) throws MacroPreparationException
{
prepareContentWiki(macroBlock, null);
Expand All @@ -127,7 +123,6 @@ default void prepareContentWiki(MacroBlock macroBlock) throws MacroPreparationEx
* @throws MacroPreparationException when failing to prepare the content
* @since 15.9RC1
*/
@Unstable
default void prepareContentWiki(MacroBlock macroBlock, Syntax syntax) throws MacroPreparationException
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.util.Objects;

import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.xwiki.stability.Unstable;

/**
* The reference of a wiki content to use as macro content.
Expand All @@ -31,7 +30,6 @@
* @since 15.1RC1
* @since 14.10.5
*/
@Unstable
public class MacroContentSourceReference
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
package org.xwiki.rendering.macro.source;

import org.xwiki.component.annotation.Role;
import org.xwiki.stability.Unstable;

/**
* Convert an object into a {@link MacroContentSourceReference}.
Expand All @@ -31,7 +30,6 @@
* @since 14.10.5
*/
@Role
@Unstable
public interface MacroContentSourceReferenceConverter<T>
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.xwiki.rendering.syntax.Syntax;
import org.xwiki.stability.Unstable;
import org.xwiki.text.XWikiToStringBuilder;

/**
Expand All @@ -33,7 +32,6 @@
* @since 15.1RC1
* @since 14.10.5
*/
@Unstable
public class MacroContentWikiSource
{
private final MacroContentSourceReference reference;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.xwiki.component.annotation.Role;
import org.xwiki.rendering.macro.MacroExecutionException;
import org.xwiki.rendering.transformation.MacroTransformationContext;
import org.xwiki.stability.Unstable;

/**
* Fetch a wiki content based on its reference.
Expand All @@ -32,7 +31,6 @@
* @since 14.10.5
*/
@Role
@Unstable
public interface MacroContentWikiSourceFactory
{
/**
Expand Down

0 comments on commit c69c5ce

Please sign in to comment.