Q:

Why am I getting an unchecked warning here?

Dataset extends ArrayList.
Dataset<Pair<SRGB>> data = new Dataset<Pair<SRGB>>();
Statement stmt = this.conn.createStatement();
ResultSet rs = stmt.executeQuery(sql);
while (rs.next()) {
    data.add(new Pair<SRGB>(SRGB.create(rs.getString(2)),
                            SRGB.create(rs.getString(3)),
                            rs.getDouble(1),
                            rs.getInt(4)));
}
warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.ArrayList

A:

Chances are you've declared your Dataset class to extend ArrayList without any generic type.
Make sure your Dataset class extends ArrayList like so:
class Dataset<T> extends ArrayList<T> {
    // ...
}

And not 
class Dataset<T> extends ArrayList {
    // ...
}

