2004-04-22 Michael Koch <konqueror@gmx.de>
* java/net/Socket.java (impl): Made package-private. * java/net/ServerSocket.java (implAccept): Access Socket.impl field directly. From-SVN: r81005
This commit is contained in:
parent
c0dce2359c
commit
5d79367d7a
@ -1,3 +1,10 @@
|
||||
2004-04-22 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* java/net/Socket.java
|
||||
(impl): Made package-private.
|
||||
* java/net/ServerSocket.java
|
||||
(implAccept): Access Socket.impl field directly.
|
||||
|
||||
2004-04-22 Dalibor Topic <robilad@kaffe.org>
|
||||
|
||||
* java/util/prefs/Preferences.java,
|
||||
|
@ -374,7 +374,8 @@ public class ServerSocket
|
||||
&& ! ((PlainSocketImpl) getImpl()).isInChannelOperation())
|
||||
throw new IllegalBlockingModeException();
|
||||
|
||||
impl.accept(socket.getImpl());
|
||||
impl.accept(socket.impl);
|
||||
socket.implCreated = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -78,13 +78,15 @@ public class Socket
|
||||
/**
|
||||
* The implementation object to which calls are redirected
|
||||
*/
|
||||
private SocketImpl impl;
|
||||
// package-private because ServerSocket.implAccept() needs to access it.
|
||||
SocketImpl impl;
|
||||
|
||||
/**
|
||||
* True if socket implementation was created by calling their
|
||||
* create() method.
|
||||
*/
|
||||
private boolean implCreated;
|
||||
// package-private because ServerSocket.implAccept() needs to access it.
|
||||
boolean implCreated;
|
||||
|
||||
/**
|
||||
* True if the socket is bound.
|
||||
|
Loading…
Reference in New Issue
Block a user