ID -> Id (#393 Ensure all fields follow our naming convention)

This commit is contained in:
Trustin Lee 2012-06-12 20:24:51 +09:00
parent d159a43a49
commit 9464396719
2 changed files with 30 additions and 10 deletions

View File

@ -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();
}
}

View File

@ -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);
}