Use Enhanced For loop for SystemMessage parameter iteration.
This commit is contained in:
parent
0be93db17c
commit
a42be21a1c
@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
|
||||
|
||||
packet.writeH(getId());
|
||||
packet.writeC(_params.length);
|
||||
SMParam param;
|
||||
for (int i = 0; i < _paramIndex; i++)
|
||||
for (SMParam param : _params)
|
||||
{
|
||||
param = _params[i];
|
||||
packet.writeC(param.getType());
|
||||
switch (param.getType())
|
||||
{
|
||||
|
@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
|
||||
|
||||
packet.writeH(getId());
|
||||
packet.writeC(_params.length);
|
||||
SMParam param;
|
||||
for (int i = 0; i < _paramIndex; i++)
|
||||
for (SMParam param : _params)
|
||||
{
|
||||
param = _params[i];
|
||||
packet.writeC(param.getType());
|
||||
switch (param.getType())
|
||||
{
|
||||
|
@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
|
||||
|
||||
packet.writeH(getId());
|
||||
packet.writeC(_params.length);
|
||||
SMParam param;
|
||||
for (int i = 0; i < _paramIndex; i++)
|
||||
for (SMParam param : _params)
|
||||
{
|
||||
param = _params[i];
|
||||
packet.writeC(param.getType());
|
||||
switch (param.getType())
|
||||
{
|
||||
|
@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
|
||||
|
||||
packet.writeH(getId());
|
||||
packet.writeC(_params.length);
|
||||
SMParam param;
|
||||
for (int i = 0; i < _paramIndex; i++)
|
||||
for (SMParam param : _params)
|
||||
{
|
||||
param = _params[i];
|
||||
packet.writeC(param.getType());
|
||||
switch (param.getType())
|
||||
{
|
||||
|
@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
|
||||
|
||||
packet.writeH(getId());
|
||||
packet.writeC(_params.length);
|
||||
SMParam param;
|
||||
for (int i = 0; i < _paramIndex; i++)
|
||||
for (SMParam param : _params)
|
||||
{
|
||||
param = _params[i];
|
||||
packet.writeC(param.getType());
|
||||
switch (param.getType())
|
||||
{
|
||||
|
@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
|
||||
|
||||
packet.writeH(getId());
|
||||
packet.writeC(_params.length);
|
||||
SMParam param;
|
||||
for (int i = 0; i < _paramIndex; i++)
|
||||
for (SMParam param : _params)
|
||||
{
|
||||
param = _params[i];
|
||||
packet.writeC(param.getType());
|
||||
switch (param.getType())
|
||||
{
|
||||
|
@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
|
||||
|
||||
packet.writeH(getId());
|
||||
packet.writeC(_params.length);
|
||||
SMParam param;
|
||||
for (int i = 0; i < _paramIndex; i++)
|
||||
for (SMParam param : _params)
|
||||
{
|
||||
param = _params[i];
|
||||
packet.writeC(param.getType());
|
||||
switch (param.getType())
|
||||
{
|
||||
|
@ -366,10 +366,8 @@ public final class SystemMessage implements IClientOutgoingPacket
|
||||
|
||||
packet.writeD(_smId.getId());
|
||||
packet.writeD(_params.length);
|
||||
SMParam param;
|
||||
for (int i = 0; i < _paramIndex; i++)
|
||||
for (SMParam param : _params)
|
||||
{
|
||||
param = _params[i];
|
||||
packet.writeD(param.getType());
|
||||
switch (param.getType())
|
||||
{
|
||||
|
@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
|
||||
|
||||
packet.writeH(getId());
|
||||
packet.writeC(_params.length);
|
||||
SMParam param;
|
||||
for (int i = 0; i < _paramIndex; i++)
|
||||
for (SMParam param : _params)
|
||||
{
|
||||
param = _params[i];
|
||||
packet.writeC(param.getType());
|
||||
switch (param.getType())
|
||||
{
|
||||
|
@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
|
||||
|
||||
packet.writeH(getId());
|
||||
packet.writeC(_params.length);
|
||||
SMParam param;
|
||||
for (int i = 0; i < _paramIndex; i++)
|
||||
for (SMParam param : _params)
|
||||
{
|
||||
param = _params[i];
|
||||
packet.writeC(param.getType());
|
||||
switch (param.getType())
|
||||
{
|
||||
|
@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
|
||||
|
||||
packet.writeH(getId());
|
||||
packet.writeC(_params.length);
|
||||
SMParam param;
|
||||
for (int i = 0; i < _paramIndex; i++)
|
||||
for (SMParam param : _params)
|
||||
{
|
||||
param = _params[i];
|
||||
packet.writeC(param.getType());
|
||||
switch (param.getType())
|
||||
{
|
||||
|
@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
|
||||
|
||||
packet.writeH(getId());
|
||||
packet.writeC(_params.length);
|
||||
SMParam param;
|
||||
for (int i = 0; i < _paramIndex; i++)
|
||||
for (SMParam param : _params)
|
||||
{
|
||||
param = _params[i];
|
||||
packet.writeC(param.getType());
|
||||
switch (param.getType())
|
||||
{
|
||||
|
@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
|
||||
|
||||
packet.writeH(getId());
|
||||
packet.writeC(_params.length);
|
||||
SMParam param;
|
||||
for (int i = 0; i < _paramIndex; i++)
|
||||
for (SMParam param : _params)
|
||||
{
|
||||
param = _params[i];
|
||||
packet.writeC(param.getType());
|
||||
switch (param.getType())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user