Skip to content

Commit 2a44228

Browse files
committed
Consistent use of <pre class="code">
Issue: SPR-8108
1 parent 1ca943c commit 2a44228

File tree

59 files changed

+87
-90
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+87
-90
lines changed

buildSrc/src/main/groovy/org/springframework/build/gradle/MergePlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import org.gradle.api.invocation.*
3434
* dependencies (for example Hibernate v3 and v4).
3535
* <p>
3636
* The 'merge' extension should be used to define how projects are merged, for example:
37-
* <pre>
37+
* <pre class="code">
3838
* configure(subprojects) {
3939
* apply plugin: MergePlugin
4040
* }

spring-aspects/src/main/java/org/springframework/beans/factory/aspectj/GenericInterfaceDrivenDependencyInjectionAspect.aj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ package org.springframework.beans.factory.aspectj;
2323
*
2424
* The subaspect of this aspect doesn't need to include any AOP constructs.
2525
* For example, here is a subaspect that configures the {@code PricingStrategyClient} objects.
26-
* <pre>
26+
* <pre class="code">
2727
* aspect PricingStrategyDependencyInjectionAspect
2828
* extends GenericInterfaceDrivenDependencyInjectionAspect<PricingStrategyClient> {
2929
* private PricingStrategy pricingStrategy;

spring-beans/src/main/java/org/springframework/beans/ExtendedBeanInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* Decorator for a standard {@link BeanInfo} object, e.g. as created by
4545
* {@link Introspector#getBeanInfo(Class)}, designed to discover and register static
4646
* and/or non-void returning setter methods. For example:
47-
* <pre>{@code
47+
* <pre class="code">
4848
* public class Bean {
4949
* private Foo foo;
5050
*
@@ -56,7 +56,7 @@
5656
* this.foo = foo;
5757
* return this;
5858
* }
59-
* }}</pre>
59+
* }</pre>
6060
* The standard JavaBeans {@code Introspector} will discover the {@code getFoo} read
6161
* method, but will bypass the {@code #setFoo(Foo)} write method, because its non-void
6262
* returning signature does not comply with the JavaBeans specification.

spring-context-support/src/main/java/org/springframework/mail/javamail/ConfigurableMimeFileTypeMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* <p>The mapping file should be in the following format, as specified by the
3535
* Java Activation Framework:
3636
*
37-
* <pre>
37+
* <pre class="code">
3838
* # map text/html to .htm and .html files
3939
* text/html html htm HTML HTM</pre>
4040
*

spring-context/src/main/java/org/springframework/cache/config/AnnotationDrivenCacheBeanDefinitionParser.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,12 @@ private static void parseCacheManagerProperty(Element element, BeanDefinition de
7474

7575
/**
7676
* Registers a
77-
* <pre>
77+
* <pre class="code">
7878
* <bean id="cacheAspect" class="org.springframework.cache.aspectj.AnnotationCacheAspect" factory-method="aspectOf">
7979
* <property name="cacheManager" ref="cacheManager"/>
8080
* <property name="keyGenerator" ref="keyGenerator"/>
8181
* </bean>
82-
*
8382
* </pre>
84-
* @param element
85-
* @param parserContext
8683
*/
8784
private void registerCacheAspect(Element element, ParserContext parserContext) {
8885
if (!parserContext.getRegistry().containsBeanDefinition(CACHE_ASPECT_BEAN_NAME)) {

spring-context/src/main/java/org/springframework/context/support/GenericApplicationContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
*
5555
* <p>Usage example:
5656
*
57-
* <pre>
57+
* <pre class="code">
5858
* GenericApplicationContext ctx = new GenericApplicationContext();
5959
* XmlBeanDefinitionReader xmlReader = new XmlBeanDefinitionReader(ctx);
6060
* xmlReader.loadBeanDefinitions(new ClassPathResource("applicationContext.xml"));

spring-context/src/main/java/org/springframework/instrument/classloading/jboss/JBossLoadTimeWeaver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* <p><b>NOTE:</b> On JBoss 6.0, to avoid the container loading the classes before the
3232
* application actually starts, one needs to add a <tt>WEB-INF/jboss-scanning.xml</tt>
3333
* file to the application archive - with the following content:
34-
* <pre>&lt;scanning xmlns="urn:jboss:scanning:1.0"/&gt;</pre>
34+
* <pre class="code">&lt;scanning xmlns="urn:jboss:scanning:1.0"/&gt;</pre>
3535
*
3636
* <p>Thanks to Ales Justin and Marius Bogoevici for the initial prototype.
3737
*

spring-context/src/main/java/org/springframework/jndi/JndiObjectTargetSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*
3232
* <p>Example:
3333
*
34-
* <pre>
34+
* <pre class="code">
3535
* &lt;bean id="queueConnectionFactoryTarget" class="org.springframework.jndi.JndiObjectTargetSource"&gt;
3636
* &lt;property name="jndiName" value="JmsQueueConnectionFactory"/&gt;
3737
* &lt;property name="lookupOnStartup" value="false"/&gt;

spring-core/src/main/java/org/springframework/asm/Handle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public int hashCode() {
154154
* Returns the textual representation of this handle. The textual
155155
* representation is:
156156
*
157-
* <pre>
157+
* <pre class="code">
158158
* owner '.' name desc ' ' '(' tag ')'
159159
* </pre>
160160
*

spring-core/src/main/java/org/springframework/asm/MethodVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ public void visitLabel(Label label) {
449449
* constant types, implementations of this method should check for
450450
* unexpected constant types, like this:
451451
*
452-
* <pre>
452+
* <pre class="code">
453453
* if (cst instanceof Integer) {
454454
* // ...
455455
* } else if (cst instanceof Float) {

0 commit comments

Comments
 (0)