ID -> Id (#393 Ensure all fields follow our naming convention)
This commit is contained in:
parent
d159a43a49
commit
9464396719
@ -22,23 +22,31 @@ import org.jboss.netty.util.internal.StringUtil;
|
||||
*/
|
||||
public class DefaultSpdyPingFrame implements SpdyPingFrame {
|
||||
|
||||
private int ID;
|
||||
private int id;
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
*
|
||||
* @param ID the unique ID of this frame
|
||||
* @param id the unique ID of this frame
|
||||
*/
|
||||
public DefaultSpdyPingFrame(int ID) {
|
||||
setID(ID);
|
||||
public DefaultSpdyPingFrame(int id) {
|
||||
setId(id);
|
||||
}
|
||||
|
||||
public int getID() {
|
||||
return ID;
|
||||
return getId();
|
||||
}
|
||||
|
||||
public void setID(int ID) {
|
||||
this.ID = ID;
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setID(int id) {
|
||||
setId(id);
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -47,7 +55,7 @@ public class DefaultSpdyPingFrame implements SpdyPingFrame {
|
||||
buf.append(getClass().getSimpleName());
|
||||
buf.append(StringUtil.NEWLINE);
|
||||
buf.append("--> ID = ");
|
||||
buf.append(ID);
|
||||
buf.append(id);
|
||||
return buf.toString();
|
||||
}
|
||||
}
|
||||
|
@ -20,13 +20,25 @@ package org.jboss.netty.handler.codec.spdy;
|
||||
*/
|
||||
public interface SpdyPingFrame {
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #getId()} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
int getID();
|
||||
|
||||
/**
|
||||
* Returns the ID of this frame.
|
||||
*/
|
||||
int getID();
|
||||
int getId();
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #setId(int)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
void setID(int id);
|
||||
|
||||
/**
|
||||
* Sets the ID of this frame.
|
||||
*/
|
||||
void setID(int ID);
|
||||
void setId(int id);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user