Consistent use of <pre class="code">
Issue: SPR-8108
This commit is contained in:
@@ -154,7 +154,7 @@ public final class Handle {
|
||||
* Returns the textual representation of this handle. The textual
|
||||
* representation is:
|
||||
*
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* owner '.' name desc ' ' '(' tag ')'
|
||||
* </pre>
|
||||
*
|
||||
|
||||
@@ -449,7 +449,7 @@ public abstract class MethodVisitor {
|
||||
* constant types, implementations of this method should check for
|
||||
* unexpected constant types, like this:
|
||||
*
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* if (cst instanceof Integer) {
|
||||
* // ...
|
||||
* } else if (cst instanceof Float) {
|
||||
|
||||
@@ -111,7 +111,7 @@ public abstract class GenericTypeResolver {
|
||||
* method for {@code creatProxy()} and an {@code Object[]} array containing
|
||||
* {@code MyService.class}, {@code resolveReturnTypeForGenericMethod()} will
|
||||
* infer that the target return type is {@code MyService}.
|
||||
* <pre>{@code public static <T> T createProxy(Class<T> clazz)}</pre>
|
||||
* <pre class="code">{@code public static <T> T createProxy(Class<T> clazz)}</pre>
|
||||
* <h4>Possible Return Values</h4>
|
||||
* <ul>
|
||||
* <li>the target return type, if it can be inferred</li>
|
||||
|
||||
@@ -102,7 +102,7 @@ public interface Environment extends PropertyResolver {
|
||||
* explicit active profiles, whether one or more of the given profiles is included in
|
||||
* the set of default profiles. If a profile begins with '!' the logic is inverted,
|
||||
* i.e. the method will return true if the given profile is <em>not</em> active. For
|
||||
* example, <pre>env.acceptsProfiles("p1", "!p2")</pre> will return true if profile
|
||||
* example, <pre class="code">env.acceptsProfiles("p1", "!p2")</pre> will return true if profile
|
||||
* 'p1' is active or 'p2' is not active.
|
||||
* @throws IllegalArgumentException if called with zero arguments
|
||||
* @throws IllegalArgumentException if any profile is null, empty or whitespace-only
|
||||
|
||||
@@ -72,7 +72,7 @@ import org.springframework.util.StringUtils;
|
||||
* <p><b>Ant-style Patterns:</b>
|
||||
*
|
||||
* <p>When the path location contains an Ant-style pattern, e.g.:
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* /WEB-INF/*-context.xml
|
||||
* com/mycompany/**/applicationContext.xml
|
||||
* file:C:/some/path/*-context.xml
|
||||
@@ -143,9 +143,9 @@ import org.springframework.util.StringUtils;
|
||||
*
|
||||
* <p><b>WARNING:</b> Ant-style patterns with "classpath:" resources are not
|
||||
* guaranteed to find matching resources if the root package to search is available
|
||||
* in multiple class path locations. This is because a resource such as<pre>
|
||||
* in multiple class path locations. This is because a resource such as<pre class="code">
|
||||
* com/mycompany/package1/service-context.xml
|
||||
* </pre>may be in only one location, but when a path such as<pre>
|
||||
* </pre>may be in only one location, but when a path such as<pre class="code">
|
||||
* classpath:com/mycompany/**/service-context.xml
|
||||
* </pre>is used to try to resolve it, the resolver will work off the (first) URL
|
||||
* returned by {@code getResource("com/mycompany");}. If this base package
|
||||
|
||||
@@ -87,7 +87,7 @@ public abstract class StringUtils {
|
||||
/**
|
||||
* Check that the given CharSequence is neither {@code null} nor of length 0.
|
||||
* Note: Will return {@code true} for a CharSequence that purely consists of whitespace.
|
||||
* <p><pre>
|
||||
* <p><pre class="code">
|
||||
* StringUtils.hasLength(null) = false
|
||||
* StringUtils.hasLength("") = false
|
||||
* StringUtils.hasLength(" ") = true
|
||||
@@ -116,7 +116,7 @@ public abstract class StringUtils {
|
||||
* Check whether the given CharSequence has actual text.
|
||||
* More specifically, returns {@code true} if the string not {@code null},
|
||||
* its length is greater than 0, and it contains at least one non-whitespace character.
|
||||
* <p><pre>
|
||||
* <p><pre class="code">
|
||||
* StringUtils.hasText(null) = false
|
||||
* StringUtils.hasText("") = false
|
||||
* StringUtils.hasText(" ") = false
|
||||
|
||||
Reference in New Issue
Block a user