Skip to content

Commit ea8f628

Browse files
committed
polishing
1 parent 364641e commit ea8f628

3 files changed

Lines changed: 11 additions & 19 deletions

File tree

‎org.springframework.beans/src/test/java/org/springframework/beans/BeanWrapperTests.java‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2009 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.
@@ -1687,27 +1687,21 @@ public void setMyStriNg(String string) {}
16871687
public void setMyStringss(String string) {}
16881688
}
16891689

1690+
16901691
private static class Employee extends TestBean {
16911692

16921693
private String co;
16931694

1694-
/**
1695-
* Constructor for Employee.
1696-
*/
1697-
public Employee() {
1698-
super();
1699-
}
1700-
17011695
public String getCompany() {
17021696
return co;
17031697
}
17041698

17051699
public void setCompany(String co) {
17061700
this.co = co;
17071701
}
1708-
17091702
}
17101703

1704+
17111705
@SuppressWarnings("serial")
17121706
public static class ReadOnlyMap extends HashMap<Object, Object> {
17131707

@@ -1733,7 +1727,7 @@ public Object put(Object key, Object value) {
17331727
}
17341728
}
17351729

1736-
public Set<Entry<Object, Object>> entrySet() {
1730+
public Set<Map.Entry<Object, Object>> entrySet() {
17371731
this.accessed = true;
17381732
return super.entrySet();
17391733
}

‎org.springframework.jdbc/src/main/java/org/springframework/jdbc/core/metadata/OracleTableMetaDataProvider.java‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2007 the original author or authors.
2+
* Copyright 2002-2009 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.
@@ -16,11 +16,10 @@
1616

1717
package org.springframework.jdbc.core.metadata;
1818

19+
import java.lang.reflect.Method;
20+
import java.sql.Connection;
1921
import java.sql.DatabaseMetaData;
2022
import java.sql.SQLException;
21-
import java.sql.Connection;
22-
import java.lang.reflect.Method;
23-
import java.lang.reflect.InvocationTargetException;
2423

2524
import org.springframework.dao.InvalidDataAccessApiUsageException;
2625

‎org.springframework.jms/src/main/java/org/springframework/jms/listener/endpoint/StandardJmsActivationSpecFactory.java‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2009 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.
@@ -16,8 +16,7 @@
1616

1717
package org.springframework.jms.listener.endpoint;
1818

19-
import java.util.Properties;
20-
19+
import java.util.Map;
2120
import javax.jms.JMSException;
2221
import javax.jms.Queue;
2322
import javax.jms.Session;
@@ -53,7 +52,7 @@ public class StandardJmsActivationSpecFactory implements JmsActivationSpecFactor
5352

5453
private Class activationSpecClass;
5554

56-
private Properties defaultProperties;
55+
private Map<String, String> defaultProperties;
5756

5857
private DestinationResolver destinationResolver;
5958

@@ -72,7 +71,7 @@ public void setActivationSpecClass(Class activationSpecClass) {
7271
* listener-specific settings. Allows for configuring vendor-specific properties
7372
* beyond the Spring-defined settings in {@link JmsActivationSpecConfig}.
7473
*/
75-
public void setDefaultProperties(Properties defaultProperties) {
74+
public void setDefaultProperties(Map<String, String> defaultProperties) {
7675
this.defaultProperties = defaultProperties;
7776
}
7877

0 commit comments

Comments
 (0)