Skip to content

Commit fdf936c

Browse files
committed
Polishing
1 parent 4e4b04a commit fdf936c

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
package org.springframework.context.annotation;
1818

19-
import java.util.Objects;
20-
2119
import org.springframework.core.type.AnnotationMetadata;
2220
import org.springframework.lang.Nullable;
2321

@@ -108,13 +106,17 @@ public boolean equals(Object other) {
108106
return false;
109107
}
110108
Entry entry = (Entry) other;
111-
return (Objects.equals(this.metadata, entry.metadata) &&
112-
Objects.equals(this.importClassName, entry.importClassName));
109+
return (this.metadata.equals(entry.metadata) && this.importClassName.equals(entry.importClassName));
113110
}
114111

115112
@Override
116113
public int hashCode() {
117-
return Objects.hash(this.metadata, this.importClassName);
114+
return (this.metadata.hashCode() * 31 + this.importClassName.hashCode());
115+
}
116+
117+
@Override
118+
public String toString() {
119+
return this.importClassName;
118120
}
119121
}
120122
}

spring-messaging/src/main/java/org/springframework/messaging/simp/user/MultiServerUserRegistry.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ public Map<String, SimpSession> findSessions(String userName) {
560560
}
561561
return map;
562562
}
563-
564563
}
565564

566565
}

spring-tx/src/test/java/org/springframework/transaction/interceptor/TransactionInterceptorTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 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.
@@ -40,6 +40,7 @@
4040
* Mock object based tests for TransactionInterceptor.
4141
*
4242
* @author Rod Johnson
43+
* @author Juergen Hoeller
4344
* @since 16.03.2003
4445
*/
4546
public class TransactionInterceptorTests extends AbstractTransactionAspectTests {
@@ -49,7 +50,7 @@ public class TransactionInterceptorTests extends AbstractTransactionAspectTests
4950

5051

5152
@Override
52-
protected Object advised(Object target, PlatformTransactionManager ptm, TransactionAttributeSource[] tas) throws Exception {
53+
protected Object advised(Object target, PlatformTransactionManager ptm, TransactionAttributeSource[] tas) {
5354
TransactionInterceptor ti = new TransactionInterceptor();
5455
ti.setTransactionManager(ptm);
5556
ti.setTransactionAttributeSources(tas);

0 commit comments

Comments
 (0)