Skip to content

Commit 882c195

Browse files
committed
polishing
1 parent 0b4e7cc commit 882c195

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

org.springframework.context/src/main/java/org/springframework/remoting/support/SimpleHttpServerFactoryBean.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* @see #setPort
5252
* @see #setContexts
5353
*/
54-
public class SimpleHttpServerFactoryBean implements FactoryBean, InitializingBean, DisposableBean {
54+
public class SimpleHttpServerFactoryBean implements FactoryBean<HttpServer>, InitializingBean, DisposableBean {
5555

5656
protected final Log logger = LogFactory.getLog(getClass());
5757

@@ -167,11 +167,11 @@ public void afterPropertiesSet() throws IOException {
167167
this.server.start();
168168
}
169169

170-
public Object getObject() {
170+
public HttpServer getObject() {
171171
return this.server;
172172
}
173173

174-
public Class getObjectType() {
174+
public Class<? extends HttpServer> getObjectType() {
175175
return (this.server != null ? this.server.getClass() : HttpServer.class);
176176
}
177177

0 commit comments

Comments
 (0)