These inner classes should be static. In the case of IntIntMap this was a big

fat waste of four bytes per map entry. Whoops.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2732 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2010-02-09 22:40:49 +00:00
parent f44c51555e
commit 3339b6707e
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -460,7 +460,7 @@ public class CDDB
/**
* A simple class to encapsulate the response from the CDDB server.
*/
protected class Response
protected static class Response
{
public int code;
public String message;
@@ -336,7 +336,7 @@ public class TableSorter extends AbstractTableModel {
// Helper classes
protected class Row {
protected static class Row {
public final int modelIndex;
public Row (int index) {
this.modelIndex = index;
+2 -2
View File
@@ -443,7 +443,7 @@ public class IntIntMap
}
}
class Record implements IntIntEntry
protected static class Record implements IntIntEntry
{
public Record next;
public int key;
@@ -550,7 +550,7 @@ public class IntIntMap
private int _modCount;
}
protected class KeyValueInterator extends AbstractInterator
protected static class KeyValueInterator extends AbstractInterator
{
public KeyValueInterator (boolean keys, IntEntryIterator eiter) {
_keys = keys;