litesoft
Diff Revisions
803
vs
804
for /trunk/Java/core/Server/src/org/litesoft/peertopeer/nonpublic/peermanagement/PeerDefinition.java
|
@@ -5,6 +5,7 @@ |
5 |
5 |
|
import java.net.*; |
6 |
6 |
|
|
7 |
7 |
|
import org.litesoft.core.simpletypes.nonpublic.*; |
|
8 |
+ |
import org.litesoft.core.typeutils.*; |
8 |
9 |
|
import org.litesoft.util.*; |
9 |
10 |
|
|
10 |
11 |
|
public final class PeerDefinition extends CompareSupport<PeerDefinition> implements Serializable, |
|
@@ -19,7 +20,7 @@ |
19 |
20 |
|
public PeerDefinition( String pName, InetAddress pInetAddress, int pPort ) |
20 |
21 |
|
{ |
21 |
22 |
|
mName = Utils.assertNotNullNotEmpty( "Name", pName ); |
22 |
|
- |
Utils.assertNotNull( "InetAddress", mInetAddress = pInetAddress ); |
|
23 |
+ |
Objects.assertNotNull( "InetAddress", mInetAddress = pInetAddress ); |
23 |
24 |
|
mPort = P2Putils.validatePort( pPort ); |
24 |
25 |
|
} |
25 |
26 |
|
|