Skip to content

Commit 11162f5

Browse files
author
Alena Prokharchyk
committed
Removed set() methods from IpAddress related interfaces
1 parent 1124466 commit 11162f5

4 files changed

Lines changed: 1 addition & 31 deletions

File tree

api/src/com/cloud/network/IpAddress.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,7 @@ enum Purpose {
7878

7979
boolean getSystem();
8080

81-
/**
82-
* @return
83-
*/
8481
Long getVpcId();
8582

86-
/**
87-
* @param vpcId
88-
*/
89-
void setVpcId(Long vpcId);
9083
String getVmIp();
91-
void setVmIp(String vmIp);
92-
9384
}

api/src/com/cloud/network/PublicIpAddress.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,4 @@ public interface PublicIpAddress extends ControlledEntity, IpAddress, Vlan, Inte
3030
public String getNetmask();
3131

3232
public String getGateway();
33-
34-
@Override
35-
public String getVlanTag();
3633
}

server/src/com/cloud/network/addr/PublicIp.java

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -194,23 +194,12 @@ public Long getAllocatedInDomainId() {
194194
public boolean getSystem() {
195195
return _addr.getSystem();
196196
}
197-
198-
/* (non-Javadoc)
199-
* @see com.cloud.network.IpAddress#getVpcId()
200-
*/
197+
201198
@Override
202199
public Long getVpcId() {
203200
return _addr.getVpcId();
204201
}
205202

206-
/* (non-Javadoc)
207-
* @see com.cloud.network.IpAddress#setVpcId(java.lang.Long)
208-
*/
209-
@Override
210-
public void setVpcId(Long vpcId) {
211-
_addr.setVpcId(vpcId);
212-
}
213-
214203
@Override
215204
public String getIp6Gateway() {
216205
return _vlan.getIp6Gateway();
@@ -230,9 +219,4 @@ public String getIp6Range() {
230219
public String getVmIp() {
231220
return _addr.getVmIp();
232221
}
233-
234-
@Override
235-
public void setVmIp(String vmIp) {
236-
_addr.setVmIp(vmIp);
237-
}
238222
}

server/src/com/cloud/network/dao/IPAddressVO.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ public Long getVpcId() {
292292
return vpcId;
293293
}
294294

295-
@Override
296295
public void setVpcId(Long vpcId) {
297296
this.vpcId = vpcId;
298297
}
@@ -302,7 +301,6 @@ public String getVmIp() {
302301
return vmIp;
303302
}
304303

305-
@Override
306304
public void setVmIp(String vmIp) {
307305
this.vmIp = vmIp;
308306
}

0 commit comments

Comments
 (0)