Skip to content

Commit 01a71ef

Browse files
committed
Polishing
1 parent bb95a63 commit 01a71ef

File tree

4 files changed

+16
-18
lines changed

4 files changed

+16
-18
lines changed

spring-aop/src/main/java/org/springframework/aop/framework/DefaultAopProxyFactory.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2013 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -48,7 +48,6 @@
4848
@SuppressWarnings("serial")
4949
public class DefaultAopProxyFactory implements AopProxyFactory, Serializable {
5050

51-
5251
@Override
5352
public AopProxy createAopProxy(AdvisedSupport config) throws AopConfigException {
5453
if (config.isOptimize() || config.isProxyTargetClass() || hasNoUserSuppliedProxyInterfaces(config)) {

spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClass.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public String getBeanName() {
152152
* @see #getImportedBy()
153153
*/
154154
public boolean isImported() {
155-
return this.importedBy != null;
155+
return (this.importedBy != null);
156156
}
157157

158158
/**
@@ -162,7 +162,7 @@ public boolean isImported() {
162162
* @see #isImported()
163163
*/
164164
public ConfigurationClass getImportedBy() {
165-
return importedBy;
165+
return this.importedBy;
166166
}
167167

168168
public void addBeanMethod(BeanMethod method) {
@@ -203,7 +203,7 @@ public void validate(ProblemReporter problemReporter) {
203203
for (BeanMethod beanMethod : this.beanMethods) {
204204
String fqMethodName = beanMethod.getFullyQualifiedMethodName();
205205
Integer currentCount = methodNameCounts.get(fqMethodName);
206-
int newCount = currentCount != null ? currentCount + 1 : 1;
206+
int newCount = (currentCount != null ? currentCount + 1 : 1);
207207
methodNameCounts.put(fqMethodName, newCount);
208208
}
209209
for (String fqMethodName : methodNameCounts.keySet()) {
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<beans xmlns="http://www.springframework.org/schema/beans"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oxm="http://www.springframework.org/schema/oxm"
4-
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
4+
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
55
http://www.springframework.org/schema/oxm http://www.springframework.org/schema/oxm/spring-oxm-3.1.xsd">
66

77
<!-- XMLBeans -->
8-
<oxm:xmlbeans-marshaller id="xmlBeansMarshaller"
9-
options="xmlBeansOptions" />
8+
<oxm:xmlbeans-marshaller id="xmlBeansMarshaller" options="xmlBeansOptions"/>
109

1110
<bean id="xmlBeansOptions" class="org.springframework.oxm.xmlbeans.XmlOptionsFactoryBean">
1211
<property name="options">
@@ -17,22 +16,22 @@
1716
</bean>
1817

1918
<!-- JAXB2 -->
20-
<oxm:jaxb2-marshaller id="jaxb2ContextPathMarshaller"
21-
contextPath="org.springframework.oxm.jaxb.test" />
19+
<oxm:jaxb2-marshaller id="jaxb2ContextPathMarshaller" contextPath="org.springframework.oxm.jaxb.test"/>
2220

2321
<oxm:jaxb2-marshaller id="jaxb2ClassesMarshaller">
24-
<oxm:class-to-be-bound name="org.springframework.oxm.jaxb.test.Flights" />
25-
<oxm:class-to-be-bound name="org.springframework.oxm.jaxb.test.FlightType" />
22+
<oxm:class-to-be-bound name="org.springframework.oxm.jaxb.test.Flights"/>
23+
<oxm:class-to-be-bound name="org.springframework.oxm.jaxb.test.FlightType"/>
2624
</oxm:jaxb2-marshaller>
2725

2826
<!-- Castor -->
2927

30-
<oxm:castor-marshaller id="castorEncodingMarshaller" encoding="ISO-8859-1" />
28+
<oxm:castor-marshaller id="castorEncodingMarshaller" encoding="ISO-8859-1"/>
3129

32-
<oxm:castor-marshaller id="castorTargetClassMarshaller" target-class="org.springframework.oxm.castor.Flight" />
30+
<oxm:castor-marshaller id="castorTargetClassMarshaller" target-class="org.springframework.oxm.castor.Flight"/>
3331

34-
<oxm:castor-marshaller id="castorTargetPackageMarshaller" target-package="org.springframework.oxm.castor" />
32+
<oxm:castor-marshaller id="castorTargetPackageMarshaller" target-package="org.springframework.oxm.castor"/>
3533

3634
<oxm:castor-marshaller id="castorMappingLocationMarshaller"
37-
mapping-location="classpath:org/springframework/oxm/castor/mapping.xml" />
35+
mapping-location="classpath:org/springframework/oxm/castor/mapping.xml"/>
36+
3837
</beans>

spring-web/src/main/java/org/springframework/http/MediaType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ public String getType() {
403403
* Indicates whether the {@linkplain #getType() type} is the wildcard character {@code &#42;} or not.
404404
*/
405405
public boolean isWildcardType() {
406-
return WILDCARD_TYPE.equals(type);
406+
return WILDCARD_TYPE.equals(this.type);
407407
}
408408

409409
/**
@@ -419,7 +419,7 @@ public String getSubtype() {
419419
* @return whether the subtype is {@code &#42;}
420420
*/
421421
public boolean isWildcardSubtype() {
422-
return WILDCARD_TYPE.equals(subtype) || subtype.startsWith("*+");
422+
return WILDCARD_TYPE.equals(this.subtype) || this.subtype.startsWith("*+");
423423
}
424424

425425
/**

0 commit comments

Comments
 (0)